scopesim_templates.stellar.cluster

scopesim_templates.stellar.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 custer

Parameters:
massfloat

[Msun] Mass of the cluster (not number of stars). Max = 1E5 Msun

distancefloat

[pc] distance to the cluster

core_radiusfloat

[pc] half light radius of the cluster

rafloat, str

RA of the source

decfloat, str

DEC of the source

Returns:
src: 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.basic.stars import cluster
>>> src = cluster(mass=1000, distance=8500, core_radius=0.2, seed=9001)