#include <sph_poly6.h>
Public Types | |
typedef FixedSmoothingKernel < Types, CheckRange > | base_type |
typedef Types::real_type | real_type |
typedef Types::vector | vector |
Public Member Functions | |
WPoly6 () | |
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. |
W_poly6 Smoothing Kernel.
typedef FixedSmoothingKernel<Types, CheckRange> OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::base_type |
typedef Types::real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::real_type |
Reimplemented from OpenTissue::sph::FixedSmoothingKernel< Types, CheckRange >.
typedef Types::vector OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::vector |
Reimplemented from OpenTissue::sph::FixedSmoothingKernel< Types, CheckRange >.
OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::WPoly6 | ( | ) | [inline] |
Default Constructor (ohh, really?).
real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::evaluate | ( | const vector & | r | ) | const [inline] |
W(r,h) = (315/(64 pi h^9))(h^2-|r|^2)^3 = (315/(64 pi h^9))(h^2-r*r)^3
vector OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::gradient | ( | const vector & | r | ) | const [inline] |
grad(W(r,h)) = r(-945/(32 pi h^9))(h^2-|r|^2)^2 = r(-945/(32 pi h^9))(h^2-r*r)^2
real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::laplacian | ( | const vector & | r | ) | const [inline] |
laplacian(W(r,h)) = (-945/(32 pi h^9))(h^2-|r|^2)(-7|r|^2+3h^2) = (-945/(32 pi h^9))(h^2-r*r)(3 h^2-7 r*r)
real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::m_k [protected] |
Normalization constant for the Kernel.
real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::m_l [protected] |
Normalization constant for the Gradient.
real_type OpenTissue::sph::WPoly6< Types, Radius, CheckRange >::m_m [protected] |
Normalization constant for the Laplacian.