From 070aa94b09a97b973518761c76d9e20cc4d3905e Mon Sep 17 00:00:00 2001 From: Chris Courtin Date: Wed, 18 Apr 2018 09:21:46 -0400 Subject: [PATCH] Changed Kv to bounded variable instead of fixed --- gpkitmodels/GP/aircraft/motor/motor.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gpkitmodels/GP/aircraft/motor/motor.py b/gpkitmodels/GP/aircraft/motor/motor.py index 18cae3ae..3f27dbdc 100644 --- a/gpkitmodels/GP/aircraft/motor/motor.py +++ b/gpkitmodels/GP/aircraft/motor/motor.py @@ -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): @@ -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): @@ -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):