summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-11 18:06:08 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-11 18:06:08 -0300
commitec20e2ac95f8a5013f2293a7a2a96016fb805581 (patch)
tree743a446a8bf6be416abda0a56e41e5b10e13be3b /Project/IndMotor.h
parentf54297e08079fe1954920ca2742b0bed19f86181 (diff)
downloadPSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.tar.gz
PSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.tar.xz
PSP.git-ec20e2ac95f8a5013f2293a7a2a96016fb805581.zip
Induction motor DAE implemented
Need some testing Check inertia
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r--Project/IndMotor.h7
1 files changed, 6 insertions, 1 deletions
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<double> terminalVoltageVector;
double slip = 1.0; // Machine slip
std::vector<double> slipVector;
+ double te;
+ std::vector<double> electricalTorqueVector;
+ std::vector<double> mechanicalTorqueVector;
std::complex<double> electricalPower;
std::vector<std::complex<double> > 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<Element*> parentList);