diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-13 01:14:14 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-13 01:14:14 -0300 |
commit | 4d4f39cb101bb0ccb1d336587a9e143b392dbefc (patch) | |
tree | 649c4b6e6425dd25cbabf63b9efe373995485ac1 /Project/IndMotor.h | |
parent | fed838330b39f69a682b64b1b885fec17ff901d7 (diff) | |
download | PSP.git-4d4f39cb101bb0ccb1d336587a9e143b392dbefc.tar.gz PSP.git-4d4f39cb101bb0ccb1d336587a9e143b392dbefc.tar.xz PSP.git-4d4f39cb101bb0ccb1d336587a9e143b392dbefc.zip |
Multiple motor initialization implemented
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r-- | Project/IndMotor.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/Project/IndMotor.h b/Project/IndMotor.h index 4137e6f..760a65a 100644 --- a/Project/IndMotor.h +++ b/Project/IndMotor.h @@ -34,7 +34,7 @@ struct IndMotorElectricalData { bool useMachinePowerAsBase = true; // Stability - bool plotIndMachine = true; + bool plotIndMachine = false; double inertia = 1.0; // Motor and load inertia double s0; // Initial slip double q0; // Initial reactive power @@ -43,15 +43,17 @@ struct IndMotorElectricalData { double r2 = 1.0; // Rotor resistence data double x2 = 0.0; // Rotor reactance data double xm = 100.0; // Magnetizing reactance data + double kf = 0.0; // Cage factor + bool useKf = false; // Transient values double xt = 1.0; // Transient reactance double x0 = 1.0; // Open-circuit reactance double r1t = 0.0; // Stator resistence in system power base - double x1t = 1.0; // Stator reactance in system power base - double r2t = 1.0; // Rotor resistence in system power base - double x2t = 0.0; // Rotor reactance in system power base - double xmt = 100.0; // Magnetizing reactance in system power base + double x1t = 1.0; // Stator reactance in system power base + double r2t = 1.0; // Rotor resistence in system power base + double x2t = 0.0; // Rotor reactance in system power base + double xmt = 100.0; // Magnetizing reactance in system power base double t0 = 1.0; // Open-circuit time constant @@ -63,15 +65,15 @@ struct IndMotorElectricalData { double cs = 0.0; // Slip quadratic dependent torque // Internal machine variables - double tranEr; - double tranEm; - double ir; - double im; + double tranEr = 0.0; + double tranEm = 0.0; + double ir = 0.0; + double im = 0.0; // Variables to extrapolate - double oldIr; - double oldIm; - double oldTe; + double oldIr = 0.0; + double oldIm = 0.0; + double oldTe = 0.0; // Integration constants IntegrationConstant icSlip; @@ -88,8 +90,8 @@ struct IndMotorElectricalData { std::vector<double> mechanicalTorqueVector; std::vector<double> velocityVector; std::vector<double> currentVector; - std::complex<double> electricalPower; - std::vector<std::complex<double> > electricalPowerVector; + std::vector<double> activePowerVector; + std::vector<double> reactivePowerVector; }; /** @@ -114,7 +116,7 @@ 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); |