ics.ClusterICs.setup_particle_ics#
- ClusterICs.setup_particle_ics(regenerate_particles=False, prng=None)[source]#
From a set of cluster models and their relative positions and velocities, set up initial conditions for use with SPH codes.
This routine will either generate a single cluster or will combine two or three clusters together. If more than one cluster is generated, the gas particles will have their densities set by adding the densities from the overlap of the two particles together, and will have their thermal energies and velocities set by mass-weighting them from the two profiles.
- Parameters:
regenerate_particles (
bool
) – True to regenerate the particlesprng – Random number initializer.