summaryrefslogtreecommitdiffstats
path: root/Project/Transformer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Transformer.h')
-rw-r--r--Project/Transformer.h39
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