diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-09 20:19:58 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-09 20:19:58 -0200 |
commit | 7928eca406f5000aabf202fd393908b097f27449 (patch) | |
tree | 86e61fea010a0df2b9e3a6ea1cf33d02287354b8 /Project/PowerFlow.h | |
parent | 4924742ad16a2818589924e95f570249e31fb5c2 (diff) | |
download | PSP.git-7928eca406f5000aabf202fd393908b097f27449.tar.gz PSP.git-7928eca406f5000aabf202fd393908b097f27449.tar.xz PSP.git-7928eca406f5000aabf202fd393908b097f27449.zip |
Fault calculation implemented
Diffstat (limited to 'Project/PowerFlow.h')
-rw-r--r-- | Project/PowerFlow.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Project/PowerFlow.h b/Project/PowerFlow.h index 1e5c621..29e205a 100644 --- a/Project/PowerFlow.h +++ b/Project/PowerFlow.h @@ -4,24 +4,25 @@ #include "ElectricCalculation.h" #include <wx/string.h> -#include <wx/intl.h> //_() -#include <wx/log.h> //temp +#include <wx/intl.h> //_() class PowerFlow : public ElectricCalculation { - public: +public: + PowerFlow(); 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); + int maxIteration = 5000, + double error = 1e-6, + double initAngle = 0.0, + double accFactor = 1.0); virtual wxString GetErrorMessage() { return m_errorMsg; } - protected: + +protected: std::vector<std::vector<std::complex<double> > > m_yBus; wxString m_errorMsg = ""; }; -#endif // POWERFLOW_H +#endif // POWERFLOW_H |