Definitioncore
SPH smoothing kernel
Also called Wendland kernel, cubic spline kernel, SPH kernel.
A compactly supported, normalized radial function W(r, h) that interpolates fields from particles in SPH, such as the cubic spline or Wendland kernels.
An SPH smoothing kernel is the weight function that smoothed particle hydrodynamics uses to turn values carried by particles into a smooth field: the density at a point is the sum of the particle masses, each weighted by at its distance. It is a bell-shaped radial function with integral 1 that is zero beyond a few smoothing lengths , so each particle interacts only with its neighbors. Graphics fluid solvers (weakly compressible SPH, position-based fluids) use the same idea, often with the poly6 and spiky kernels and the support radius called . What the numerical analysis adds is the conditions a kernel must meet for the estimates to be accurate to second order in , and for particles to stay evenly spaced instead of clumping in pairs.
Definition
Let be the space dimension. An SPH smoothing kernel is a function , with and smoothing length , such that:
- Normalization. .
- Compact support. for , with a fixed support factor (here , so vanishes beyond ).
- Symmetry. depends only on , so and .
- Delta limit. as , which follows from 1 and 2.
- Smoothness. is at least continuously differentiable, with , so that is continuous. Most kernels in use are also nonnegative and decrease in .
The kernel estimate of a field and of its gradient at particle are
and the density is , with included. Conditions 1 and 3 make the continuous estimate exact for linear and accurate to for smooth , with leading error , where is the second moment along one axis. The particle sum adds a second error that depends on how the particles are arranged; it does not go to zero as with fixed.
The cubic spline (M4) kernel of Monaghan and Lattanzio (1985), with :
It is the cubic B-spline on knots spaced apart, so it is twice continuously differentiable. Its second moment in 1D is .
The Wendland C2 kernel, from Wendland's (1995) compactly supported functions, written with support :
for and zero beyond. Its 1D second moment is . The normalizations above were checked by numerical integration.
Examples and non-examples
A uniform 1D lattice, by hand. Particles of mass 1 at the integers (), so the true density is 1. With the cubic spline and , only the particle itself and its two neighbors are inside the support:
The gradient estimate of at is , also exact. Other ratios give small lattice errors:
| 1 | 1.2 | 1.5 | 2 | |
|---|---|---|---|---|
| , cubic spline | 1 | 1.00180 | 1.00412 | 1 |
| , Wendland C2 | 1.01563 | 1.00294 | 1.00309 | 1.00098 |
| gradient of , cubic spline | 1 | 1.02238 | 0.98765 |
These errors do not shrink when and are refined together. This is the zeroth-order particle error of SPH, and it is why kernel choice and are rules of thumb ( from about 1.2 to 1.5 for the cubic spline in common use).
The values at the center in 2D. for the cubic spline and for Wendland C2. The graphics SPH pages use the first value.
The graphics kernels. Müller, Charypar and Gross (2003) use poly6, in 2D, for the density, and spiky, , for the pressure gradient, both with support . Both meet conditions 1 to 4. Poly6 has a zero gradient at , so pressure forces from it vanish for close pairs and particles clump; spiky has a nonzero gradient there, which is why it is used for pressure. Spiky has a kink at , so it fails the smoothness condition 5 at the center.
Non-examples.
- The Gaussian meets every condition except compact support. Gingold and Monaghan used it in 1977; with it every pair of particles interacts, so the cost is pairs unless it is cut off, and a cut-off breaks the normalization slightly.
- A top hat, constant inside and zero outside, is normalized and compactly supported, but its gradient is zero inside and a delta at the edge. Gradient estimates with it are useless.
- A kernel with a negative region (some higher-order kernels) can give negative densities near voids.
Related definitions
- Pairing instability. With many neighbors per particle, B-spline kernels such as the cubic spline let particles form close pairs. Dehnen and Aly (2012) show that a kernel whose Fourier transform is nonnegative avoids this, and that the Wendland kernels meet this condition while the B-splines do not. So the Wendland kernels allow larger neighbor numbers and better convergence.
- Kernel density estimation. The density estimate is a kernel density estimate of the mass distribution, with in the role of the bandwidth.
- Partition of unity. The normalized sums (the Shepard correction) form a partition of unity and make the estimate of a constant exact on any particle arrangement.
- Smoothing length. The parameter ; with variable the pair kernel uses an average of and , or , to keep the forces symmetric.
- Neighbor search. Compact support means the neighbors of a particle are found by a fixed-radius search with radius , usually with a cell list.
References
- J. J. Monaghan and J. C. Lattanzio, A refined particle method for astrophysical problems, Astronomy and Astrophysics 149 (1985) 135-143, the cubic spline (M4) kernel
- Joseph J. Monaghan, Smoothed particle hydrodynamics, Annual Review of Astronomy and Astrophysics 30 (1992) 543-574, kernel estimates, the cubic spline kernel and the symmetric SPH equations
- Joseph J. Monaghan, Smoothed particle hydrodynamics, Reports on Progress in Physics 68 (2005) 1703-1759
- Walter Dehnen and Hossam Aly, Improving convergence in smoothed particle hydrodynamics simulations without pairing instability, Monthly Notices of the Royal Astronomical Society 425 (2012) 1068-1082, the pairing instability, the Fourier transform condition and the Wendland kernels in SPH
- Holger Wendland, Piecewise polynomial, positive definite and compactly supported radial functions of minimal degree, Advances in Computational Mathematics 4 (1995) 389-396
- Matthias Müller, David Charypar and Markus Gross, Particle-based fluid simulation for interactive applications, Symposium on Computer Animation 2003, 154-159, the poly6 and spiky kernels used in graphics
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag MWJDAT Edit this page History Report an error Markdown