13 static float W(
float r,
float h) {
16 static float dW_dr(
float r,
float h) {
22 static void Spiky_gradW(
float rx,
float ry,
float rz,
float r,
float h,
23 float& gx,
float& gy,
float& gz) {
25 gx = g[0]; gy = g[1]; gz = g[2];
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 dW_dr(float r, float h)
static void Spiky_gradW(float rx, float ry, float rz, float r, float h, float &gx, float &gy, float &gz)
static float Spiky_dW_dr(float r, float h)
static float W(float r, float h)