Skip to content

Commit

Permalink
Motor testing
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 16, 2018
1 parent 35dc0f2 commit dbedca5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gpkitmodels/GP/aircraft/motor/motor_test.py
Expand Up @@ -27,7 +27,7 @@ def setup(self):
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
self.cost = pp.motor.Pelec/(1000*units('W')) + p.W/(1000*units('lbf')) + 1./pp.prop.eta

return fs,p,pp
def actuator_propulsor_test():
Expand All @@ -54,7 +54,7 @@ def setup(self):
self.mp = mp
mp.substitutions[m.Qmax] = 100
mp.substitutions[mp.Q] = 10
self.cost = 1./mp.etam
self.cost = 1./mp.etam
return self.mp, fs

class speed_280_motor(Model):
Expand Down Expand Up @@ -138,8 +138,8 @@ def motor_eta_speed():

def test():
#motor_test()
#actuator_propulsor_test()
propulsor_test()
actuator_propulsor_test()
#propulsor_test()


if __name__ == "__main__":
Expand Down

0 comments on commit dbedca5

Please sign in to comment.