diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-03 16:26:55 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-03 16:26:55 -0200 |
commit | 4799019fb948226daf5777d0d3ba41257dd55657 (patch) | |
tree | acc64be850536c872189d4885be51d2fc9075436 /Project/PowerFlow.h | |
parent | 004257e2abebbf448ba8d1fba32daae216b2c88e (diff) | |
download | PSP.git-4799019fb948226daf5777d0d3ba41257dd55657.tar.gz PSP.git-4799019fb948226daf5777d0d3ba41257dd55657.tar.xz PSP.git-4799019fb948226daf5777d0d3ba41257dd55657.zip |
Power flow validate method under implementation
Diffstat (limited to 'Project/PowerFlow.h')
-rw-r--r-- | Project/PowerFlow.h | 22 |
1 files changed, 10 insertions, 12 deletions
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 <wx/string.h> -#include <wx/intl.h>//_() -#include <wx/log.h>//temp +#include <wx/intl.h> //_() +#include <wx/log.h> //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<Element*> 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<std::vector<std::complex<double> > > m_yBus; - wxString m_errorMsg = ""; + wxString m_errorMsg = ""; }; #endif // POWERFLOW_H |