iMSTK
Interactive Medical Simulation Toolkit
|
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) | |
Spiky Kernel.
Definition at line 138 of file imstkSPHKernels.h.