diff --git a/motors/motor2.py b/motors/motor2.py index 40c5bd6..b6f8041 100644 --- a/motors/motor2.py +++ b/motors/motor2.py @@ -106,11 +106,16 @@ def set_output_vars(self): "Vind_q1": "(InducedVoltage(PhaseA)*sin0_1 + InducedVoltage(PhaseB)*sin1_1 + InducedVoltage(PhaseC)*sin2_1 + InducedVoltage(PhaseD)*sin3_1 + InducedVoltage(PhaseE)*sin4_1) * 2/5", "Vind_d3": "(InducedVoltage(PhaseA)*cos0_3 + InducedVoltage(PhaseB)*cos1_3 + InducedVoltage(PhaseC)*cos2_3 + InducedVoltage(PhaseD)*cos3_3 + InducedVoltage(PhaseE)*cos4_3) * 2/5", "Vind_q3": "(InducedVoltage(PhaseA)*sin0_3 + InducedVoltage(PhaseB)*sin1_3 + InducedVoltage(PhaseC)*sin2_3 + InducedVoltage(PhaseD)*sin3_3 + InducedVoltage(PhaseE)*sin4_3) * 2/5", - "V_A": "InducedVoltage(PhaseA) + Rstat*InputCurrent(PhaseA) + Lew*deriv(InputCurrent(PhaseA))", - "V_B": "InducedVoltage(PhaseB) + Rstat*InputCurrent(PhaseB) + Lew*deriv(InputCurrent(PhaseB))", - "V_C": "InducedVoltage(PhaseC) + Rstat*InputCurrent(PhaseC) + Lew*deriv(InputCurrent(PhaseC))", - "V_D": "InducedVoltage(PhaseD) + Rstat*InputCurrent(PhaseD) + Lew*deriv(InputCurrent(PhaseD))", - "V_E": "InducedVoltage(PhaseE) + Rstat*InputCurrent(PhaseE) + Lew*deriv(InputCurrent(PhaseE))", + "dIA_dt": "-Im1*2*pi*f*sin(2*pi*f*Time+epsI1-pi) - Im3*6*pi*f*sin(3*(2*pi*f*Time)+epsI3-pi)", + "dIB_dt": "-Im1*2*pi*f*sin(2*pi*f*Time-72deg+epsI1-pi) - Im3*6*pi*f*sin(3*(2*pi*f*Time-72deg)+epsI3-pi)", + "dIC_dt": "-Im1*2*pi*f*sin(2*pi*f*Time-144deg+epsI1-pi) - Im3*6*pi*f*sin(3*(2*pi*f*Time-144deg)+epsI3-pi)", + "dID_dt": "-Im1*2*pi*f*sin(2*pi*f*Time-216deg+epsI1-pi) - Im3*6*pi*f*sin(3*(2*pi*f*Time-216deg)+epsI3-pi)", + "dIE_dt": "-Im1*2*pi*f*sin(2*pi*f*Time-288deg+epsI1-pi) - Im3*6*pi*f*sin(3*(2*pi*f*Time-288deg)+epsI3-pi)", + "V_A": "InducedVoltage(PhaseA) + Rstat*InputCurrent(PhaseA) + Lew*dIA_dt", + "V_B": "InducedVoltage(PhaseB) + Rstat*InputCurrent(PhaseB) + Lew*dIB_dt", + "V_C": "InducedVoltage(PhaseC) + Rstat*InputCurrent(PhaseC) + Lew*dIC_dt", + "V_D": "InducedVoltage(PhaseD) + Rstat*InputCurrent(PhaseD) + Lew*dID_dt", + "V_E": "InducedVoltage(PhaseE) + Rstat*InputCurrent(PhaseE) + Lew*dIE_dt", "V_AC": "V_A - V_C", "V_BD": "V_B - V_D", "V_CE": "V_C - V_E",