From ec20e2ac95f8a5013f2293a7a2a96016fb805581 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 11 Jul 2019 18:06:08 -0300 Subject: Induction motor DAE implemented Need some testing Check inertia --- Project/IndMotor.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Project/IndMotor.h') diff --git a/Project/IndMotor.h b/Project/IndMotor.h index 3f5009a..98e3414 100644 --- a/Project/IndMotor.h +++ b/Project/IndMotor.h @@ -34,6 +34,7 @@ struct IndMotorElectricalData { bool useMachinePowerAsBase = true; // Stability + bool plotIndMachine = true; double inertia = 1.0; // Motor and load inertia double s0; // Initial slip double q0; // Initial reactive power @@ -64,7 +65,6 @@ struct IndMotorElectricalData { // Internal machine variables double tranEr; double tranEm; - double te; double ir; double im; @@ -83,6 +83,9 @@ struct IndMotorElectricalData { std::vector terminalVoltageVector; double slip = 1.0; // Machine slip std::vector slipVector; + double te; + std::vector electricalTorqueVector; + std::vector mechanicalTorqueVector; std::complex electricalPower; std::vector > electricalPowerVector; }; @@ -109,6 +112,8 @@ class IndMotor : public Machines virtual IndMotorElectricalData GetElectricalData() { return m_electricalData; } virtual IndMotorElectricalData GetPUElectricalData(double systemPowerBase); virtual void SetElectricalData(IndMotorElectricalData electricalData) { m_electricalData = electricalData; } + + virtual bool GetPlotData(ElementPlotData& plotData, PlotStudy study = STABILITY); virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode); virtual bool OpenElement(rapidxml::xml_node<>* elementNode, std::vector parentList); -- cgit