Public Types | Public Member Functions | Protected Attributes

OpenTissue::sph::WViscosity< Types, Radius, CheckRange > Class Template Reference

#include <sph_viscosity.h>

Inheritance diagram for OpenTissue::sph::WViscosity< Types, Radius, CheckRange >:
OpenTissue::sph::FixedSmoothingKernel< Types, CheckRange >

List of all members.

Public Types

typedef FixedSmoothingKernel
< Types, CheckRange > 
base_type
typedef Types::real_type real_type
typedef Types::vector vector

Public Member Functions

 WViscosity ()
real_type evaluate (const vector &r) const
vector gradient (const vector &r) const
real_type laplacian (const vector &r) const

Protected Attributes

real_type m_k
 Normalization constant for the Kernel.
real_type m_l
 Normalization constant for the Gradient.
real_type m_m
 Normalization constant for the Laplacian.
real_type m_inv_hSqr
 Inverse radius squared.
real_type m_inv_2hTri
 Radius triplet.

Detailed Description

template<typename Types, struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
class OpenTissue::sph::WViscosity< Types, Radius, CheckRange >

W_viscosity Smoothing Kernel.


Member Typedef Documentation

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
typedef FixedSmoothingKernel<Types, CheckRange> OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::base_type
template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
typedef Types::real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::real_type
template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
typedef Types::vector OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::vector

Constructor & Destructor Documentation

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::WViscosity (  )  [inline]

Default Constructor.


Member Function Documentation

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::evaluate ( const vector r  )  const [inline]

W(r,h) = (15/(2 pi h^3))(-|r|^3/(2 h^3)+|r|^2/h^2+h/(2 |r|)-1)

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
vector OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::gradient ( const vector r  )  const [inline]

grad(W(r,h)) = r(15/(2 pi h^3))(-(3|r|/2h^3) + 2/h^2 - h/2|r|^3)

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::laplacian ( const vector r  )  const [inline]

laplacian(W(r,h)) = (45/(pi h^6))(h-|r|)


Member Data Documentation

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::m_inv_2hTri [protected]

Radius triplet.

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::m_inv_hSqr [protected]

Inverse radius squared.

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::m_k [protected]

Normalization constant for the Kernel.

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::m_l [protected]

Normalization constant for the Gradient.

template<typename Types , struct OpenTissue::utility::RuntimeType< typename Types::real_type > * Radius, bool CheckRange>
real_type OpenTissue::sph::WViscosity< Types, Radius, CheckRange >::m_m [protected]

Normalization constant for the Laplacian.


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