Skip to content

Commit

Permalink
Updated per merge comments
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 18, 2018
1 parent ec4eb08 commit d18d059
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 321 deletions.
6 changes: 1 addition & 5 deletions gpkitmodels/GP/aircraft/motor/motor.py
Expand Up @@ -37,7 +37,7 @@ class Motor(Model):
Variables
---------
Qstar .5 [kg/(N*m)] motor specific torque
Qstar .5 [kg/(N*m)] motor specific torque
W [lbf] motor weight
Qmax [N*m] motor max. torque
V_max 300 [V] motor max voltage
Expand All @@ -56,10 +56,6 @@ def setup(self):
class PropulsorPerf(Model):
"""Propulsor Performance Model
Variables
---------
V_static 1 [cm/s] inflow velocity for static thrust
"""

def setup(self, static, state):
Expand Down
8 changes: 0 additions & 8 deletions gpkitmodels/GP/aircraft/motor/motor_test.py
Expand Up @@ -12,7 +12,6 @@ def setup(self):
p = Propulsor()
pp = p.flight_model(p,fs)
pp.substitutions[pp.prop.T] = 100
#pp.substitutions[pp.prop.AR_b] = 15
self.cost = 1./pp.motor.etam + p.W/(1000*units('lbf')) + 1./pp.prop.eta

return fs,p,pp
Expand All @@ -27,7 +26,6 @@ def setup(self):
p = Propulsor()
pp = p.flight_model(p,fs)
pp.substitutions[pp.prop.T] = 100
#pp.substitutions[pp.prop.AR_b] = 15
self.cost = pp.motor.Pelec/(1000*units('W')) + p.W/(1000*units('lbf'))

return fs,p,pp
Expand All @@ -36,18 +34,14 @@ def setup(self):
def actuator_propulsor_test():

test = Actuator_Propulsor_Test()
#sol = test.debug()
sol = test.solve()
#sol = test.solve()
#print sol.table()



def propulsor_test():

test = Propulsor_Test()
#sol = test.debug()
#sol = test.localsolve(iteration_limit = 400)
sol = test.solve()
#print sol.table()

Expand Down Expand Up @@ -91,7 +85,6 @@ def setup(self):
def motor_test():
test = Motor_P_Test()
sol = test.solve()
#sol = test.debug()
#print sol.table()

def test():
Expand All @@ -102,4 +95,3 @@ def test():

if __name__ == "__main__":
test()
#speed_280_test()
15 changes: 0 additions & 15 deletions gpkitmodels/GP/aircraft/prop/arccos_fit.py

This file was deleted.

2 changes: 0 additions & 2 deletions gpkitmodels/GP/aircraft/prop/dae51_fitdata.csv

This file was deleted.

83 changes: 0 additions & 83 deletions gpkitmodels/GP/aircraft/prop/dae51polars/dae51.dat

This file was deleted.

81 changes: 0 additions & 81 deletions gpkitmodels/GP/aircraft/prop/dae51polars/dae51.txt

This file was deleted.

126 changes: 0 additions & 126 deletions gpkitmodels/GP/aircraft/prop/dae51polars/dae_polarfits.py

This file was deleted.

2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/prop/propeller.py
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

0 comments on commit d18d059

Please sign in to comment.