Skip to content

Commit

Permalink
Add prop structure and performance models
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Mar 19, 2018
1 parent f30e2ea commit 129cd22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gpkitmodels/GP/aircraft/prop/propeller.py
Expand Up @@ -8,6 +8,7 @@ class Propeller(Model):
Variables
---------
R 10 [m] prop radius
W 10 [lbf] prop weight
"""
def setup(self):
Expand Down Expand Up @@ -35,12 +36,12 @@ class Propeller_Performance(Model):
def helper(self, c):
return 2. - 1./c[self.etaadd]

def setup(self, state):
def setup(self,parent, state):
exec parse_variables(Propeller.__doc__)

V = state.V
rho = state.rho

V = state.V
rho = state.rho
R = parent.R

constraints = [eta <= etav*etai,
Tc == T/(0.5*rho*V**2*pi*R**2),
Expand Down

0 comments on commit 129cd22

Please sign in to comment.