Kernel interpolation - YuriOku/1D_SPH GitHub Wiki
In this section, we will discuss two methods of calculating the spatial derivative of the kernel function .
Standard gradient
One method is to compute the derivative
,where . For , see Kernel Functions.
Integral Approach
The Integral Approach (IA), proposed by García-Senz et al. (2012), can handle Rayleigh-Taylor instability and Kelvin-Helmholtz instability with better accuracy than the conventional SPH method. First, we have the integral
, where is the dimension of space. Taylor expansion of around a point gives
We ignore the higher-order terms, substitute Eq. (2) into Eq. (1), and consider solving for .
1D
In one dimension, equation (1) becomes
. Solving equation (3) for and substituting equation (1) for , we get
. By using the kernel approximation, we can replace this integral with the kernel sum
. This derivative is correct when the field is linear. For example, the derivative of the density field
is
. This method is equivalent to the linear-exact gradient (Price 2004; Rosswog 2015). However, this method does not conserve momentum because the equation of motion is not antisymmetric for the exchange of . To be antisymmetric, the equation of motion must be of the form
. In the Integral Approach, we assume
. This is the assumption that the distribution of particles is unbiased and uniform. Using this assumption, equation (1) can be expressed as
. As a result, the derivative (5) becomes
. By comparing with the usual derivative in SPH
, the spatial derivative of the kernel function in the Integral Approach
can be obtained.
3-D
Equation (1) in three dimensions is
, where and . Solving this for , we obtain
, where
and expressing it as a kernel sum, we get
. The inverse matrix in the first term on the right-hand side of equation (12) is
. The i-component of the integral (1)
can be approximated by eliminating from the kernel
The derivative of the function can be obtained from equation (12) as
Substituting Eq. (16) into Eq. (17) and comparing it with the derivative of the usual SPH, the derivative of the kernel function becomes
.
References
- García-Senz, D., Cabezón, R. M., and Escartín, J. A., "Improving smoothed particle hydrodynamics with an integral approach to calculating gradients", Astronomy and Astrophysics, vol. 538, 2012. doi:10.1051/0004-6361/201117939.
- Price, D. J., "Magnetic fields in Astrophysics", PhDT, 2004.
- Rosswog, S., "Boosting the accuracy of SPH techniques: Newtonian and special-relativistic tests", Monthly Notices of the the Royal Astronomical Society, vol. 448, no. 4, pp. 3628-3664, 2015. doi:10.1093/mnras/stv225.