diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-04-25 01:25:41 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-04-25 01:25:41 -0300 |
commit | 2771fff79ac9c3c09b70f4668e7142b2e944d1f2 (patch) | |
tree | c55b0780b0da2ac270df16c5b92d7fc243ea0756 /Project/PowerQuality.h | |
parent | fdb50c49b323edf16ce72c7ee2c678aa1ac99777 (diff) | |
download | PSP.git-2771fff79ac9c3c09b70f4668e7142b2e944d1f2.tar.gz PSP.git-2771fff79ac9c3c09b70f4668e7142b2e944d1f2.tar.xz PSP.git-2771fff79ac9c3c09b70f4668e7142b2e944d1f2.zip |
Matpower Importer and power quality calculation
Power quality in implementation
Diffstat (limited to 'Project/PowerQuality.h')
-rw-r--r-- | Project/PowerQuality.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Project/PowerQuality.h b/Project/PowerQuality.h new file mode 100644 index 0000000..ad47884 --- /dev/null +++ b/Project/PowerQuality.h @@ -0,0 +1,37 @@ +#ifndef POWERQUALITY_H +#define POWERQUALITY_H + +#include "ElectricCalculation.h" + +#include <wx/intl.h> //_() +#include <wx/string.h> + +/** + * @class PowerQuality + * @author Thales Lima Oliveira <thales@ufu.br> + * @date 24/04/2019 + * @brief Responsible for the power quality calculations. + * @file PowerQuality.h + */ +class PowerQuality : public ElectricCalculation +{ + public: + struct HarmonicYbus { + double order; + std::vector<std::vector<std::complex<double> > > yBus; + }; + + PowerQuality(); + PowerQuality(std::vector<Element*> elementList); + ~PowerQuality(); + + virtual void CalculateHarmonicYbusList(double systemPowerBase = 100e6); + + virtual bool CalculateDistortions(double systemPowerBase = 100e6); + virtual std::vector<double> GetHarmonicOrdersList(); + + protected: + std::vector<HarmonicYbus> m_harmYbusList; +}; + +#endif // POWERQUALITY_H |