swiftsimio.visualisation.projection_backends.kernels module
Projection kernels.
- swiftsimio.visualisation.projection_backends.kernels.kernel_single_precision(r: float32, H: float32) float32[source]
Single precision kernel implementation for swiftsimio.
This is the Wendland-C2 kernel as shown in Denhen & Aly (2012) [1].
- Parameters:
r (np.float32) – Radius used in kernel computation.
H (np.float32) – Kernel width (i.e. radius of compact support for the kernel).
- Returns:
Contribution to the density by the particle.
- Return type:
np.float32
See also
References
- swiftsimio.visualisation.projection_backends.kernels.kernel_double_precision(r: float64, H: float64) float64[source]
Single precision kernel implementation for swiftsimio.
This is the Wendland-C2 kernel as shown in Denhen & Aly (2012) [2].
- Parameters:
r (np.float64) – Radius used in kernel computation.
H (np.float64) – Kernel width (i.e. radius of compact support for the kernel).
- Returns:
Contribution to the density by the particle.
- Return type:
np.float64
See also
References
[2] Dehnen W., Aly H., 2012, MNRAS, 425, 1068