Skip to content

Commit

Permalink
Changed Kv to bounded variable instead of fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
courtin committed Apr 18, 2018
1 parent 34b057b commit 070aa94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gpkitmodels/GP/aircraft/motor/motor.py
Expand Up @@ -17,7 +17,9 @@ class MotorPerf(Model):
i [amps] current
v [V] woltage
i0 4.5 [amps] zero-load current
Kv 29 [rpm/V] motor voltage constant
Kv_min 1 [rpm/V] min motor voltage constant
Kv_max 1000 [rpm/V] max motor voltage constant
Kv [rpm/V] motor voltage constant
R .033 [ohms] internal resistance
"""
def setup(self, static, state):
Expand All @@ -29,7 +31,9 @@ def setup(self, static, state):
static.Qmax >= Q,
v <= static.V_max,
TCS([i >= Q*Kv+i0]),
TCS([v >= omega/Kv + i*R])
TCS([v >= omega/Kv + i*R]),
Kv >= Kv_min,
Kv <= Kv_max
]

class Motor(Model):
Expand All @@ -56,10 +60,6 @@ def setup(self):
class PropulsorPerf(Model):
"""Propulsor Performance Model
Variables
---------
V_static 1 [cm/s] inflow velocity for static thrust
"""

def setup(self, static, state):
Expand Down

0 comments on commit 070aa94

Please sign in to comment.