diff options
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 |