vice.yields.presets.JW20.alt_cc_sr_linear

The functional form of the alternative CCSN Sr yield explored in Johnson & Weinberg (2020) [1] which is linear in metallicity \(Z\).

Signature: vice.yields.presets.JW20.alt_cc_sr_linear(Z, Z_solar = 0.014)

New in version 1.1.0.

Parameters

Zreal number

The metallicity by mass \(M_Z/M_\star\).

Z_solarreal number [default0.014]

The metallicity by mass of the Sun. Default value is take from Asplund et al. (2009) [2].

Returns

yreal number

The IMF-averaged CCSN Sr yield as a function of metallicity Z.

Notes

The yield is defined by:

\[y_\text{Sr}^\text{CC} = 3.5\times10^{-8} \left(\frac{Z}{Z_\odot}\right)\]

Example Code

>>> import vice
>>> from vice.yields.presets import JW20
>>> vice.yields.ccsne.settings['sr'] = JW20.alt_cc_sr_linear
>>> modified = lambda z: JW20.alt_cc_sr_linear(z, Z_solar = 0.018)
>>> vice.yields.ccsne.settings['sr'] = modified