diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-14 17:45:25 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-14 17:45:25 -0300 |
commit | d60de5e4c4774c5b840c5cab2cb629a5bbe9df42 (patch) | |
tree | 48e2bf736271e137af90ec1ffc1dcf7a21aeb2a7 /Project/Transformer.h | |
parent | 3596d19f6d804a9610545ce39f07e421d1dc716e (diff) | |
download | PSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.tar.gz PSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.tar.xz PSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.zip |
Switching implemented
Diffstat (limited to 'Project/Transformer.h')
-rw-r--r-- | Project/Transformer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Project/Transformer.h b/Project/Transformer.h index 4630d33..835fc03 100644 --- a/Project/Transformer.h +++ b/Project/Transformer.h @@ -3,6 +3,44 @@ #include "Branch.h" +class TransformerForm; + +enum TransformerConnection +{ + GWYE_GWYE = 0, + WYE_GWYE, + GWYE_WYE, + WYE_WYE, + DELTA_GWYE, + DELTA_WYE, + GWYE_DELTA, + WYE_DELTA, + DELTA_DELTA +}; + +struct TransformerElectricalData +{ + // General + wxString name = ""; + double nominalVoltage = 138.0; + ElectricalUnit nominalVoltageUnit = UNIT_kV; + double nominalPower = 100.0; + ElectricalUnit nominalPowerUnit = UNIT_MVA; + double resistance = 0.0; + ElectricalUnit resistanceUnit = UNIT_PU; + double indReactance = 1.0; + ElectricalUnit indReactanceUnit = UNIT_PU; + double capSusceptance = 0.0; + ElectricalUnit capSusceptanceUnit = UNIT_PU; + double lineSize = 100.0; + bool useLinePower = false; + + // Fault + double zeroResistance = 0.0; + double zeroIndReactance = 1.0; + double zeroCapSusceptance = 0.0; +}; + class Transformer : public Branch { public: @@ -18,6 +56,7 @@ public: virtual void MoveNode(Element* parent, wxPoint2DDouble position); virtual void StartMove(wxPoint2DDouble position); virtual bool GetContextMenu(wxMenu& menu); + virtual bool ShowForm(wxWindow* parent, Element* element); }; #endif // TRANSFORMER_H |