GridFire 0.6.0
General Purpose Nuclear Network
Loading...
Searching...
No Matches
gridfire::rates::weak Namespace Reference

Classes

struct  BoundsErrorInfo
 Detailed bounds information for a BOUNDS_ERROR. More...
 
struct  InterpolationError
 Interpolation error with optional per-axis bounds details. More...
 
struct  IsotopeGrid
 Regular 3D grid and payloads for a single isotope (A,Z). More...
 
struct  RateDataRow
 One row of the unified weak-rate data table for a specific isotope and state. More...
 
struct  WeakRateDerivatives
 Partial derivatives of the log10() fields w.r.t. (T9, log10(rho*Ye), mu_e). More...
 
class  WeakRateInterpolator
 3D table interpolator for tabulated weak reaction data by isotope. More...
 
struct  WeakRatePayload
 Interpolated weak-rate payload at a single state. More...
 
class  WeakReaction
 Concrete Reaction representing a single weak process (beta±, e−/e+ capture). More...
 
struct  WeakReactionEntry
 A single weak-reaction data point (type, state, and log values). More...
 
class  WeakReactionMap
 Index of available weak reactions keyed by species. More...
 

Enumerations

enum class  WeakReactionType { BETA_PLUS_DECAY , BETA_MINUS_DECAY , ELECTRON_CAPTURE , POSITRON_CAPTURE }
 Weak reaction channel identifiers. More...
 
enum class  NeutrinoTypes {
  ELECTRON_NEUTRINO , ELECTRON_ANTINEUTRINO , MUON_NEUTRINO , MUON_ANTINEUTRINO ,
  TAU_NEUTRINO , TAU_ANTINEUTRINO
}
 Enumeration of neutrino flavors (for potential extensions and tagging). More...
 
enum class  WeakMapError { SPECIES_NOT_FOUND , UNKNOWN_ERROR }
 Lookup errors for WeakReactionMap queries. More...
 
enum class  InterpolationErrorType { BOUNDS_ERROR , UNKNOWN_SPECIES_ERROR , UNKNOWN_ERROR }
 Error categories for interpolation attempts. More...
 
enum class  TableAxes { T9 , LOG_RHOYE , MUE }
 Axes of the interpolation table. More...
 

Functions

constexpr std::string_view weak_reaction_type_name (const WeakReactionType t) noexcept
 Abbreviated channel name used in printing and IDs.
 

Variables

static constexpr std::array< RateDataRow, 77400 > UNIFIED_WEAK_DATA
 
std::unordered_map< InterpolationErrorType, std::string_view > InterpolationErrorTypeMap
 Human-readable names for InterpolationErrorType.
 

Enumeration Type Documentation

◆ InterpolationErrorType

Error categories for interpolation attempts.

Enumerator
BOUNDS_ERROR 

Query outside the per-axis min/max of the table.

UNKNOWN_SPECIES_ERROR 

Requested (A,Z) not present in the tables.

UNKNOWN_ERROR 

◆ NeutrinoTypes

Enumeration of neutrino flavors (for potential extensions and tagging).

Enumerator
ELECTRON_NEUTRINO 
ELECTRON_ANTINEUTRINO 
MUON_NEUTRINO 
MUON_ANTINEUTRINO 
TAU_NEUTRINO 
TAU_ANTINEUTRINO 

◆ TableAxes

Axes of the interpolation table.

Enumerator
T9 

Temperature in GK.

LOG_RHOYE 

log10(rho*Ye).

MUE 

Electron chemical potential (MeV).

◆ WeakMapError

Lookup errors for WeakReactionMap queries.

Enumerator
SPECIES_NOT_FOUND 

No entries for the requested Species.

UNKNOWN_ERROR 

◆ WeakReactionType

Weak reaction channel identifiers.

Enumerator
BETA_PLUS_DECAY 

β+ decay: Z -> Z-1 + e+ + ν_e

BETA_MINUS_DECAY 

β− decay: Z -> Z+1 + e− + ν̄_e

ELECTRON_CAPTURE 

e− capture: (Z, e−) -> Z-1 + ν_e

POSITRON_CAPTURE 

e+ capture: (Z, e+) -> Z+1 + ν̄_e

Function Documentation

◆ weak_reaction_type_name()

std::string_view gridfire::rates::weak::weak_reaction_type_name ( const WeakReactionType t)
constexprnoexcept

Abbreviated channel name used in printing and IDs.

Parameters
tChannel enum.
Returns
Short name: bp, bm, ec, or pc.

Variable Documentation

◆ InterpolationErrorTypeMap

std::unordered_map<InterpolationErrorType, std::string_view> gridfire::rates::weak::InterpolationErrorTypeMap
inline
Initial value:
= {
}
@ BOUNDS_ERROR
Query outside the per-axis min/max of the table.
Definition weak_types.h:114
@ UNKNOWN_ERROR
Definition weak_types.h:116
@ UNKNOWN_SPECIES_ERROR
Requested (A,Z) not present in the tables.
Definition weak_types.h:115

Human-readable names for InterpolationErrorType.

◆ UNIFIED_WEAK_DATA

std::array<RateDataRow, 77400> gridfire::rates::weak::UNIFIED_WEAK_DATA
staticconstexpr