pynbody.sph

Contents

pynbody.sph#

sph#

pynbody SPH rendering module.

This module encompasses Kernel objects, which return C fragments from which a final C code to perform the rendering is derived.

For most users, the function of interest will be render_image().

Functions

render_image(snap[, qty, x2, nx, y2, ny, ...])

Render an SPH image using a typical (mass/rho)-weighted 'scatter' scheme.

render_spherical_image(snap[, qty, nside, ...])

Render an SPH image on a spherical surface.

rho(self)

smooth(self)

spectra(snap[, qty, x1, y1, v2, nvel, v1, ...])

Render an SPH spectrum using a (mass/rho)-weighted 'scatter' scheme of all the particles that have a smoothing length within 2 h_sm of the position.

to_3d_grid(snap[, qty, nx, ny, nz, x2, ...])

Project SPH onto a grid using a typical (mass/rho)-weighted 'scatter' scheme.

Classes

Kernel()

Methods

Kernel2D([k_orig])

Methods

TopHatKernel()

Methods

WendlandC2Kernel()

Methods