summaryrefslogtreecommitdiffstats
path: root/Project/Electromechanical.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-20 17:22:47 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-20 17:22:47 -0300
commit30181ca0ae73f5f7f1856ac289db8fcf849c9a84 (patch)
tree4b8de3270f4157e6dfbce05bc404cbc29333e969 /Project/Electromechanical.h
parent7a556cd67b60f70b9779d298ee687f66c859a529 (diff)
downloadPSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.gz
PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.xz
PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.zip
Electromechanical class and several methods implemented
Diffstat (limited to 'Project/Electromechanical.h')
-rw-r--r--Project/Electromechanical.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Project/Electromechanical.h b/Project/Electromechanical.h
new file mode 100644
index 0000000..c8555b7
--- /dev/null
+++ b/Project/Electromechanical.h
@@ -0,0 +1,32 @@
+#ifndef ELECTROMECHANICAL_H
+#define ELECTROMECHANICAL_H
+
+#include "ElectricCalculation.h"
+
+class Electromechanical : public ElectricCalculation
+{
+public:
+ Electromechanical(std::vector<Element*> elementList);
+ ~Electromechanical();
+
+ bool RunStabilityCalculation();
+ wxString GetErrorMessage() const { return m_errorMsg; }
+
+protected:
+ void SetEventTimeList();
+ bool HasEvent(double currentTime);
+ void SetEvent(double currentTime);
+
+ void Insert
+
+ wxString m_errorMsg = _("Unknown error");
+
+ std::vector<std::vector<std::complex<double> > > m_yBus;
+
+ double m_timeStep = 1e-3;
+
+ std::vector<double> m_eventTimeList;
+ std::vector<bool> m_eventOccurrenceList;
+};
+
+#endif // ELECTROMECHANICAL_H