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

Cohesion 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) = (32/(PI h^9))(h-r)^3*r^3 if h/2 < r <= h, (32/(PI h^9))(2*(h-r)^3*r^3 - h^6/64 if 0 < r <= h/2.
 
double W (const VecXd &r) const
 Compute weight value W(r,h) = (32/(PI h^9))(h-r)^3*r^3 if h/2 < r <= h, (32/(PI h^9))(2*(h-r)^3*r^3 - h^6/64 if 0 < r <= h/2.
 
double W0 () const
 Get W(0)
 

Protected Attributes

double m_radius
 Kernel radius.
 
double m_radiusSquared
 Kernel radius squared.
 
double m_k
 Kernel coefficient for W()
 
double m_c
 Kernel coefficient for W()
 
double m_W0
 Precomputed W(0)
 

Detailed Description

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

Cohesion Kernel.

Definition at line 237 of file imstkSPHKernels.h.


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