From 30181ca0ae73f5f7f1856ac289db8fcf849c9a84 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 20 May 2017 17:22:47 -0300 Subject: Electromechanical class and several methods implemented --- Project/Electromechanical.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Project/Electromechanical.h (limited to 'Project/Electromechanical.h') 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 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 > > m_yBus; + + double m_timeStep = 1e-3; + + std::vector m_eventTimeList; + std::vector m_eventOccurrenceList; +}; + +#endif // ELECTROMECHANICAL_H -- cgit