OdeSolverEulerImplicit.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
9 //
10 // Unless required by applicable law or agreed to in writing, software
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15
16 #ifndef SURGSIM_MATH_ODESOLVEREULERIMPLICIT_H
17 #define SURGSIM_MATH_ODESOLVEREULERIMPLICIT_H
18
19 #include "SurgSim/Math/OdeSolver.h"
20
21 namespace SurgSim
22 {
23
24 namespace Math
25 {
26
39 {
40 public:
43  explicit OdeSolverEulerImplicit(OdeEquation* equation);
44
45  virtual void solve(double dt, const OdeState& currentState, OdeState* newState) override;
46 };
47
48 }; // namespace Math
49
50 }; // namespace SurgSim
51
52 #endif // SURGSIM_MATH_ODESOLVEREULERIMPLICIT_H
Ode equation of 2nd order of the form M(x,v).a = F(x, v) with (x0, v0) for initial conditions and a s...
Definition: OdeEquation.h:40
OdeState defines the state y of an ode of 2nd order of the form M(x,v).a = F(x, v) with boundary cond...
Definition: OdeState.h:34
virtual void solve(double dt, const OdeState &currentState, OdeState *newState) override
Solves the equation.
Definition: OdeSolverEulerImplicit.cpp:31
Base class for all solvers of ode equation of order 2 of the form M(x(t), v(t)).a(t) = f(t...
Definition: OdeSolver.h:73
Euler Implicit ode solver.
Definition: OdeSolverEulerImplicit.h:38
OdeSolverEulerImplicit(OdeEquation *equation)
Constructor.
Definition: OdeSolverEulerImplicit.cpp:25