sofa::component::odesolver::RungeKutta4Solver Class Reference

A popular time integration method, much more precise than the EulerSolver. More...

#include <RungeKutta4Solver.h>

Inheritance diagram for sofa::component::odesolver::RungeKutta4Solver:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::odesolver::RungeKutta4Solver:

Collaboration graph
[legend]

Public Member Functions

void solve (double dt)
 Main computation method.
virtual double getIntegrationFactor (int inputDerivative, int outputDerivative) const
 Given an input derivative order (0 for position, 1 for velocity, 2 for acceleration), how much will it affect the output derivative of the given order.
virtual double getSolutionIntegrationFactor (int outputDerivative) const
 Given a solution of the linear system, how much will it affect the output derivative of the given order.

Detailed Description

A popular time integration method, much more precise than the EulerSolver.

Definition at line 41 of file RungeKutta4Solver.h.


Member Function Documentation

virtual double sofa::component::odesolver::RungeKutta4Solver::getIntegrationFactor ( int  inputDerivative,
int  outputDerivative 
) const [inline, virtual]

Given an input derivative order (0 for position, 1 for velocity, 2 for acceleration), how much will it affect the output derivative of the given order.

use real factors depending on the current RK4 step

Implements sofa::core::componentmodel::behavior::OdeSolver.

Definition at line 50 of file RungeKutta4Solver.h.

References sofa::core::objectmodel::BaseObject::getContext(), and sofa::core::objectmodel::BaseContext::getDt().

virtual double sofa::component::odesolver::RungeKutta4Solver::getSolutionIntegrationFactor ( int  outputDerivative  )  const [inline, virtual]

Given a solution of the linear system, how much will it affect the output derivative of the given order.

use real factors depending on the current RK4 step

Implements sofa::core::componentmodel::behavior::OdeSolver.

Definition at line 66 of file RungeKutta4Solver.h.

References sofa::core::objectmodel::BaseObject::getContext(), and sofa::core::objectmodel::BaseContext::getDt().

void sofa::component::odesolver::RungeKutta4Solver::solve ( double  dt  )  [virtual]


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:21:20 2008 for Sofa by  doxygen 1.5.7.1