-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
48 lines (35 loc) · 1.24 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
print('1) DRAG\n2) LIFT\n3) THRUST\n4) REYNOLDS NUMBER')
inp = input()
if (inp == '1'):
coeff = int(input('Enter Drag Coefficient : '))
density = int(input('Enter Density : '))
velocity = int(input('Enter Velocity : '))
area = int(input('Enter Area : '))
drag = coeff*(density*velocity*velocity/2)*area
print(drag)
elif(inp == '2'):
coeff = int(input('Enter Lift Coefficient : '))
density = int(input('Enter Density : '))
velocity = int(input('Enter Velocity : '))
area = int(input('Enter Area : '))
lift = coeff*(density*velocity*velocity/2)*area
print(lift)
elif(inp == '3'):
velocity = int(input('Enter Velocity : '))
changem = int(input('Enter Change in mass : '))
changet = int(input('Enter Change in time : '))
thrust = velocity*(changem/changet)
print(thrust)
elif(inp == '4'):
density = int(input('Enter Density : '))
velocity = int(input('Enter Velocity : '))
lindi = int(input('Enter Linear dimension : '))
viscosity = int(input('Enter Viscosity of fluid : '))
Re = (density*velocity*lindi)/viscosity
print(Re)
if (inp =='4' and Re <= 2300):
print('Laminar Flow')
elif(Re>2300 and Re<4000):
print('Transition Flow')
elif(Re>4000):
print('Turbulent Flow')