-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHover.py
More file actions
35 lines (25 loc) · 898 Bytes
/
Copy pathHover.py
File metadata and controls
35 lines (25 loc) · 898 Bytes
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
import matplotlib.pyplot as plt
import numpy as np
# power required to hover in watts
def PowerHover(mass, diameter, num_of_props):
disk_loading = [36.62, 2929.45]
hovering_eff = [6.080, 0.608]
curve = np.polyfit(np.log(disk_loading), hovering_eff, 1)
area = num_of_props*np.pi*diameter**2/4
prop_load = mass/area
kg_kW = curve[0]*np.log(prop_load) + curve[1]
power = mass/kg_kW*1000 # convert to watts
return power
def EnergyTakeOff(power_hover, wing_area, rho):
ascent = 4 # m/s
descent = 3
alt = 120 # meters
Cd = 1.1 # flat plate
# power drag from fuselage & wing
power_climb = 0.5*rho*Cd*(1.2*wing_area)*ascent**3
time_hr = alt/ascent/60/60
whr_ascent = 2*time_hr*(power_hover+power_climb)
time_hr = alt/descent/60/60
whr_descent = 2*time_hr*power_hover
whr = whr_ascent + whr_descent
return whr