#include <sph_leapfrog.h>
Public Types | |
typedef Integrator< Types > | base_type |
typedef Types::real_type | real_type |
typedef Types::vector | vector |
typedef Types::particle | particle |
typedef Types::particle_container | particle_container |
typedef base_type::collision_detection | collision_detection |
Public Member Functions | |
LeapFrog (const real_type ×tep, const real_type &restitution) | |
~LeapFrog () | |
virtual void | initialize (particle &par) const |
void | integrate (particle &par) const |
SPH Leap-Frog Integrator Class.
init: v^(-) = v^0 - dt a^0
integration: v^(t+) = v^(t-) + dt a^t r^t = r^(t-1) + dt v^(t+)
Use Midpoint approximation: v^t = (v^(t-)+ v^(t+))/2
http://bioportal.weizmann.ac.il/course/3dbioinfo/13_Molecular_Dynamics.pdf
typedef Integrator<Types> OpenTissue::sph::LeapFrog< Types >::base_type |
typedef base_type::collision_detection OpenTissue::sph::LeapFrog< Types >::collision_detection |
Reimplemented from OpenTissue::sph::Integrator< Types >.
typedef Types::particle OpenTissue::sph::LeapFrog< Types >::particle |
Reimplemented from OpenTissue::sph::Integrator< Types >.
typedef Types::particle_container OpenTissue::sph::LeapFrog< Types >::particle_container |
Reimplemented from OpenTissue::sph::Integrator< Types >.
typedef Types::real_type OpenTissue::sph::LeapFrog< Types >::real_type |
Reimplemented from OpenTissue::sph::Integrator< Types >.
typedef Types::vector OpenTissue::sph::LeapFrog< Types >::vector |
Reimplemented from OpenTissue::sph::Integrator< Types >.
OpenTissue::sph::LeapFrog< Types >::LeapFrog | ( | const real_type & | timestep, | |
const real_type & | restitution | |||
) | [inline] |
Default Constructor.
OpenTissue::sph::LeapFrog< Types >::~LeapFrog | ( | ) | [inline] |
Deconstructor.
virtual void OpenTissue::sph::LeapFrog< Types >::initialize | ( | particle & | par | ) | const [inline, virtual] |
Initialize
void OpenTissue::sph::LeapFrog< Types >::integrate | ( | particle & | par | ) | const [inline] |
Integrate
timestep | > 0 |