diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-04 18:02:03 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-11-04 18:02:03 -0200 |
commit | 9919f24692c1fe9b8e11fde5c6d5c18f169b5c10 (patch) | |
tree | b8980db8f053d38adcad362f08fce88541cf45bf /Project/ElectricCalculation.h | |
parent | 4799019fb948226daf5777d0d3ba41257dd55657 (diff) | |
download | PSP.git-9919f24692c1fe9b8e11fde5c6d5c18f169b5c10.tar.gz PSP.git-9919f24692c1fe9b8e11fde5c6d5c18f169b5c10.tar.xz PSP.git-9919f24692c1fe9b8e11fde5c6d5c18f169b5c10.zip |
Validation implemented
Diffstat (limited to 'Project/ElectricCalculation.h')
-rw-r--r-- | Project/ElectricCalculation.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Project/ElectricCalculation.h b/Project/ElectricCalculation.h index 16a761a..02a45e0 100644 --- a/Project/ElectricCalculation.h +++ b/Project/ElectricCalculation.h @@ -15,6 +15,8 @@ #include "SyncMotor.h" #include "Transformer.h" +enum BusType { BUS_SLACK = 0, BUS_PV, BUS_PQ }; + class ElectricCalculation { public: @@ -22,7 +24,10 @@ class ElectricCalculation ~ElectricCalculation(); virtual void GetElementsFromList(std::vector<Element*> elementList); virtual bool GetYBus(std::vector<std::vector<std::complex<double> > >& yBus, double systemPowerBase); - virtual void ValidateElementsPowerFlow(std::vector<std::complex<double> > voltage, std::vector<std::complex<double> > power, double systemPowerBase); + virtual void ValidateElementsPowerFlow(std::vector<std::complex<double> > voltage, + std::vector<std::complex<double> > power, + std::vector<BusType> busType, + double systemPowerBase); protected: std::vector<Bus*> m_busList; |