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

Spiky 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) = 15/(PI*h^6) * (h-r)^3.
 
double W (const VecXd &r) const
 Compute weight value W(r,h) = 15/(PI*h^6) * (h-r)^3.
 
double W0 () const
 Get W(0)
 
VecXd gradW (const VecXd &r) const
 Compute weight gradient grad(W(r,h)) = -r(45/(PI*h^6) * (h-r)^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_W0
 Precomputed W(0)
 

Detailed Description

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

Spiky Kernel.

Definition at line 138 of file imstkSPHKernels.h.


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