forked from kal179/Beginners_Python_Examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaircraft_thrust.py
More file actions
17 lines (15 loc) · 766 Bytes
/
aircraft_thrust.py
File metadata and controls
17 lines (15 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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