diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-25 01:11:17 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-07-25 01:11:17 -0300 |
commit | c7ef9a883031c68506357f9ef1b1a0b79c79f4da (patch) | |
tree | 06646fb4511030daa7fb6426dfab9dc2413a7253 /Project/IndMotor.h | |
parent | 4f434e4a1cccce69e4b680e4734df52244d3a30b (diff) | |
download | PSP.git-c7ef9a883031c68506357f9ef1b1a0b79c79f4da.tar.gz PSP.git-c7ef9a883031c68506357f9ef1b1a0b79c79f4da.tar.xz PSP.git-c7ef9a883031c68506357f9ef1b1a0b79c79f4da.zip |
Motor integration with PF
Newton bug fixed
Newton inertia implemented
Gauss-Newton implemented
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r-- | Project/IndMotor.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Project/IndMotor.h b/Project/IndMotor.h index 89bd6e1..0aa6937 100644 --- a/Project/IndMotor.h +++ b/Project/IndMotor.h @@ -32,6 +32,17 @@ struct IndMotorElectricalData { ElectricalUnit reactivePowerUnit = UNIT_MVAr; bool useMachinePowerAsBase = true; + bool calcQInPowerFlow = true; + + // Power flow + double k1 = 0.0; + double k2 = 0.0; + double k3 = 0.0; + double k4 = 0.0; + double p0 = 0.0; + int busNum = 0; + + double qValue = 0.0; // Stability bool plotIndMachine = false; @@ -119,6 +130,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 void InitPowerFlowMotor(double systemPowerBase, int busNumber); + virtual bool CalculateReactivePower(double voltage); virtual bool GetPlotData(ElementPlotData& plotData, PlotStudy study = STABILITY); |