synthesizer.abundances.abundance_scalings¶
Module containing various elemental abundance scalings. These provide methods to scale various elements with metallicity instead of simply linearly.
Classes
- class synthesizer.abundances.abundance_scalings.Dopita2006[source]¶
The Dopita (2006) model for abundance scalings.
This includes scalings for Nitrogen and Carbon.
- class synthesizer.abundances.abundance_scalings.GalacticConcordance[source]¶
The “Galactic Concordance” model from Nicholls et al. 2017.
In addition to providing a reference abundance pattern Nicholls et al. 2017 provide scalings for a large range of elements.
For most of these the scaling, relative to Oxygen, is a simple linear scaling with plataus at low and high O/H.
For Nitrogen and Carbon a more complicated scheme is used.
- carbon(metallicity)[source]¶
Calculate the Carbon abundance (C/H) for a given metallicity.
- Parameters:
metallicity (float) – The metallicity.
- Returns:
- abundance (float)
The logarithmic Carbon abundance, i.e. (C/H).
- carbon_to_oxygen(oxygen_to_hydrogen)[source]¶
Calculate the Carbon to Oxygen abundance for a given (O/H).
- Parameters:
oxygen_to_hydrogen (float) – The log of the Oxygen to Hydrogen ratio, i.e. (O/H).
- Returns:
- carbon_to_oxygen (float)
The logarithmic abundance relative to Oxygen.
- nitrogen(metallicity)[source]¶
Calculate the Nitrogen abundance (N/H) for a given metallicity.
- Parameters:
metallicity (float) – The metallicity.
- Returns:
- abundance (float)
The logarithmic Nitrogen abundance, i.e. (N/H).
- nitrogen_to_oxygen(oxygen_to_hydrogen)[source]¶
Calculate the Nitrogen to Oxygen abundance for a given (O/H).
- Parameters:
oxygen_to_hydrogen (float) – The log of the Oxygen to Hydrogen ratio, i.e. (O/H).
- Returns:
- nitrogen_to_oxygen (float)
The logarithmic abundance relative to Oxygen.