particles.ClusterParticles.to_yt_dataset#

ClusterParticles.to_yt_dataset(box_size, ptypes=None)[source]#

Create an in-memory yt dataset for the particles.

Parameters:
  • box_size (float) – The width of the domain on a side, in kpc.

  • ptypes (string or list of strings, optional) – The particle types to export to the dataset. If not set, all will be exported.