sofa::component::odesolver::EulerSolver Class Reference

The simplest time integration. More...

#include <EulerSolver.h>

Inheritance diagram for sofa::component::odesolver::EulerSolver:

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

Collaboration graph
[legend]

Public Member Functions

 EulerSolver ()
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.

Data Fields

Data< bool > symplectic

Detailed Description

The simplest time integration.

Two variants are available, depending on the value of field "symplectic". If true (the default), the symplectic variant of Euler's method is applied: If false, the basic Euler's method is applied (less robust)

Definition at line 45 of file EulerSolver.h.


Constructor & Destructor Documentation

sofa::component::odesolver::EulerSolver::EulerSolver (  ) 

Definition at line 53 of file EulerSolver.cpp.


Member Function Documentation

virtual double sofa::component::odesolver::EulerSolver::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.

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

Definition at line 54 of file EulerSolver.h.

References sofa::core::objectmodel::BaseObject::getContext(), sofa::core::objectmodel::BaseContext::getDt(), sofa::core::objectmodel::Data< T >::getValue(), and symplectic.

virtual double sofa::component::odesolver::EulerSolver::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.

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

Definition at line 70 of file EulerSolver.h.

References sofa::core::objectmodel::BaseObject::getContext(), sofa::core::objectmodel::BaseContext::getDt(), sofa::core::objectmodel::Data< T >::getValue(), and symplectic.

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


Field Documentation

Definition at line 50 of file EulerSolver.h.

Referenced by getIntegrationFactor(), getSolutionIntegrationFactor(), and solve().


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