summaryrefslogtreecommitdiffstats
path: root/Project/ControlElementSolver.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-08 21:43:17 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-08 21:43:17 -0300
commit9fb33a91aa22fbce6d0b74529e07af9f7781b916 (patch)
tree2cd9f042977cf598949e7b29745886abfe1bf342 /Project/ControlElementSolver.h
parent74d795cb074b6ae9aa93bcfacee8995d7e6d5945 (diff)
downloadPSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.gz
PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.xz
PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.zip
Secondary branch, TF and limiter solution
much work, such results
Diffstat (limited to 'Project/ControlElementSolver.h')
-rw-r--r--Project/ControlElementSolver.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/ControlElementSolver.h b/Project/ControlElementSolver.h
index 9ca6e02..e51c40d 100644
--- a/Project/ControlElementSolver.h
+++ b/Project/ControlElementSolver.h
@@ -23,10 +23,11 @@ class ControlElementSolver
ControlElementSolver() {}
ControlElementSolver(ControlEditor* controlEditor,
double timeStep = 1e-3,
+ double integrationError = 1e-3,
bool startAllZero = false,
double input = 0.0);
~ControlElementSolver() {}
- virtual void InitializeValues(double input);
+ virtual void InitializeValues(double input, bool startAllZero);
virtual void SolveNextStep(double input);
virtual std::vector<double> GetSolutions() { return m_solutions; }
virtual double GetLastSolution() { return m_solutions[m_solutions.size() - 1]; }
@@ -36,6 +37,7 @@ class ControlElementSolver
ControlElementContainer* m_ctrlContainer = NULL;
double m_timeStep;
+ double m_integrationError;
std::vector<double> m_solutions;
IOControl* m_inputControl = NULL;