AnimaL |
Tutorial |
Documentation |
#include <integrator.h>
Template parameters:
Definition at line 319 of file integrator.h.
Public Member Functions | |
ExplicitIntegrator2 (ComputeAcceleration &d) | |
Construct using the derivator. | |
template<class P, class V> void | euler (P &pos, V &vel, Real h, Real t=0) |
Apply euler time integration. | |
template<class P, class V> void | rk2 (P &pos, V &vel, Real h, Real t=0) |
Apply second-order Runge-Kutta time integration. | |
template<class P, class V> void | rk4 (P &pos, V &vel, Real h, Real t=0) |
Apply fourth-order Runge-Kutta time integration. | |
template<class P, class V> void | modmid (P &pos, V &vel, Real h, int n, Real t=0) |
Apply modified midpoint time integration. | |
Protected Types | |
typedef Derivs< Velocities, Accelerations > | Der |
Derivs. | |
typedef States< Positions, Velocities > | Sta |
States. | |
Protected Attributes | |
Velocities | dv1 |
Auxiliary value to store a derivative (velocity). | |
Accelerations | da1 |
Auxiliary value to store a derivative (acceleration). | |
Der | d1 |
Auxiliary value to store a derivative (velocity,acceleration). | |
Velocities | dv2 |
Auxiliary value to store a derivative (velocity). | |
Accelerations | da2 |
Auxiliary value to store a derivative (acceleration). | |
Der | d2 |
Auxiliary value to store a derivative (velocity,acceleration). | |
Velocities | dv3 |
Auxiliary value to store a derivative (velocity). | |
Accelerations | da3 |
Auxiliary value to store a derivative (acceleration). | |
Der | d3 |
Auxiliary value to store a derivative (velocity,acceleration). | |
Velocities | dv4 |
Auxiliary value to store a derivative (velocity). | |
Accelerations | da4 |
Auxiliary value to store a derivative (acceleration). | |
Der | d4 |
Auxiliary value to store a derivative (velocity,acceleration). | |
Positions | sp1 |
Auxiliary value to store a state (positions). | |
Velocities | sv1 |
Auxiliary value to store a state (velocities). | |
Sta | s1 |
Auxiliary value to store a state (positions, velocities). | |
Positions | sp2 |
Auxiliary value to store a state (positions). | |
Velocities | sv2 |
Auxiliary value to store a state (velocities). | |
Sta | s2 |
Auxiliary value to store a state (positions, velocities). | |
Positions | sp3 |
Auxiliary value to store a state (positions). | |
Velocities | sv3 |
Auxiliary value to store a state (velocities). | |
Sta | s3 |
Auxiliary value to store a state (positions, velocities). | |
Private Types | |
typedef animal::VectorVec< Position > | Positions |
vector of positions | |
typedef animal::VectorVec< Velocity > | Velocities |
vector of velocities | |
typedef animal::VectorVec< Acceleration > | Accelerations |
vector of accelerations | |
Private Attributes | |
Derivator | eq_deriv |
A functor which computes the time derivative of a given state. |
|
vector of accelerations
Definition at line 328 of file integrator.h. |
|
Definition at line 434 of file integrator.h. |
|
vector of positions
Definition at line 322 of file integrator.h. |
|
Definition at line 453 of file integrator.h. |
|
vector of velocities
Definition at line 325 of file integrator.h. |
|
|
Apply euler time integration. Class States is a container with entry type equal or compatible with State.
Definition at line 372 of file integrator.h. References animal::integrate_euler(), animal::Derivs< Vels, Accs >::resize(), and animal::size(). |
|
Apply modified midpoint time integration. Class States is a container with entry type equal or compatible with State.
Definition at line 422 of file integrator.h. References animal::integrate_modmid(), animal::States< Poss, Vels >::resize(), animal::Derivs< Vels, Accs >::resize(), and animal::size(). |
|
Apply second-order Runge-Kutta time integration. Class States is a container with entry type equal or compatible with State.
Definition at line 388 of file integrator.h. References animal::integrate_rk2(), animal::States< Poss, Vels >::resize(), animal::Derivs< Vels, Accs >::resize(), and animal::size(). |
|
Apply fourth-order Runge-Kutta time integration. Class States is a container with entry type equal or compatible with State.
Definition at line 403 of file integrator.h. References animal::integrate_rk4(), animal::States< Poss, Vels >::resize(), animal::Derivs< Vels, Accs >::resize(), and animal::size(). |
|
Auxiliary value to store a derivative (velocity,acceleration).
Definition at line 438 of file integrator.h. |
|
Auxiliary value to store a derivative (velocity,acceleration).
Definition at line 442 of file integrator.h. |
|
Auxiliary value to store a derivative (velocity,acceleration).
Definition at line 446 of file integrator.h. |
|
Auxiliary value to store a derivative (velocity,acceleration).
Definition at line 450 of file integrator.h. |
|
Auxiliary value to store a derivative (acceleration).
Definition at line 437 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (acceleration).
Definition at line 441 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (acceleration).
Definition at line 445 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (acceleration).
Definition at line 449 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (velocity).
Definition at line 436 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (velocity).
Definition at line 440 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (velocity).
Definition at line 444 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a derivative (velocity).
Definition at line 448 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
A functor which computes the time derivative of a given state.
Definition at line 351 of file integrator.h. |
|
Auxiliary value to store a state (positions, velocities).
Definition at line 457 of file integrator.h. |
|
Auxiliary value to store a state (positions, velocities).
Definition at line 461 of file integrator.h. |
|
Auxiliary value to store a state (positions, velocities).
Definition at line 465 of file integrator.h. |
|
Auxiliary value to store a state (positions).
Definition at line 455 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a state (positions).
Definition at line 459 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a state (positions).
Definition at line 463 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a state (velocities).
Definition at line 456 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a state (velocities).
Definition at line 460 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |
|
Auxiliary value to store a state (velocities).
Definition at line 464 of file integrator.h. Referenced by animal::ExplicitIntegrator2< Position, Velocity, ComputeAcceleration, Real, Acceleration >::ExplicitIntegrator2(). |