Skip to content

Commit

Permalink
Changed propeller model to inequality constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Mar 28, 2018
1 parent 9caeff9 commit d4adcda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gpkitmodels/GP/aircraft/motor/motor_test.py
Expand Up @@ -20,7 +20,7 @@ def propulsor_test():
test = Propulsor_Test()
#sol = test.debug()
sol = test.solve()
#print sol.table()
print sol.table()

class Motor_P_Test(Model):
def setup(self):
Expand Down Expand Up @@ -62,4 +62,4 @@ def test():
propulsor_test()

if __name__ == "__main__":
test()
test()
12 changes: 6 additions & 6 deletions gpkitmodels/GP/aircraft/prop/propeller.py
Expand Up @@ -16,7 +16,7 @@ class Propeller(Model):
def setup(self):
exec parse_variables(Propeller.__doc__)

constraints = [W == K*T_m_static*R**2]
constraints = [W >= K*T_m_static*R**2]

return constraints

Expand Down Expand Up @@ -59,13 +59,13 @@ def setup(self,parent, state):


constraints = [eta <= etav*etai,
Tc == T/(0.5*rho*V**2*pi*R**2),
Tc >= T/(0.5*rho*V**2*pi*R**2),
z2 >= Tc + 1,
etai*(z1 + z2**0.5/etaadd) <= 2,
lam == V/(omega*R),
CT == Tc*lam**2,
CP == Q*omega/(.5*rho*(omega*R)**3*pi*R**2),
eta == CT*lam/CP,
lam >= V/(omega*R),
CT >= Tc*lam**2,
CP <= Q*omega/(.5*rho*(omega*R)**3*pi*R**2),
eta >= CT*lam/CP,
omega <= omega_max,
P_shaft == Q*omega,
(M_tip*a)**2 >= (omega*R)**2 + V**2
Expand Down

0 comments on commit d4adcda

Please sign in to comment.