Hydrodynamical simulations (hydro)#

The hydro module contains the functionality necessary for running simulations that use hydrodynamical zoom-in simulations as their initial conditions. This includes the ability to read in snapshots, centre and rotate them, estimate the galactic potential, get the initial conditions of star particles and run a full cogsworth Population based on all that!

Populations (hydro.pop)#

Classes#

HydroPopulation(star_particles[, ...])

A population of stars sampled from a hydrodynamical zoom-in snapshot

Estimating potentials (hydro.potential)#

Functions#

get_snapshot_potential(snap[, components, ...])

Compute the potential of a snapshot of a hydrodynamical zoom-in simulation

Initial conditions (hydro.rewind)#

Functions#

rewind_to_formation(subsnap, pot[, dt, ...])

Rewind a snapshot to the time of formation of each particle

Utility functions (hydro.utils)#

Functions#

prepare_snapshot(path[, halo_params])

Prepare a snapshot for use in cogsworth

dispersion_from_virial_parameter(alpha_vir, R, M)

Calculate the velocity dispersion from the virial parameter