scopesim_templates.stellar.clusters.cluster

Contents

scopesim_templates.stellar.clusters.cluster#

scopesim_templates.stellar.clusters.cluster(mass=1000.0, distance=50000, core_radius=1, ra=0, dec=0, **kwargs)#

Generate a source object for a young cluster.

The cluster distribution follows a gaussian profile with the core_radius corresponding to the HWHM of the distribution. The choice of stars follows a Kroupa IMF, with no evolved stars in the mix. Ergo this is more suitable for a young cluster than an evolved cluster

Parameters:
  • mass (float) – [Msun] Mass of the cluster (not number of stars). Max = 1E5 Msun

  • distance (float) – [pc] distance to the cluster

  • core_radius (float) – [pc] half light radius of the cluster

  • ra (float, str) – RA of the source

  • dec (float, str) – DEC of the source

  • tidal_radius (float) – [pc] Not yet implemented, for later once there is a King profile

  • multiplicity (Unknown) – A multiplicity object from the imf.py package. Not sure what it does.

  • seed (float) – For setting the random seed for both masses and positions

Returns:

src

Return type:

scopesim.Source

Examples

Create a Source object for a young open cluster with half light radius of around 0.2 pc at the extragalactic centre and 1000 solar masses worth of stars:

>>> from scopesim_templates.stellar.clusters import cluster
>>> src = cluster(mass=1000, distance=8500, core_radius=0.2, seed=9001)