#include <DampVelocitySolver.h>


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 |
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.
| sofa::component::odesolver::DampVelocitySolver::DampVelocitySolver | ( | ) |
Definition at line 52 of file DampVelocitySolver.cpp.
| 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] |
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.
Definition at line 57 of file DampVelocitySolver.cpp.
References sofa::simulation::SolverImpl::addSeparateGravity(), sofa::core::objectmodel::BaseObject::f_printLog, sofa::core::objectmodel::Data< T >::getValue(), rate, sofa::core::componentmodel::behavior::MultiVector< Parent >::teq(), sofa::core::componentmodel::behavior::MultiVector< Parent >::threshold(), threshold, and sofa::core::componentmodel::behavior::BaseMechanicalState::VecId::velocity().
Definition at line 48 of file DampVelocitySolver.h.
Referenced by getIntegrationFactor(), and solve().
1.5.7.1