Skip to content

Commit

Permalink
Added multielement propulsor to weight tests
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 17, 2018
1 parent 3b708fd commit cea216e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 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, SimpleQProp, MultiElementProp
from gpkitmodels.GP.aircraft.wing.wing_test import FlightState

class Propulsor_Test(Model):
Expand Down Expand Up @@ -77,6 +77,13 @@ def simpleQprop_propulsor_test():
#sol = test.solve()
print sol.table()

def ME_propulsor_test():

test = MultiElement_Propulsor_Test()
#sol = test.debug()
sol = test.localsolve()
#sol = test.solve()
print sol.table()
def propulsor_test():

test = Propulsor_Test()
Expand Down Expand Up @@ -133,7 +140,7 @@ def test():
actuator_propulsor_test()
propulsor_test()
simpleQprop_propulsor_test()

ME_propulsor_test()

if __name__ == "__main__":
test()
Expand Down
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/prop/propeller.py
Expand Up @@ -190,7 +190,7 @@ def setup(self,parent, state, N = 4):
TCS([Q >= sum(blade["dQ"][n] for n in range(N))]),
eta == state.V*T/(omega*Q),
blade["M"][-1] <= Mtip,
#parent.T_m>=T
parent.T_m>=T,
omega <= omega_max
]

Expand Down

0 comments on commit cea216e

Please sign in to comment.