cluster

simcado.source.cluster(mass=1000.0, distance=50000, half_light_radius=1)[source]

Generate a source object for a cluster

The cluster distribution follows a gaussian profile with the half_light_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

half_light_radiusfloat

[pc] half light radius of the cluster

Returns
srcsimcado.Source

Examples

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

>>> from simcado.source import cluster
>>> src = cluster(mass=100, distance=8500, half_light_radius=0.2)