Skip to content

Commit

Permalink
Update and rename aircraftThrust.py to aircraft_thrust.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalpak Take authored Aug 3, 2017
1 parent f1fb49e commit c2a1711
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
23 changes: 0 additions & 23 deletions aircraftThrust.py

This file was deleted.

17 changes: 17 additions & 0 deletions aircraft_thrust.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import math
# Calculating thrust of Aircraft Propeller

def thrust_props(diameter , velocity , velocity1 , density):
# According to formula
return math.pi / 4 * diameter ** 2 * (velocity + velocity1/2) * density * velocity1

print('Hello Aircraft Lovers,')
while(True):
start_or_end = str(raw_input('start or end : ')).strip().lower()
if start_or_end == 'start':
res = thrust_props(float(input('Diameter of propeller: ')) , float(input('Velocity of air flow: ')) , float(input('Additional propeller acceleration, velocity: ')) , float(input('Fluid density: ')))
print("Thrust of propeller: {}".format(res))
continue
else:
quit()
# I dont know much about airplane physics this formula maybe wrong

0 comments on commit c2a1711

Please sign in to comment.