pynbody.sph.kernels.KernelBase#
- class pynbody.sph.kernels.KernelBase[source]#
Bases:
objectBase class for SPH kernels
Methods
Return the C kernel id for this kernel
get_value(d[, h])Get the value of the kernel for a given smoothing length.
Return a 2D projection of this kernel
get_samples
- classmethod get_c_kernel_id() int[source]#
Return the C kernel id for this kernel
This is used to select the appropriate C code for the kernel, and must match the kernel id defined in the Kernel::create function in kernels.hpp
- projection() KernelBase[source]#
Return a 2D projection of this kernel