Public Types | Public Member Functions | Protected Member Functions

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

#include <sph_kernel.h>

List of all members.

Public Types

typedef Types::real_type real_type
typedef Types::vector vector

Public Member Functions

 SmoothingKernel ()
virtual ~SmoothingKernel ()
virtual real_type evaluate (const vector &r, const real_type &h) const =0
virtual vector gradient (const vector &r, const real_type &h) const =0
virtual real_type laplacian (const vector &r, const real_type &h) const =0

Protected Member Functions

bool checkRange (const vector &r, const real_type &h) const

Detailed Description

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

Smoothing Kernel Base Class. This class uses a varying support radius


Member Typedef Documentation

template<typename Types >
typedef Types::real_type OpenTissue::sph::SmoothingKernel< Types >::real_type
template<typename Types >
typedef Types::vector OpenTissue::sph::SmoothingKernel< Types >::vector

Constructor & Destructor Documentation

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

Default Constructor.

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

Deconstructor.


Member Function Documentation

template<typename Types >
bool OpenTissue::sph::SmoothingKernel< Types >::checkRange ( const vector r,
const real_type h 
) const [inline, protected]

Check Range.

Parameters:
r The difference vector undergoing the check.
h The finite support radius.
Returns:
True if 0 <= |r| <= h, else false.
template<typename Types >
virtual real_type OpenTissue::sph::SmoothingKernel< Types >::evaluate ( const vector r,
const real_type h 
) const [pure virtual]

Evaluate.

Parameters:
r The difference vector (or relative position) r.
h The finite support radius.
Returns:
The evaluation of the Kernel at r.
template<typename Types >
virtual vector OpenTissue::sph::SmoothingKernel< Types >::gradient ( const vector r,
const real_type h 
) const [pure virtual]

Gradient.

Parameters:
r The difference vector (or relative position) r.
h The finite support radius.
Returns:
The gradient of the Kernel at r.
template<typename Types >
virtual real_type OpenTissue::sph::SmoothingKernel< Types >::laplacian ( const vector r,
const real_type h 
) const [pure virtual]

Laplacian.

Parameters:
r The difference vector (or relative position) r.
h The finite support radius.
Returns:
The laplacian of the Kernel at r.

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