codes.setup_gamer_ics#
- codes.setup_gamer_ics(ics, regenerate_particles=False, use_tracers=False)[source]#
Generate the “Input_TestProb” lines needed for use with the ClusterMerger setup in GAMER. If the particles (dark matter and potentially star) have not been created yet, they will be created at this step. New profile files will also be created which have all fields in CGS units for reading into GAMER. If a magnetic field file is present in the ICs, a note will be given about how it should be named for GAMER to use it.
- Parameters:
ics (
ClusterICs object
) – The ClusterICs object to generate the GAMER ICs from.regenerate_particles (
boolean
, optional) – If particle files have already been created and this flag is set to True, the particles will be re-created. Default: Falseuse_tracers (
boolean
) – Set to True to add tracer particles. Default: False