synthesizer.components.stellar¶
A module defining general functionality for particle and parametric stars.
This should never be directly instantiated. Instead it is the parent class for particle.Stars and parametric.Stars and contains attributes and methods common between them. StarsComponent is a child class of Component.
Classes
- class synthesizer.components.stellar.StarsComponent(ages, metallicities, _star_type, fesc, fesc_ly_alpha=None, **kwargs)[source]¶
The parent class for stellar components of a galaxy.
This class contains the attributes and spectra creation methods which are common to both parametric and particle stellar components.
This should never be instantiated directly.
- fesc_ly_alpha¶
The escape fraction of the component for Lyman Alpha photons.
- Type:
float
- get_flux_weighted_age(spectra_type, filter_code)[source]¶
Calculate the flux-weighted age of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The flux-weighted age of the stellar component.
- Return type:
flux_weighted_age (unyt_quantity)
- get_flux_weighted_metallicity(spectra_type, filter_code)[source]¶
Calculate the flux-weighted metallicity of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The flux-weighted metallicity of the stellar component.
- Return type:
flux_weighted_metallicity (unyt_quantity)
- get_flux_weighted_optical_depth(spectra_type, filter_code)[source]¶
Calculate the flux-weighted optical depth of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The flux-weighted optical depth of the stellar component.
- Return type:
flux_weighted_tau_v (unyt_quantity)
- get_lum_weighted_age(spectra_type, filter_code)[source]¶
Calculate the luminosity-weighted age of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The luminosity-weighted age of the stellar component.
- Return type:
lum_weighted_age (unyt_quantity)
- get_lum_weighted_metallicity(spectra_type, filter_code)[source]¶
Calculate the luminosity-weighted metallicity of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The luminosity-weighted metallicity of the stellar component.
- Return type:
lum_weighted_metallicity (unyt_quantity)
- get_lum_weighted_optical_depth(spectra_type, filter_code)[source]¶
Calculate the luminosity-weighted optical depth of the stars.
- Parameters:
spectra_type (str) – The type of spectra to use for weighting.
filter_code (str) – The filter code to use for weighting.
- Returns:
The luminosity-weighted optical depth of the stellar component.
- Return type:
lum_weighted_tau_v (unyt_quantity)
- get_mass_weighted_age()[source]¶
Calculate the mass-weighted age of the stellar component.
- Returns:
The mass-weighted age of the stellar component.
- Return type:
mass_weighted_age (unyt_quantity)
Examples using synthesizer.components.stellar.StarsComponent
¶

Demonstrate the dense basis approach for describing the SFZH

An example showing how to scale a galaxy’s mass by luminosity/flux.

Compare Single star particle to instantaneous SFZH