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.

carbon(metallicity)[source]

Scaling functions for Carbon.

Parameters:

metallicity (float) – The metallicity (mass fraction in metals)

Returns:

abundance (float)

The logarithmic abundance of Carbon relative to Hydrogen.

nitrogen(metallicity)[source]

Scaling function for Nitrogen.

Parameters:

metallicity (float) – The metallicity (mass fraction in metals)

Returns:

abundance (float)

The logarithmic abundance of Nitrogen relative to Hydrogen.

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.

oxygen_to_hydrogen(metallicity)[source]

Calculate the oxygen to hydrogen ratio (O/H) for the provided metallicity.

Parameters:

metallicity (float) – The metallicity.

Returns:

oxygen_to_hydrogen (float)

The Oxygen to Hydrogen ratio (O/H).

class scaling_method_creator(element, scaling_parameter, lower_break=-0.25, upper_break=0.5, reference_metallicity=0.015, reference_abundances={})[source]

This is a class for making the scaling methods for individual elements using the dictionary above.