Skip to content

Commit

Permalink
solar integration edits
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 18, 2018
1 parent 1d9769c commit 0c6dc37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/motor/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Motor(Model):
Variables
---------
Qstar .5 [kg/(N*m)] motor specific torque
Qstar .8 [kg/(N*m)] motor specific torque
W [lbf] motor weight
Qmax [N*m] motor max. torque
V_max 300 [V] motor max voltage
Expand Down
1 change: 1 addition & 0 deletions gpkitmodels/GP/aircraft/prop/prop_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def ME_eta_test():
fs = FlightState()
Propeller.flight_model = MultiElementProp
p = Propeller()

p.substitutions[p.T_m] = 100
#p.substitutions[p.R] = 2
pp = p.flight_model(p,fs)
Expand Down
12 changes: 6 additions & 6 deletions gpkitmodels/GP/aircraft/prop/propeller.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ActuatorProp(Model):
def helper(self, c):
return 2. - 1./c[self.etaadd]

def setup(self, static, state = None, rho = None, V = None):
def setup(self, static, state):
exec parse_variables(ActuatorProp.__doc__)

V = state.V
Expand Down Expand Up @@ -61,7 +61,7 @@ class Blade_Element_Performance(Model):
Variables
---------
dT [lbf] thrust
eta_b [-] local efficiency
eta_i [-] local induced efficiency
dQ [N*m] torque
omega [rpm] propeller rotation rate
Wa [m/s] Axial total relative velocity
Expand All @@ -74,7 +74,7 @@ class Blade_Element_Performance(Model):
cl [-] local lift coefficient
cd [-] local drag coefficient
cdp [-] local drag coefficient
B 3 [-] number of blades
B 2 [-] number of blades
r [m] local radius
lam_w [-] advance ratio
eps [-] blade efficiency
Expand All @@ -84,7 +84,7 @@ class Blade_Element_Performance(Model):
Re [-] blade reynolds number
f [-] intermediate tip loss variable
F [-] Prandtl tip loss factor
cl_max .9 [-] max airfoil cl
cl_max .6 [-] max airfoil cl
dr [m] length of blade element
FF [-] form factor
t_c .1 [-] airfoil t/c
Expand Down Expand Up @@ -123,7 +123,7 @@ def setup(self,parent, state):
AR_b <= AR_b_max,
Re == Wr*c*rho/mu,
#eta == T*V/(Q*omega),
eta_b == (V/(omega*r))*(Wt/Wa),
eta_i == (V/(omega*r))*(Wt/Wa),

#TCS([cd >= cl**2/(pi*AR_b*.85) + cdp]),
#TCS([FF >= 1. + .3*t_c + (100*t_c)**.4]),
Expand Down Expand Up @@ -184,7 +184,7 @@ def setup(self,parent, state, N = 4):
for n in range(1,N):
constraints += [TCS([blade["r"][n] >= blade["r"][n-1] + parent.R/N]),
#SignomialEquality(blade["r"][n],blade["r"][n-1] + parent.R/N),
blade["eta_b"][n] == blade["eta_b"][n-1]
blade["eta_i"][n] == blade["eta_i"][n-1]
]
constraints += [TCS([T <= sum(blade["dT"][n] for n in range(N))]),
TCS([Q >= sum(blade["dQ"][n] for n in range(N))]),
Expand Down

0 comments on commit 0c6dc37

Please sign in to comment.