sofa::component::odesolver::CentralDifferenceSolver Class Reference

Explicit time integrator using central difference (also known as Verlet of Leap-frop). More...

#include <CentralDifferenceSolver.h>

Inheritance diagram for sofa::component::odesolver::CentralDifferenceSolver:

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

Collaboration graph
[legend]

Public Member Functions

 CentralDifferenceSolver ()
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< double > f_rayleighMass

Detailed Description

Explicit time integrator using central difference (also known as Verlet of Leap-frop).

See also:
http://www.dynasupport.com/support/tutorial/users.guide/time.integration

http://en.wikipedia.org/wiki/Leapfrog_method

Definition at line 48 of file CentralDifferenceSolver.h.


Constructor & Destructor Documentation

sofa::component::odesolver::CentralDifferenceSolver::CentralDifferenceSolver (  ) 

Definition at line 47 of file CentralDifferenceSolver.cpp.


Member Function Documentation

virtual double sofa::component::odesolver::CentralDifferenceSolver::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 61 of file CentralDifferenceSolver.h.

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

virtual double sofa::component::odesolver::CentralDifferenceSolver::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 77 of file CentralDifferenceSolver.h.

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

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

Main computation method.

Specify and execute all computation for timestep integration, i.e. advancing the state from time t to t+dt.

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


Field Documentation

Definition at line 56 of file CentralDifferenceSolver.h.


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

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