opensurgsim
OdeSolverLinearRungeKutta4.h
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
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_ODESOLVERLINEARRUNGEKUTTA4_H
17 #define SURGSIM_MATH_ODESOLVERLINEARRUNGEKUTTA4_H
18 
19 #include "SurgSim/Math/OdeSolverRungeKutta4.h"
20 
21 namespace SurgSim
22 {
23 
24 namespace Math
25 {
26 
31 {
32 public:
35  explicit OdeSolverLinearRungeKutta4(OdeEquation* equation);
36 
39  void solve(double dt, const OdeState& currentState, OdeState* newState, bool computeCompliance = true) override;
40 
41 private:
42  bool m_initialized;
43 };
44 
45 }; // namespace Math
46 
47 }; // namespace SurgSim
48 
49 #endif // SURGSIM_MATH_ODESOLVERLINEARRUNGEKUTTA4_H
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
void solve(double dt, const OdeState &currentState, OdeState *newState, bool computeCompliance=true) override
The parameter computeCompliance is irrelevant for any Linear solver as it is a constant matrix...
Definition: OdeSolverLinearRungeKutta4.cpp:32
Ode equation of 2nd order of the form with for initial conditions and a set of boundary conditions...
Definition: OdeEquation.h:54
The state of an ode of 2nd order of the form with boundary conditions.
Definition: OdeState.h:38
Linear Version of the Runge Kutta 4 ode solver This solver assumes that the system is linear ie that ...
Definition: OdeSolverLinearRungeKutta4.h:30
Runge Kutta 4 ode solver (See http://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods) solves the fo...
Definition: OdeSolverRungeKutta4.h:55
OdeSolverLinearRungeKutta4(OdeEquation *equation)
Constructor.
Definition: OdeSolverLinearRungeKutta4.cpp:25