16 #ifndef SURGSIM_MATH_ODESOLVERRUNGEKUTTA4_H 17 #define SURGSIM_MATH_ODESOLVERRUNGEKUTTA4_H 21 #include "SurgSim/Math/OdeSolver.h" 62 void solve(
double dt,
const OdeState& currentState,
OdeState* newState,
bool computeCompliance =
true)
override;
66 bool computeRHS =
true)
override;
87 #endif // SURGSIM_MATH_ODESOLVERRUNGEKUTTA4_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Internal structure to hold the 4 temporary evaluations.
Definition: OdeSolverRungeKutta4.h:69
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
void solve(double dt, const OdeState ¤tState, OdeState *newState, bool computeCompliance=true) override
Solves the equation.
Definition: OdeSolverRungeKutta4.cpp:31
Runge Kutta 4 ode solver (See http://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods) solves the fo...
Definition: OdeSolverRungeKutta4.h:55
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
A dynamic size column vector.
Definition: Vector.h:68
void assembleLinearSystem(double dt, const OdeState &state, const OdeState &newState, bool computeRHS=true) override
Assemble the linear system (A.x=b) to be solved for the state and new states (useful for certain ode ...
Definition: OdeSolverRungeKutta4.cpp:94
Base class for all solvers of ode equation of order 2 of the form .
Definition: OdeSolver.h:78
RungeKuttaDerivedState m_k1
Definition: OdeSolverRungeKutta4.h:79
OdeSolverRungeKutta4(OdeEquation *equation)
Constructor.
Definition: OdeSolverRungeKutta4.cpp:25