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