GridFire 0.0.1a
General Purpose Nuclear Network
Loading...
Searching...
No Matches
gridfire Namespace Reference

Namespaces

namespace  approx8
 
namespace  io
 
namespace  reaclib
 
namespace  reaction
 
namespace  screening
 
namespace  solver
 
namespace  utils
 

Classes

class  AdaptiveEngineView
 An engine view that dynamically adapts the reaction network based on runtime conditions. More...
 
class  DynamicEngine
 Abstract class for engines supporting Jacobian and stoichiometry operations. More...
 
class  Engine
 Abstract base class for a reaction network engine. More...
 
class  EngineView
 Abstract base class for a "view" of a reaction network engine. More...
 
class  FileDefinedEngineView
 An engine view that uses a user-defined reaction network from a file. More...
 
class  GraphEngine
 A reaction network engine that uses a graph-based representation. More...
 
struct  NetIn
 
struct  NetOut
 
class  Network
 
struct  StepDerivatives
 Structure holding derivatives and energy generation for a network step. More...
 

Concepts

concept  IsArithmeticOrAD
 Concept for types allowed in engine calculations.
 
concept  EngineType
 Concept for types allowed as engine bases in EngineView.
 

Typedefs

typedef CppAD::AD< double > ADDouble
 Alias for CppAD AD type for double precision.
 

Enumerations

enum  NetworkFormat { APPROX8 , REACLIB , UNKNOWN }
 

Functions

reaction::LogicalReactionSet build_reaclib_nuclear_network (const fourdst::composition::Composition &composition, bool reverse)
 
std::string trim_whitespace (const std::string &str)
 

Variables

static constexpr double MIN_DENSITY_THRESHOLD = 1e-18
 Minimum density threshold below which reactions are ignored.
 
static constexpr double MIN_ABUNDANCE_THRESHOLD = 1e-18
 Minimum abundance threshold below which species are ignored.
 
static constexpr double MIN_JACOBIAN_THRESHOLD = 1e-24
 Minimum value for Jacobian matrix entries.
 
static std::unordered_map< NetworkFormat, std::string > FormatStringLookup
 

Typedef Documentation

◆ ADDouble

typedef CppAD::AD<double> gridfire::ADDouble

Alias for CppAD AD type for double precision.

This alias simplifies the use of the CppAD automatic differentiation type.

Definition at line 34 of file engine_graph.h.

Enumeration Type Documentation

◆ NetworkFormat

Enumerator
APPROX8 

Approx8 nuclear reaction network format.

REACLIB 

General REACLIB nuclear reaction network format.

UNKNOWN 

Definition at line 41 of file network.h.

Function Documentation

◆ build_reaclib_nuclear_network()

reaction::LogicalReactionSet gridfire::build_reaclib_nuclear_network ( const fourdst::composition::Composition & composition,
bool reverse )

Definition at line 64 of file network.cpp.

◆ trim_whitespace()

std::string gridfire::trim_whitespace ( const std::string & str)

Definition at line 91 of file network.cpp.

Variable Documentation

◆ FormatStringLookup

std::unordered_map<NetworkFormat, std::string> gridfire::FormatStringLookup
inlinestatic
Initial value:
= {
{APPROX8, "Approx8"},
{REACLIB, "REACLIB"},
{UNKNOWN, "Unknown"}
}
@ APPROX8
Approx8 nuclear reaction network format.
Definition network.h:42
@ REACLIB
General REACLIB nuclear reaction network format.
Definition network.h:43
@ UNKNOWN
Definition network.h:44

Definition at line 47 of file network.h.

◆ MIN_ABUNDANCE_THRESHOLD

double gridfire::MIN_ABUNDANCE_THRESHOLD = 1e-18
staticconstexpr

Minimum abundance threshold below which species are ignored.

Species with abundances below this threshold are treated as zero in reaction rate calculations. This helps to improve performance by avoiding unnecessary calculations for trace species.

Definition at line 56 of file engine_graph.h.

◆ MIN_DENSITY_THRESHOLD

double gridfire::MIN_DENSITY_THRESHOLD = 1e-18
staticconstexpr

Minimum density threshold below which reactions are ignored.

Reactions are not calculated if the density falls below this threshold. This helps to improve performance by avoiding unnecessary calculations in very low-density regimes.

Definition at line 47 of file engine_graph.h.

◆ MIN_JACOBIAN_THRESHOLD

double gridfire::MIN_JACOBIAN_THRESHOLD = 1e-24
staticconstexpr

Minimum value for Jacobian matrix entries.

Jacobian matrix entries with absolute values below this threshold are treated as zero to maintain sparsity and improve performance.

Definition at line 64 of file engine_graph.h.