ics.ClusterICs#

class ics.ClusterICs(basename, num_halos, profiles, center, velocity, num_particles=None, mag_file=None, particle_files=None, r_max=20000.0, r_max_tracer=None)[source]#

TODO: docstring

Methods

__init__(basename, num_halos, profiles, ...)

Initialize the ics.ClusterICs instance from a set of models.

create_dataset(domain_dimensions, box_size)

Create an in-memory, uniformly gridded dataset in 3D using yt by placing the clusters into a box.

from_file(filename)

Read the initial conditions information from a YAML-formatted filename.

resample_particle_ics(parts[, passive_scalars])

Given a Gadget-HDF5-like initial conditions file which has been output from some type of relaxation process (such as making a glass or using MESHRELAX in the case of Arepo), resample the density, thermal energy, and velocity fields onto the gas particles/cells from the initial hydrostatic profiles.

setup_particle_ics([regenerate_particles, prng])

From a set of cluster models and their relative positions and velocities, set up initial conditions for use with SPH codes.

to_file(filename[, overwrite])

Write the initial conditions information to a file.