Skip to content

Commit

Permalink
deleted everything from motor and motor_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 17, 2018
1 parent bb8347f commit ec4eb08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
22 changes: 1 addition & 21 deletions gpkitmodels/GP/aircraft/motor/motor_test.py
@@ -1,6 +1,6 @@
from gpkit import Model, parse_variables, SignomialsEnabled, SignomialEquality, units
from motor import Propulsor, Motor, MotorPerf
from gpkitmodels.GP.aircraft.prop.propeller import Propeller, ActuatorProp, SimpleQProp
from gpkitmodels.GP.aircraft.prop.propeller import Propeller, ActuatorProp
from gpkitmodels.GP.aircraft.wing.wing_test import FlightState

class Propulsor_Test(Model):
Expand Down Expand Up @@ -31,20 +31,7 @@ def setup(self):
self.cost = pp.motor.Pelec/(1000*units('W')) + p.W/(1000*units('lbf'))

return fs,p,pp
class SimpleQprop_Propulsor_Test(Model):
"""Propulsor Test Model
"""

def setup(self):
fs = FlightState()
Propulsor.prop_flight_model = SimpleQProp
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

def actuator_propulsor_test():

Expand All @@ -54,13 +41,7 @@ def actuator_propulsor_test():
#sol = test.solve()
#print sol.table()

def simpleQprop_propulsor_test():

test = SimpleQprop_Propulsor_Test()
#sol = test.debug()
sol = test.localsolve()
#sol = test.solve()
print sol.table()

def propulsor_test():

Expand Down Expand Up @@ -117,7 +98,6 @@ def test():
motor_test()
actuator_propulsor_test()
propulsor_test()
simpleQprop_propulsor_test()


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/prop/propeller.py
Expand Up @@ -72,7 +72,7 @@ class Propeller(Model):
c [ft] prop chord
"""

flight_model = SimpleQProp
flight_model = ActuatorProp

def setup(self, N = 1):
exec parse_variables(Propeller.__doc__)
Expand Down

0 comments on commit ec4eb08

Please sign in to comment.