iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::sph::Poly6Kernel< N > Class Template Reference

The poly6 Kernel. More...

#include <imstkSPHKernels.h>

Public Member Functions

void setRadius (const double radius)
 Set the kernel radius.
 
double W (const double r) const
 Compute weight value W(r,h) = (315/(64 PI h^9))(h^2-|r|^2)^3.
 
double W (const VecXd &r) const
 Compute weight value W(r,h) = (315/(64 PI h^9))(h^2-|r|^2)^3.
 
double W0 () const
 Get W(0)
 
VecXd gradW (const VecXd &r) const
 Compute weight gradient grad(W(r,h)) = r(-945/(32 PI h^9))(h^2-|r|^2)^2.
 
double laplacian (const VecXd &r) const
 Compute laplacian laplacian(W(r,h)) = (-945/(32 PI h^9))(h^2-|r|^2)(-7|r|^2+3h^2)
 

Protected Attributes

double m_radius
 Kernel radius.
 
double m_radiusSquared
 Kernel radius squared.
 
double m_k
 Kernel coefficient for W()
 
double m_l
 Kernel coefficient for gradW()
 
double m_m
 Kernel coefficient for laplacian()
 
double m_W0
 Precomputed W(0)
 

Detailed Description

template<int N>
class imstk::sph::Poly6Kernel< N >

The poly6 Kernel.

Definition at line 22 of file imstkSPHKernels.h.


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