Public Types | Public Member Functions | Protected Attributes

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

#include <sph_integrator.h>

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

List of all members.

Public Types

typedef Types::real_type real_type
typedef Types::vector vector
typedef Types::particle particle
typedef Types::particle_container particle_container
typedef Types::collision_detection collision_detection

Public Member Functions

 Integrator (const real_type &timestep=0.01, const real_type &restitution=0.)
virtual ~Integrator ()
void setCollisionSystem (collision_detection *colisys)
void initialize_particles (typename particle_container::iterator begin, typename particle_container::iterator end) const
void integrate_particles (typename particle_container::iterator begin, typename particle_container::iterator end) const
virtual void initialize (particle &) const
virtual void integrate (particle &par) const =0

Protected Attributes

real_type m_dt
real_type m_dt2
 timestep
real_type m_invdt
 timestep squared
real_type m_invdt2
 inverse timestep
real_type m_r
 inverse timestep squared
collision_detectionm_colisys
 restitution

Detailed Description

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

SPH Compute Base Class.


Member Typedef Documentation


Constructor & Destructor Documentation

template<typename Types >
OpenTissue::sph::Integrator< Types >::Integrator ( const real_type timestep = 0.01,
const real_type restitution = 0. 
) [inline]

Default Constructor.

template<typename Types >
virtual OpenTissue::sph::Integrator< Types >::~Integrator (  )  [inline, virtual]

Deconstructor.


Member Function Documentation

template<typename Types >
virtual void OpenTissue::sph::Integrator< Types >::initialize ( particle  )  const [inline, virtual]
template<typename Types >
void OpenTissue::sph::Integrator< Types >::initialize_particles ( typename particle_container::iterator  begin,
typename particle_container::iterator  end 
) const [inline]

Initialize particles (optional)

Parameters:
particles all particles to undergo initialization.
template<typename Types >
virtual void OpenTissue::sph::Integrator< Types >::integrate ( particle par  )  const [pure virtual]
template<typename Types >
void OpenTissue::sph::Integrator< Types >::integrate_particles ( typename particle_container::iterator  begin,
typename particle_container::iterator  end 
) const [inline]

Integrate particles (mandatory)

Parameters:
particles all particles to undergo numerical integration.
template<typename Types >
void OpenTissue::sph::Integrator< Types >::setCollisionSystem ( collision_detection colisys  )  [inline]

Integrate (mandatory)

Parameters:
particles all particles to undergo numerical integration.

Member Data Documentation

template<typename Types >
collision_detection* OpenTissue::sph::Integrator< Types >::m_colisys [protected]

restitution

template<typename Types >
real_type OpenTissue::sph::Integrator< Types >::m_dt [protected]
template<typename Types >
real_type OpenTissue::sph::Integrator< Types >::m_dt2 [protected]

timestep

template<typename Types >
real_type OpenTissue::sph::Integrator< Types >::m_invdt [protected]

timestep squared

template<typename Types >
real_type OpenTissue::sph::Integrator< Types >::m_invdt2 [protected]

inverse timestep

template<typename Types >
real_type OpenTissue::sph::Integrator< Types >::m_r [protected]

inverse timestep squared


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