openmc.data.half_life
- openmc.data.half_life(isotope: str, chain_file: Literal[False] | None | PathLike | Chain = False) float | None[source]
Return half-life of isotope in seconds or None if isotope is stable
By default, half-life values are from the ENDF/B-VIII.0 decay sublibrary. A depletion chain can also be used as the source of half-life values.
Added in version 0.13.1.
Changed in version 0.15.4: Added the
chain_fileargument.- Parameters:
isotope (str) – Name of isotope, e.g., ‘Pu239’
chain_file (False, None, PathLike, or openmc.deplete.Chain, optional) – Source of half-life values. If
False, only ENDF/B-VIII.0 data is used. IfNone, the chain specified byopenmc.config['chain_file']is used when available. If a path oropenmc.deplete.Chainis given, that chain is used. ForNoneor an explicit chain, nuclides absent from the chain fall back to ENDF/B-VIII.0 data.
- Returns:
Half-life of isotope in [s], or None if the isotope is stable
- Return type:
float or None