Template Class PrecomputedKernel

Class Documentation

template<typename KernelType, unsigned int resolution = 10000u>
class PrecomputedKernel

Precomputed kernel which is based on a lookup table as described by Bender and Koschier [BK15,BK17].

The lookup tables can be used in combination with any kernel.

References:

  • [BK15] Jan Bender and Dan Koschier. Divergence-free smoothed particle hydrodynamics. In ACM SIGGRAPH / Eurographics Symposium on Computer Animation, SCA ‘15, 147-155. New York, NY, USA, 2015. ACM. URL: http://doi.acm.org/10.1145/2786784.2786796

  • [BK17] Jan Bender and Dan Koschier. Divergence-free SPH for incompressible and viscous fluids. IEEE Transactions on Visualization and Computer Graphics, 23(3):1193-1206, 2017. URL: http://dx.doi.org/10.1109/TVCG.2016.2578335

Public Static Functions

static inline Real getRadius()
static inline void setRadius(Real val)
static inline Real W(const Vector3r &r)
static inline Real W(const Real r)
static inline Vector3r gradW(const Vector3r &r)
static inline Real W_zero()

Protected Static Attributes

static Real m_W[resolution]
static Real m_gradW[resolution + 1]
static Real m_radius
static Real m_radius2
static Real m_invStepSize
static Real m_W_zero