Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. def Height(Force,kg,Area,form):
  2. Ftotal=Force
  3. A=Area
  4. m=kg
  5. cw=form
  6. v=0
  7. H=0
  8. HC=1
  9. g=9.82
  10. t=1
  11. Count=0
  12. while H<2000 and HC!=H:
  13. Count=1+Count
  14. HC=H
  15. p=1.225-0.00013333333*H
  16. if p<=0:
  17. p=0
  18. F_air=0.5*cw*p*A*v*v
  19. Ftotal=Force-F_air-(g*m)
  20. H=H+0.5*(Ftotal/m)*t*t
  21. v=(Ftotal/m)*t+v
  22. if Count%10000==0 or Count<1000:
  23. print ("H=",H,"a=",(Ftotal/m),"v=",v,"F=",Ftotal,"air=",F_air)
  24. print (Count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement