SPH smoothing kernels used by the 3D fluid engine FluidEngine3D.
The method signatures mirror the 2D FluidKernels, but the normalization scaling factors use the correct three dimensional constants so that the kernels integrate to unity over a 3D sphere of radius h:
- Poly6: 315 / (64 PI h^9)
- SpikyPow3: 15 / (PI * h^6)
- SpikyPow2: 15 / (PI * h^5)
- d/dr SpikyPow3: 45 / (PI * h^6)
- d/dr SpikyPow2: 30 / (PI * h^5)
The scaling factors depend only on the smoothing radius, so they are precomputed once in the constructor.