Public Types | Public Member Functions

OpenTissue::sph::LeapFrog< Types > Class Template Reference

#include <sph_leapfrog.h>

Inheritance diagram for OpenTissue::sph::LeapFrog< Types >:
OpenTissue::sph::Integrator< Types >

List of all members.

Public Types

typedef Integrator< Typesbase_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 &timestep, const real_type &restitution)
 ~LeapFrog ()
virtual void initialize (particle &par) const
void integrate (particle &par) const

Detailed Description

template<typename Types>
class OpenTissue::sph::LeapFrog< Types >

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


Member Typedef Documentation

template<typename Types >
typedef Integrator<Types> OpenTissue::sph::LeapFrog< Types >::base_type
template<typename Types >
typedef Types::particle OpenTissue::sph::LeapFrog< Types >::particle
template<typename Types >
typedef Types::real_type OpenTissue::sph::LeapFrog< Types >::real_type
template<typename Types >
typedef Types::vector OpenTissue::sph::LeapFrog< Types >::vector

Constructor & Destructor Documentation

template<typename Types >
OpenTissue::sph::LeapFrog< Types >::LeapFrog ( const real_type timestep,
const real_type restitution 
) [inline]

Default Constructor.

template<typename Types >
OpenTissue::sph::LeapFrog< Types >::~LeapFrog (  )  [inline]

Deconstructor.


Member Function Documentation

template<typename Types >
virtual void OpenTissue::sph::LeapFrog< Types >::initialize ( particle par  )  const [inline, virtual]

Initialize

template<typename Types >
void OpenTissue::sph::LeapFrog< Types >::integrate ( particle par  )  const [inline]

Integrate

Parameters:
timestep > 0

The documentation for this class was generated from the following file: