-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename aircraftThrust.py to aircraft_thrust.py
- Loading branch information
Kalpak Take
authored
Aug 3, 2017
1 parent
f1fb49e
commit c2a1711
Showing
2 changed files
with
17 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |