summaryrefslogtreecommitdiffstats
path: root/Project/Bus.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-07 20:09:13 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-07 20:09:13 -0200
commita41af814d1339a03a7891ee5c84f49006fac58e5 (patch)
treecd965e3c6ec6d933c536a5c86a1f8a67d10a6c41 /Project/Bus.h
parentf5bb978b22c881dc61663d8ac660cc2778a842bb (diff)
downloadPSP.git-a41af814d1339a03a7891ee5c84f49006fac58e5.tar.gz
PSP.git-a41af814d1339a03a7891ee5c84f49006fac58e5.tar.xz
PSP.git-a41af814d1339a03a7891ee5c84f49006fac58e5.zip
Multiline text implemented
text update still under implementation
Diffstat (limited to 'Project/Bus.h')
-rw-r--r--Project/Bus.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/Project/Bus.h b/Project/Bus.h
index 836d2f7..470d4cb 100644
--- a/Project/Bus.h
+++ b/Project/Bus.h
@@ -11,7 +11,7 @@ struct BusElectricalData {
ElectricalUnit nominalVoltageUnit = UNIT_kV;
bool isVoltageControlled = false;
double controlledVoltage = 1.0;
- int controlledVoltageUnitChoice = 0; // 0 = p.u., 1 = same as nominalVoltageUnit (UNIT_V or UNIT_kV).
+ int controlledVoltageUnitChoice = 0; // 0 = p.u., 1 = same as nominalVoltageUnit (UNIT_V or UNIT_kV).
bool slackBus = false;
// Power flow (p.u.)
@@ -21,8 +21,14 @@ struct BusElectricalData {
bool hasFault = false;
FaultData faultType = FAULT_THREEPHASE;
FaultData faultLocation = FAULT_LINE_A;
+ // p.u. fault data
double faultResistance = 0.0;
double faultReactance = 0.0;
+ std::complex<double> faultCurrent[3] = { std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0),
+ std::complex<double>(0.0, 0.0) };
+ std::complex<double> faultVoltage[3] = { std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0),
+ std::complex<double>(0.0, 0.0) };
+ double scPower = 0.0;
// Stability
bool plotBus = false;
@@ -35,7 +41,7 @@ struct BusElectricalData {
class Bus : public Element
{
- public:
+public:
Bus();
Bus(wxPoint2DDouble position);
Bus(wxPoint2DDouble position, wxString name);
@@ -53,8 +59,8 @@ class Bus : public Element
virtual void SetElectricalData(BusElectricalData electricalData) { m_electricalData = electricalData; }
virtual bool ShowForm(wxWindow* parent, Element* element);
- protected:
+protected:
BusElectricalData m_electricalData;
};
-#endif // BUS_H
+#endif // BUS_H