fourdst::libcomposition v1.5.2
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. | |
double | m_spin = 0.0 |
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. | |
bool | operator< (const Species &lhs, const Species &rhs) |
Less-than operator for Species. Compares based on atomic mass. | |
bool | operator> (const Species &lhs, const Species &rhs) |
Greater-than operator for Species. Compares based on atomic mass. | |
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 51 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 88 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 126 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the mass number.
Definition at line 253 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the beta decay code.
Definition at line 205 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the beta decay energy of the species.
Definition at line 197 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the binding energy of the species.
Definition at line 189 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the decay modes as a string.
Definition at line 181 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the element symbol of the species.
Definition at line 221 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the half-life of the species.
Definition at line 165 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the atomic mass of the species.
Definition at line 149 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the uncertainty in the atomic mass.
Definition at line 157 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the number of neutrons.
Definition at line 237 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the name of the species.
Definition at line 213 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the NZ identifier of the species.
Definition at line 229 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the nuclear spin as a numeric value.
Definition at line 261 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the spin and parity as a string.
Definition at line 173 of file atomicSpecies.h.
|
inlinenodiscard |
Gets the atomic number (number of protons).
Definition at line 245 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.
Less-than operator for Species. Compares based on atomic mass.
true
if lhs atomic mass is less than rhs atomic mass, false
otherwise. Definition at line 305 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 271 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.
Greater-than operator for Species. Compares based on atomic mass.
true
if lhs atomic mass is greater than rhs atomic mass, false
otherwise. Definition at line 314 of file atomicSpecies.h.
int fourdst::atomic::Species::m_a |
Mass number (N + Z).
Definition at line 57 of file atomicSpecies.h.
double fourdst::atomic::Species::m_atomicMass |
Atomic mass in atomic mass units (u).
Definition at line 64 of file atomicSpecies.h.
double fourdst::atomic::Species::m_atomicMassUnc |
Uncertainty in the atomic mass.
Definition at line 65 of file atomicSpecies.h.
std::string fourdst::atomic::Species::m_betaCode |
Beta decay code.
Definition at line 59 of file atomicSpecies.h.
double fourdst::atomic::Species::m_betaDecayEnergy |
Beta decay energy in keV.
Definition at line 60 of file atomicSpecies.h.
double fourdst::atomic::Species::m_bindingEnergy |
Binding energy in keV.
Definition at line 58 of file atomicSpecies.h.
std::string fourdst::atomic::Species::m_decayModes |
Decay modes as a string.
Definition at line 63 of file atomicSpecies.h.
std::string fourdst::atomic::Species::m_el |
Element symbol (e.g., "Fe").
Definition at line 53 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 61 of file atomicSpecies.h.
int fourdst::atomic::Species::m_n |
Number of neutrons.
Definition at line 55 of file atomicSpecies.h.
std::string fourdst::atomic::Species::m_name |
Name of the species (e.g., "Fe56").
Definition at line 52 of file atomicSpecies.h.
int fourdst::atomic::Species::m_nz |
NZ identifier, typically 1000*Z + A.
Definition at line 54 of file atomicSpecies.h.
double fourdst::atomic::Species::m_spin = 0.0 |
Nuclear spin as a double, derived from m_spinParity.
Definition at line 66 of file atomicSpecies.h.
std::string fourdst::atomic::Species::m_spinParity |
Spin and parity as a string (e.g., "1/2-").
Definition at line 62 of file atomicSpecies.h.
int fourdst::atomic::Species::m_z |
Atomic number (number of protons).
Definition at line 56 of file atomicSpecies.h.