GridFire 0.6.0
General Purpose Nuclear Network
|
#include <py_screening.h>
Private Member Functions | |
std::vector< double > | calculateScreeningFactors (const gridfire::reaction::LogicalReactionSet &reactions, const std::vector< fourdst::atomic::Species > &species, const std::vector< double > &Y, const double T9, const double rho) const override |
Calculates screening factors for a set of reactions. | |
std::vector< ADDouble > | calculateScreeningFactors (const gridfire::reaction::LogicalReactionSet &reactions, const std::vector< fourdst::atomic::Species > &species, const std::vector< ADDouble > &Y, const ADDouble T9, const ADDouble rho) const override |
Calculates screening factors using CppAD types for automatic differentiation. | |
Additional Inherited Members | |
![]() | |
using | ADDouble = CppAD::AD<double> |
Alias for CppAD Automatic Differentiation type for double precision. | |
![]() | |
virtual | ~ScreeningModel ()=default |
Virtual destructor. | |
|
overrideprivatevirtual |
Calculates screening factors using CppAD types for automatic differentiation.
This is a pure virtual function that provides an overload of calculateScreeningFactors
for use with CppAD. It allows the derivatives of the screening factors with respect to abundances, temperature, and density to be computed automatically.
reactions | The set of logical reactions in the network. |
species | A vector of all atomic species involved in the network. |
Y | A vector of the molar abundances (mol/g) for each species, as AD types. |
T9 | The temperature in units of 10^9 K, as an AD type. |
rho | The plasma density in g/cm^3, as an AD type. |
Note This method is essential for including the effects of screening in the Jacobian matrix of the reaction network.
Implements gridfire::screening::ScreeningModel.
|
overrideprivatevirtual |
Calculates screening factors for a set of reactions.
This is a pure virtual function that must be implemented by derived classes. It computes the screening enhancement factor for each reaction in the provided set based on the given plasma conditions.
reactions | The set of logical reactions in the network. |
species | A vector of all atomic species involved in the network. |
Y | A vector of the molar abundances (mol/g) for each species. |
T9 | The temperature in units of 10^9 K. |
rho | The plasma density in g/cm^3. |
reactions
set, in the same order.Pre-conditions
Y
vector must match the size of the species
vector.T9
and rho
must be positive.Post-conditions
reactions
set.Usage
Implements gridfire::screening::ScreeningModel.