summaryrefslogtreecommitdiffstats
path: root/Project/Electromechanical.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-26 17:05:54 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-26 17:05:54 -0300
commitec288f99d922ad81b560137c1e561ce02139690a (patch)
tree985b75c4a2aa801e6a58e72741fd7c6ea49524dc /Project/Electromechanical.h
parent734476bea0a2b85b131f5a4d2c9e2b219af7be41 (diff)
downloadPSP.git-ec288f99d922ad81b560137c1e561ce02139690a.tar.gz
PSP.git-ec288f99d922ad81b560137c1e561ce02139690a.tar.xz
PSP.git-ec288f99d922ad81b560137c1e561ce02139690a.zip
Some bugs fixed
Diffstat (limited to 'Project/Electromechanical.h')
-rw-r--r--Project/Electromechanical.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Project/Electromechanical.h b/Project/Electromechanical.h
index 694dbca..5b535a9 100644
--- a/Project/Electromechanical.h
+++ b/Project/Electromechanical.h
@@ -29,7 +29,9 @@ class Electromechanical : public ElectricCalculation
bool InitializeDynamicElements();
void CalculateMachinesCurrents();
void CalculateIntegrationConstants(SyncGenerator* syncGenerator, double id, double iq);
- bool SolveSynchronousMachines(bool saveValues = false);
+ bool SolveSynchronousMachines();
+
+ void SaveData();
wxWindow* m_parent = NULL;
wxString m_errorMsg = _("Unknown error");
@@ -46,7 +48,7 @@ class Electromechanical : public ElectricCalculation
double m_powerSystemBase = 100e6;
double m_timeStep = 1e-3;
- double m_tolerance = 1e-3;
+ double m_tolerance = 1e-5;
int m_maxIterations = 100;
std::vector<double> m_eventTimeList;