Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Height(Force,kg,Area,form):
- Ftotal=Force
- A=Area
- m=kg
- cw=form
- v=0
- H=0
- HC=1
- g=9.82
- t=1
- Count=0
- while H<2000 and HC!=H:
- Count=1+Count
- HC=H
- p=1.225-0.00013333333*H
- if p<=0:
- p=0
- F_air=0.5*cw*p*A*v*v
- Ftotal=Force-F_air-(g*m)
- H=H+0.5*(Ftotal/m)*t*t
- v=(Ftotal/m)*t+v
- if Count%10000==0 or Count<1000:
- print ("H=",H,"a=",(Ftotal/m),"v=",v,"F=",Ftotal,"air=",F_air)
- print (Count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement