pynbody.sph.kernels.Kernel2D#
- class pynbody.sph.kernels.Kernel2D(k_orig=<pynbody.sph.kernels.CubicSplineKernel object>)[source]#
Bases:
KernelBaseA 2D spline kernel, generated by numerically projecting an underlying 3D kernel
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
- __init__(k_orig=<pynbody.sph.kernels.CubicSplineKernel object>)[source]#
Create a 2D kernel by projecting a 3D kernel. The 3D kernel is passed as an argument.