pynbody.sph.kernels.WendlandC2Kernel#

class pynbody.sph.kernels.WendlandC2Kernel[source]#

Bases: KernelBase

A Wendland C2 (quintic) kernel. This is the default kernel used by EAGLE.

Methods

get_c_kernel_id()

Return the C kernel id for this kernel

get_value(d[, h])

Get the value of the kernel for a given smoothing length.

projection()

Return a 2D projection of this kernel

get_samples

__init__()#
classmethod get_c_kernel_id()[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

get_value(d, h=1)[source]#

Get the value of the kernel for a given smoothing length.

projection() KernelBase#

Return a 2D projection of this kernel