summaryrefslogtreecommitdiffstats
path: root/Project/Electromechanical.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-01-16 09:38:08 -0200
committerGitHub <noreply@github.com>2019-01-16 09:38:08 -0200
commit9c7c255d7dc957241364aca0e5322da926e33fc7 (patch)
tree16dda6fad8398941c3c8e4db6d48ef98602ec06f /Project/Electromechanical.h
parentaf070d92462ac5586aa6a0a80c51a8fa72710600 (diff)
parentdb3fadbcc9f396ca22c4578101bbcd0a7e81609e (diff)
downloadPSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.tar.gz
PSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.tar.xz
PSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.zip
Merge pull request #46 from Thales1330/wip/induction-motor
Wip/induction motor
Diffstat (limited to 'Project/Electromechanical.h')
-rw-r--r--Project/Electromechanical.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Project/Electromechanical.h b/Project/Electromechanical.h
index 4c82bb6..573c0c2 100644
--- a/Project/Electromechanical.h
+++ b/Project/Electromechanical.h
@@ -57,6 +57,9 @@ class Electromechanical : public ElectricCalculation
bool RunStabilityCalculation();
wxString GetErrorMessage() const { return m_errorMsg; }
std::vector<double> GetTimeVector() const { return m_timeVector; }
+
+ // For tests
+ std::vector<double> GetIterationVector() const { return m_iterationsNumVector; }
protected:
void SetEventTimeList();
@@ -98,6 +101,7 @@ class Electromechanical : public ElectricCalculation
double k = 1.0);
void SaveData();
+ void PreallocateVectors();
wxWindow* m_parent = NULL;
wxString m_errorMsg = _("Unknown error");
@@ -127,6 +131,10 @@ class Electromechanical : public ElectricCalculation
std::vector<bool> m_eventOccurrenceList;
std::vector<double> m_timeVector;
+
+ // For tests
+ int m_iterationsNum = 0.0;
+ std::vector<double> m_iterationsNumVector;
};
#endif // ELECTROMECHANICAL_H