- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I’have some problems to create a script which uses a “continue untill” a criteria is met.
As example:
I have a total building weight of 100kN
For this building weight i want to determine how many pile i have to use.
So i start with 1 pile> load = 100/1=100kN i run the calculation of the pile including the steel design check en will get a ratio of 11.
Then test the ratio <1.0 for one pile this criteria is not met. So add 1 pile
2pilesà 100/2=50kN > ratio 7.5<1.0 add 1 pile
3pilesà 100/3=33.3kN> ratio 5<1.0 add 1 pile
4pilesà 100/2=25kN> ratio 3<1.0 add 1 pile
5pilesà 100/5=20kN> ratio 1.5<1.0 add 1 pile
6pilesà 100/6=16.6kN> ratio 0.99<1.0 done
This is what i’m trying to achive but i can’t find any examples which are related tot his(maybe i’m silly).
I hope someone of you can give me some support on how to write a code(python or else) that works fort his case.
@Anonymous @Rafal.Gaweda @lukasz_koc2 @cool.stuff
In this topic you will find the steel design calculate function.
Thanks in advance
Gr Edward
Solved! Go to Solution.
