summaryrefslogtreecommitdiffstats
path: root/Project/PropertiesData.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-04-26 17:52:32 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-04-26 17:52:32 -0300
commit2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6 (patch)
tree4aba955355f4b98138e2f38c58223f51bf4d697b /Project/PropertiesData.h
parenta40d5a405d60b4e429f6f578dcfe3c33ab5ad81a (diff)
downloadPSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.tar.gz
PSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.tar.xz
PSP.git-2b02ef22cc5f2025b09b700f1cb6e1cec94d80f6.zip
Power quality fully implemented
A formal filter element must be implemented in future
Diffstat (limited to 'Project/PropertiesData.h')
-rw-r--r--Project/PropertiesData.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Project/PropertiesData.h b/Project/PropertiesData.h
index 926b90b..4a6e8d0 100644
--- a/Project/PropertiesData.h
+++ b/Project/PropertiesData.h
@@ -18,9 +18,9 @@
#ifndef PROPERTIESDATA_H
#define PROPERTIESDATA_H
-#include "wx/language.h"
#include "Element.h"
#include "PowerElement.h"
+#include "wx/language.h"
enum PowerFlowMethod { GAUSS_SEIDEL = 0, NEWTON_RAPHSON };
enum GUITheme { THEME_LIGHT = 0, THEME_DARK };
@@ -49,7 +49,7 @@ struct SimulationData {
int controlTimeStepRatio = 10;
double plotTime = 1e-2;
bool useCOI = true;
-
+
// ZIP load
bool useCompLoads = false;
double constImpedanceActive = 100.0;
@@ -67,6 +67,13 @@ struct GeneralData {
GUITheme theme = THEME_LIGHT;
};
+struct FreqResponseData {
+ double initFreq = 0.0;
+ double finalFreq = 1500.0;
+ double stepFreq = 1.0;
+ int injBusNumber = -1;
+};
+
/**
* @class PropertiesData
* @author Thales Lima Oliveira <thales@ufu.br>
@@ -84,9 +91,14 @@ class PropertiesData
void SetSimulationPropertiesData(SimulationData simulationData) { m_simulData = simulationData; }
GeneralData GetGeneralPropertiesData() const { return m_genData; }
void SetGeneralPropertiesData(GeneralData generalData) { m_genData = generalData; }
+
+ void SetFreqRespData(const FreqResponseData& freqRespData) { this->m_freqRespData = freqRespData; }
+ const FreqResponseData& GetFreqRespData() const { return m_freqRespData; }
+
protected:
SimulationData m_simulData;
GeneralData m_genData;
+ FreqResponseData m_freqRespData;
};
#endif // PROPERTIESDATA_H