codes.write_amr_particles#

codes.write_amr_particles(particles, output_filename, ptypes, ptype_num, overwrite=True, in_cgs=False, format='hdf5')[source]#

Write the particles to an HDF5 file to be read in by the GAMER, FLASH, or RAMSES codes.

Parameters:
  • particles (cluster_generator.particles.ClusterParticles) – The ClusterParticles instance which will be written.

  • output_filename (string) – The file to write the particles to.

  • overwrite (boolean, optional) – Overwrite an existing file with the same name. Default: False.

  • ptypes – TODO

  • ptype_num – TODO

  • overwrite – TODO

  • in_cgs – TODO

  • format – TODO

Return type:

TODO