From 4799019fb948226daf5777d0d3ba41257dd55657 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 3 Nov 2016 16:26:55 -0200 Subject: Power flow validate method under implementation --- Project/PowerFlow.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'Project/PowerFlow.h') diff --git a/Project/PowerFlow.h b/Project/PowerFlow.h index b30b82f..ac27c7e 100644 --- a/Project/PowerFlow.h +++ b/Project/PowerFlow.h @@ -4,28 +4,26 @@ #include "ElectricCalculation.h" #include -#include //_() -#include //temp +#include //_() +#include //temp -enum BusType -{ - BUS_SLACK = 0, - BUS_PV, - BUS_PQ -}; +enum BusType { BUS_SLACK = 0, BUS_PV, BUS_PQ }; class PowerFlow : public ElectricCalculation { public: PowerFlow(std::vector elementList); ~PowerFlow(); - virtual bool RunGaussSeidel(double systemPowerBase = 100e6, int maxIteration = 5000, double error = 1e-6, double initAngle = 0.0, double accFactor = 1.0); - - virtual wxString GetErrorMessage() { return m_errorMsg; } + virtual bool RunGaussSeidel(double systemPowerBase = 100e6, + int maxIteration = 5000, + double error = 1e-6, + double initAngle = 0.0, + double accFactor = 1.0); + virtual wxString GetErrorMessage() { return m_errorMsg; } protected: std::vector > > m_yBus; - wxString m_errorMsg = ""; + wxString m_errorMsg = ""; }; #endif // POWERFLOW_H -- cgit