Skip to content

Commit

Permalink
fix weight error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Apr 24, 2018
1 parent 7e3aa72 commit b9f1da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gpkitmodels/GP/aircraft/motor/motor.py
Expand Up @@ -41,7 +41,7 @@ class Motor(Model):
Variables
---------
Qstar .8 [kg/(N*m)] motor specific torque
Qstar .5 [kg/(N*m)] motor specific torque
W [lbf] motor weight
Qmax [N*m] motor max. torque
V_max 300 [V] motor max voltage
Expand Down Expand Up @@ -100,4 +100,4 @@ def setup(self):




3 changes: 2 additions & 1 deletion gpkitmodels/GP/aircraft/wing/sparloading.py
Expand Up @@ -22,6 +22,7 @@ class SparLoading(Model):
Mtip 1e-10 [N*m] tip moment
throot 1e-10 [-] root deflection angle
wroot 1e-10 [m] root deflection
Soffset 1e5 [N] offset shear
Variables of length wing.N
--------------------------
Expand Down Expand Up @@ -69,7 +70,7 @@ def setup(self, wing, state, sp=False):
with SignomialsEnabled():
constraints = [
S[:-1] >= (S[1:] + 0.5*deta*(b/2.)*(q[:-1] + q[1:])
- Sout + N*W),
- Sout),
S[-1] >= N*W,
M[:-1] >= M[1:] + 0.5*deta*(b/2)*(S[:-1] + S[1:] - 2*N*W),
]
Expand Down

0 comments on commit b9f1da0

Please sign in to comment.