diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-11-02 23:11:44 -0200 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-11-02 23:11:44 -0200 |
commit | 004257e2abebbf448ba8d1fba32daae216b2c88e (patch) | |
tree | 592ff32b18911e32ece4a7008d119627e856bd68 /Project/SyncMotor.h | |
parent | b306118b2683cf6f264b5f1617c3e0e62a6c9042 (diff) | |
download | PSP.git-004257e2abebbf448ba8d1fba32daae216b2c88e.tar.gz PSP.git-004257e2abebbf448ba8d1fba32daae216b2c88e.tar.xz PSP.git-004257e2abebbf448ba8d1fba32daae216b2c88e.zip |
Gauss-Seidel implemented
Diffstat (limited to 'Project/SyncMotor.h')
-rw-r--r-- | Project/SyncMotor.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Project/SyncMotor.h b/Project/SyncMotor.h index e199808..1f65386 100644 --- a/Project/SyncMotor.h +++ b/Project/SyncMotor.h @@ -11,15 +11,15 @@ struct SyncMotorElectricalData { double nominalPower = 100.0; ElectricalUnit nominalPowerUnit = UNIT_MVA; double activePower = 100.0; - ElectricalUnit activePowerUnit = UNIT_MVA; + ElectricalUnit activePowerUnit = UNIT_MW; double reactivePower = 0.0; - ElectricalUnit reactivePowerUnit = UNIT_MVA; + ElectricalUnit reactivePowerUnit = UNIT_MVAr; bool haveMaxReactive = false; double maxReactive = 9999.0; - ElectricalUnit maxReactiveUnit = UNIT_MVA; + ElectricalUnit maxReactiveUnit = UNIT_MVAr; bool haveMinReactive = false; double minReactive = -9999.0; - ElectricalUnit minReactiveUnit = UNIT_MVA; + ElectricalUnit minReactiveUnit = UNIT_MVAr; bool useMachineBase = false; // Fault @@ -66,6 +66,7 @@ class SyncMotor : public Machines virtual void DrawSymbol() const; virtual bool GetContextMenu(wxMenu& menu); virtual SyncMotorElectricalData GetElectricalData() { return m_electricalData; } + virtual SyncMotorElectricalData GetPUElectricalData(double systemPowerBase); virtual void SetElectricalData(SyncMotorElectricalData electricalData) { m_electricalData = electricalData; } virtual bool ShowForm(wxWindow* parent, Element* element); |