#include <EulerKaapiSolver.h>


Public Member Functions | |
| EulerKaapiSolver () | |
| void | solve (double dt) |
| void | computeAcc (double t, VecId a, VecId x, VecId v) |
| void | v_free (VecId v) |
| void | v_clear (VecId v) |
| v=0 | |
| VecId | v_alloc (VecId::Type t) |
| void | propagatePositionAndVelocity (double t, VecId x, VecId v) |
| void | computeForce (VecId result) |
| void | accFromF (VecId a, VecId f) |
| void | projectResponse (VecId dx, double **W=NULL) |
| void | v_peq (VecId v, VecId a, double f) |
| v+=f*a | |
Data Fields | |
| DataField< bool > | symplectic |
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 EulerKaapiSolver.h.
| sofa::component::odesolver::EulerKaapiSolver::EulerKaapiSolver | ( | ) |
Definition at line 65 of file EulerKaapiSolver.cpp.
| void sofa::component::odesolver::EulerKaapiSolver::accFromF | ( | VecId | a, | |
| VecId | f | |||
| ) |
| void sofa::component::odesolver::EulerKaapiSolver::computeAcc | ( | double | t, | |
| VecId | a, | |||
| VecId | x, | |||
| VecId | v | |||
| ) |
Definition at line 124 of file EulerKaapiSolver.cpp.
References accFromF(), computeForce(), force, projectResponse(), and propagatePositionAndVelocity().
Referenced by solve().
| void sofa::component::odesolver::EulerKaapiSolver::computeForce | ( | VecId | result | ) |
| void sofa::component::odesolver::EulerKaapiSolver::projectResponse | ( | VecId | dx, | |
| double ** | W = NULL | |||
| ) |
| void sofa::component::odesolver::EulerKaapiSolver::propagatePositionAndVelocity | ( | double | t, | |
| VecId | x, | |||
| VecId | v | |||
| ) |
| void sofa::component::odesolver::EulerKaapiSolver::solve | ( | double | dt | ) |
Definition at line 141 of file EulerKaapiSolver.cpp.
References computeAcc(), sofa::core::componentmodel::behavior::MultiVector< Parent >::peq(), and symplectic.
| EulerKaapiSolver::VecId sofa::component::odesolver::EulerKaapiSolver::v_alloc | ( | VecId::Type | t | ) |
Definition at line 74 of file EulerKaapiSolver.cpp.
| void sofa::component::odesolver::EulerKaapiSolver::v_clear | ( | VecId | v | ) |
| void sofa::component::odesolver::EulerKaapiSolver::v_free | ( | VecId | v | ) |
Definition at line 85 of file EulerKaapiSolver.cpp.
| void sofa::component::odesolver::EulerKaapiSolver::v_peq | ( | VecId | v, | |
| VecId | a, | |||
| double | f | |||
| ) |
1.5.7.1