summaryrefslogtreecommitdiffstats
path: root/Project/Bus.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-11-03 16:26:55 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-11-03 16:26:55 -0200
commit4799019fb948226daf5777d0d3ba41257dd55657 (patch)
treeacc64be850536c872189d4885be51d2fc9075436 /Project/Bus.h
parent004257e2abebbf448ba8d1fba32daae216b2c88e (diff)
downloadPSP.git-4799019fb948226daf5777d0d3ba41257dd55657.tar.gz
PSP.git-4799019fb948226daf5777d0d3ba41257dd55657.tar.xz
PSP.git-4799019fb948226daf5777d0d3ba41257dd55657.zip
Power flow validate method under implementation
Diffstat (limited to 'Project/Bus.h')
-rw-r--r--Project/Bus.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/Project/Bus.h b/Project/Bus.h
index 90068d1..2776462 100644
--- a/Project/Bus.h
+++ b/Project/Bus.h
@@ -4,8 +4,7 @@
#include "BusForm.h"
#include "Element.h"
-struct BusElectricalData
-{
+struct BusElectricalData {
wxString name = "";
double nominalVoltage = 138.0;
ElectricalUnit nominalVoltageUnit = UNIT_kV;
@@ -13,11 +12,18 @@ struct BusElectricalData
double controlledVoltage = 1.0;
int controlledVoltageUnitChoice = 0; // 0 = p.u., 1 = same as nominalVoltageUnit (UNIT_V or UNIT_kV).
bool slackBus = false;
+
+ // Power flow (p.u.)
+ std::complex<double> voltage = std::complex<double>(1.0, 0.0);
+
+ // Fault
bool hasFault = false;
FaultData faultType = FAULT_THREEPHASE;
FaultData faultLocation = FAULT_LINE_A;
double faultResistance = 0.0;
double faultReactance = 0.0;
+
+ // Stability
bool plotBus = false;
bool stabHasFault = false;
double stabFaultTime = 0.0;
@@ -31,7 +37,7 @@ class Bus : public Element
public:
Bus();
Bus(wxPoint2DDouble position);
- Bus(wxPoint2DDouble position, wxString name);
+ Bus(wxPoint2DDouble position, wxString name);
~Bus();
virtual bool AddParent(Element* parent, wxPoint2DDouble position) { return true; }
virtual bool Contains(wxPoint2DDouble position) const;