13 static float W(
float r,
float h) {
16 static float dW_dr(
float r,
float h) {
23 float& gx,
float& gy) {
Dimension-generic SPH smoothing kernels.
static std::array< float, Dim > Spiky_gradW(std::array< float, Dim > r_vec, float r, float h)
static float dW_dr(float r, float h)
static float Spiky_dW_dr(float r, float h)
Radial derivative dW/dr of spiky kernel (<= 0, non-zero at r=0).
static float W(float r, float h)
2D/3D cubic spline density kernel. Support = 2h.
static float Spiky_dW_dr(float r, float h)
static float dW_dr(float r, float h)
static void Spiky_gradW(float rx, float ry, float r, float h, float &gx, float &gy)
static float W(float r, float h)