|
fourdst::libcomposition v2.3.1
Robust atomic species information library
|
Represents an atomic species (isotope) with its fundamental physical properties. More...
#include <atomicSpecies.h>
Public Member Functions | |
| Species (const std::string_view name, const std::string_view el, const int nz, const int n, const int z, const int a, const double bindingEnergy, const std::string_view betaCode, const double betaDecayEnergy, const double halfLife_s, const std::string_view spinParity, const std::string_view decayModes, const double atomicMass, const double atomicMassUnc) | |
| Constructs a Species object with detailed properties. | |
| Species (const Species &species) | |
| Copy constructor for Species. | |
| double | mass () const |
| Gets the atomic mass of the species. | |
| double | massUnc () const |
| Gets the uncertainty in the atomic mass. | |
| double | halfLife () const |
| Gets the half-life of the species. | |
| std::string_view | spinParity () const |
| Gets the spin and parity as a string. | |
| std::string_view | decayModes () const |
| Gets the decay modes as a string. | |
| double | bindingEnergy () const |
| Gets the binding energy of the species. | |
| double | betaDecayEnergy () const |
| Gets the beta decay energy of the species. | |
| std::string_view | betaCode () const |
| Gets the beta decay code. | |
| std::string_view | name () const |
| Gets the name of the species. | |
| std::string_view | el () const |
| Gets the element symbol of the species. | |
| int | nz () const |
| Gets the NZ identifier of the species. | |
| int | n () const |
| Gets the number of neutrons. | |
| int | z () const |
| Gets the atomic number (number of protons). | |
| int | a () const |
| Gets the mass number. | |
| double | spin () const |
| Gets the nuclear spin as a numeric value. | |
Public Attributes | |
| std::string | m_name |
| Name of the species (e.g., "Fe56"). | |
| std::string | m_el |
| Element symbol (e.g., "Fe"). | |
| int | m_nz |
| NZ identifier, typically 1000*Z + A. | |
| int | m_n |
| Number of neutrons. | |
| int | m_z |
| Atomic number (number of protons). | |
| int | m_a |
| Mass number (N + Z). | |
| double | m_bindingEnergy |
| Binding energy in keV. | |
| std::string | m_betaCode |
| Beta decay code. | |
| double | m_betaDecayEnergy |
| Beta decay energy in keV. | |
| double | m_halfLife_s |
| Half-life in seconds. A value of -1.0 typically indicates stability. | |
| std::string | m_spinParity |
| Spin and parity as a string (e.g., "1/2-"). | |
| std::string | m_decayModes |
| Decay modes as a string. | |
| double | m_atomicMass |
| Atomic mass in atomic mass units (u). | |
| double | m_atomicMassUnc |
| Uncertainty in the atomic mass. | |
| std::optional< double > | m_spin = std::nullopt |
| Nuclear spin as a double, derived from m_spinParity. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Species &species) |
| Overloads the stream insertion operator for easy printing of a Species object. | |
| bool | operator== (const Species &lhs, const Species &rhs) |
| Equality operator for Species. Compares based on name. | |
| bool | operator!= (const Species &lhs, const Species &rhs) |
| Inequality operator for Species. Compares based on name. | |
| std::partial_ordering | operator<=> (const Species &lhs, const Species &rhs) |
Represents an atomic species (isotope) with its fundamental physical properties.
This struct holds data parsed from nuclear data libraries, such as atomic mass, half-life, and spin. It is a fundamental data structure for representing the components of a material composition.
Definition at line 52 of file atomicSpecies.h.
|
inline |
Constructs a Species object with detailed properties.
| name | Name of the species. |
| el | Element symbol. |
| nz | NZ identifier. |
| n | Number of neutrons. |
| z | Atomic number. |
| a | Mass number. |
| bindingEnergy | Binding energy. |
| betaCode | Beta decay code. |
| betaDecayEnergy | Beta decay energy. |
| halfLife_s | Half-life in seconds. |
| spinParity | Spin and parity string. |
| decayModes | Decay modes string. |
| atomicMass | Atomic mass. |
| atomicMassUnc | Atomic mass uncertainty. |
m_spin member is initialized by parsing m_spinParity using convert_jpi_to_double. Definition at line 89 of file atomicSpecies.h.
|
inline |
Copy constructor for Species.
| species | The Species object to copy. |
species. The m_spin member is re-calculated. Definition at line 125 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the mass number.
Definition at line 251 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the beta decay code.
Definition at line 203 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the beta decay energy of the species.
Definition at line 195 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the binding energy of the species.
Definition at line 187 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the decay modes as a string.
Definition at line 179 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the element symbol of the species.
Definition at line 219 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the half-life of the species.
Definition at line 163 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the atomic mass of the species.
Definition at line 147 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the uncertainty in the atomic mass.
Definition at line 155 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the number of neutrons.
Definition at line 235 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the name of the species.
Definition at line 211 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the NZ identifier of the species.
Definition at line 227 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the nuclear spin as a numeric value.
Definition at line 259 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the spin and parity as a string.
Definition at line 171 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the atomic number (number of protons).
Definition at line 243 of file atomicSpecies.h.
Inequality operator for Species. Compares based on name.
true if the names are different, false otherwise. Definition at line 296 of file atomicSpecies.h.
|
friend |
Overloads the stream insertion operator for easy printing of a Species object.
| os | The output stream. |
| species | The Species object to print. |
Definition at line 272 of file atomicSpecies.h.
Definition at line 300 of file atomicSpecies.h.
Equality operator for Species. Compares based on name.
true if the names are identical, false otherwise. Definition at line 287 of file atomicSpecies.h.
| int fourdst::atomic::Species::m_a |
Mass number (N + Z).
Definition at line 58 of file atomicSpecies.h.
| double fourdst::atomic::Species::m_atomicMass |
Atomic mass in atomic mass units (u).
Definition at line 65 of file atomicSpecies.h.
| double fourdst::atomic::Species::m_atomicMassUnc |
Uncertainty in the atomic mass.
Definition at line 66 of file atomicSpecies.h.
| std::string fourdst::atomic::Species::m_betaCode |
Beta decay code.
Definition at line 60 of file atomicSpecies.h.
| double fourdst::atomic::Species::m_betaDecayEnergy |
Beta decay energy in keV.
Definition at line 61 of file atomicSpecies.h.
| double fourdst::atomic::Species::m_bindingEnergy |
Binding energy in keV.
Definition at line 59 of file atomicSpecies.h.
| std::string fourdst::atomic::Species::m_decayModes |
Decay modes as a string.
Definition at line 64 of file atomicSpecies.h.
| std::string fourdst::atomic::Species::m_el |
Element symbol (e.g., "Fe").
Definition at line 54 of file atomicSpecies.h.
| double fourdst::atomic::Species::m_halfLife_s |
Half-life in seconds. A value of -1.0 typically indicates stability.
Definition at line 62 of file atomicSpecies.h.
| int fourdst::atomic::Species::m_n |
Number of neutrons.
Definition at line 56 of file atomicSpecies.h.
| std::string fourdst::atomic::Species::m_name |
Name of the species (e.g., "Fe56").
Definition at line 53 of file atomicSpecies.h.
| int fourdst::atomic::Species::m_nz |
NZ identifier, typically 1000*Z + A.
Definition at line 55 of file atomicSpecies.h.
|
mutable |
Nuclear spin as a double, derived from m_spinParity.
Definition at line 67 of file atomicSpecies.h.
| std::string fourdst::atomic::Species::m_spinParity |
Spin and parity as a string (e.g., "1/2-").
Definition at line 63 of file atomicSpecies.h.
| int fourdst::atomic::Species::m_z |
Atomic number (number of protons).
Definition at line 57 of file atomicSpecies.h.