StarAPs#

class agabpylib.simulation.starclusters.cluster.StarAPs(age, metallicity, alphafeh, vvcrit, isofiles, imf, iso='mist')#

Bases: object

Class that generates the astrophysical parameters (mass, Teff, luminosity, colour, etc) for the stars in the cluster.

age#

Cluster age.

Type:

astropy.units.Quantity

logage#

Log10(age).

Type:

float

logageloaded#

Value of logage of the actual isochrone used to simulate the cluster (which may be slightly different from requested logage).

Type:

float

metallicity#

Cluster metallicity ([Fe/H] parameter in MIST/PARSEC isochrones)

Type:

float

alphafeh#

Cluster alpha-element enhancement (afe parameter for MIST isochrones, not relevant for PARSEC)

Type:

float

vvcrit#

v/vcrit parameter for the MIST isochrone set. This is ignored for the PARSEC isochrones.

Type:

float

isofiles#

Path to folder with isochrone files.

Type:

str

imf#

Instance of the agabpylib.simulations.imf.IMF class.

Type:

agabpylib.simulations.imf.IMF

modelset#

Which isochrone set is used.

Type:

str

meta#

Metadata describing the astrophysical modelling.

Type:

dict

Methods Summary

generate_aps(n, rng)

Generate the simulated APs from the IMF and the isochrone data.

getinfo()

returns:

info -- String with information on the simulation of the astrophysical parameters.

getmeta()

returns:

meta -- Dictionary containing metadata describing the astrophysical parameter model.

Methods Documentation

generate_aps(n, rng)#

Generate the simulated APs from the IMF and the isochrone data.

Parameters:
  • n (int) – Number of stars for which to generate the APs

  • rng (numpy.random.Generator) – Random number generator. This is provided separately to enable user control over the random number sequence.

Returns:

aptable – Table with a list of stars and their properties.

Return type:

astropy.table.Table

getinfo()#
Returns:

info – String with information on the simulation of the astrophysical parameters.

Return type:

str

getmeta()#
Returns:

meta – Dictionary containing metadata describing the astrophysical parameter model.

Return type:

dict