sofa::component::odesolver::DampVelocitySolver Class Reference

Velocity damping and thresholding. More...

#include <DampVelocitySolver.h>

Inheritance diagram for sofa::component::odesolver::DampVelocitySolver:

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

Collaboration graph
[legend]

Public Member Functions

 DampVelocitySolver ()
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) const
 Given a solution of the linear system, how much will it affect the output derivative of the given order.

Data Fields

Data< double > rate
Data< double > threshold

Detailed Description

Velocity damping and thresholding.

This is not an ODE solver, but it can be used as a post-process after a real ODE solver.

Definition at line 43 of file DampVelocitySolver.h.


Constructor & Destructor Documentation

sofa::component::odesolver::DampVelocitySolver::DampVelocitySolver (  ) 

Definition at line 52 of file DampVelocitySolver.cpp.


Member Function Documentation

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

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

virtual double sofa::component::odesolver::DampVelocitySolver::getSolutionIntegrationFactor ( int   )  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 69 of file DampVelocitySolver.h.

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


Field Documentation

Definition at line 48 of file DampVelocitySolver.h.

Referenced by getIntegrationFactor(), and solve().

Definition at line 49 of file DampVelocitySolver.h.

Referenced by solve().


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