|
GridFire v0.7.1_rc2
General Purpose Nuclear Network
|
Index of available weak reactions keyed by species. More...
#include <weak.h>
Public Member Functions | |
| WeakReactionMap () | |
| Construct the map by loading all weak reaction entries. | |
| ~WeakReactionMap ()=default | |
| std::vector< WeakReactionEntry > | get_all_reactions () const |
| Return a flat list of all weak reaction entries. | |
| std::expected< std::vector< WeakReactionEntry >, WeakMapError > | get_species_reactions (const fourdst::atomic::Species &species) const |
| Get all weak reaction entries for a given species. | |
| std::expected< std::vector< WeakReactionEntry >, WeakMapError > | get_species_reactions (const std::string &species_name) const |
| Get all weak reaction entries for a given species by name. | |
Private Attributes | |
| std::unordered_map< fourdst::atomic::Species, std::vector< WeakReactionEntry > > | m_weak_network |
Index of available weak reactions keyed by species.
Builds an in-memory map from the compiled weak-rate tables and provides simple query helpers to retrieve all weak reactions or those that involve a particular nuclide.
Implementation summary: the constructor iterates over UNIFIED_WEAK_DATA and inserts entries keyed by the parent Species. For each channel (β−, β+, e−-capture, e+-capture), if the tabulated log10(rate) is above the sentinel (-60), a WeakReactionEntry is pushed containing the grids t9, log10(rho*Ye), mu_e, the log10(rate), and the corresponding log10(neutrino loss) column.
| gridfire::rates::weak::WeakReactionMap::WeakReactionMap | ( | ) |
Construct the map by loading all weak reaction entries.
|
default |
| std::vector< WeakReactionEntry > gridfire::rates::weak::WeakReactionMap::get_all_reactions | ( | ) | const |
Return a flat list of all weak reaction entries.
| std::expected< std::vector< WeakReactionEntry >, WeakMapError > gridfire::rates::weak::WeakReactionMap::get_species_reactions | ( | const fourdst::atomic::Species & | species | ) | const |
Get all weak reaction entries for a given species.
| species | Nuclide to query (A,Z). |
| std::expected< std::vector< WeakReactionEntry >, WeakMapError > gridfire::rates::weak::WeakReactionMap::get_species_reactions | ( | const std::string & | species_name | ) | const |
Get all weak reaction entries for a given species by name.
| species_name | Symbolic name (e.g., "Fe52"). |
|
private |