GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
Public Attributes | List of all members
gridfire::StepDerivatives< T > Struct Template Reference

Structure holding derivatives and energy generation for a network step. More...

`#include <engine_abstract.h>`

## Public Attributes
std::vector< T > | dydt
| Derivatives of abundances (dY/dt for each species).
T | nuclearEnergyGenerationRate = T(0.0)
| Specific energy generation rate (e.g., erg/g/s).

## Detailed Description

template<IsArithmeticOrAD T>
struct gridfire::StepDerivatives< T >

Structure holding derivatives and energy generation for a network step.

Template Parameters

  T | Numeric type (double or CppAD::AD<double>).

This struct is used to return both the time derivatives of all species abundances and the specific nuclear energy generation rate for a single network evaluation.

Example usage:

StepDerivatives<double> result = engine.calculateRHSAndEnergy(Y, T9, rho);
for (double dydt_i : result.dydt) {
// Use derivative
}
double energyRate = result.nuclearEnergyGenerationRate;
gridfire::StepDerivatives
Structure holding derivatives and energy generation for a network step.
Definition engine_abstract.h:60
gridfire::StepDerivatives::nuclearEnergyGenerationRate
T nuclearEnergyGenerationRate
Specific energy generation rate (e.g., erg/g/s).
Definition engine_abstract.h:62
gridfire::StepDerivatives::dydt
std::vector< T > dydt
Derivatives of abundances (dY/dt for each species).
Definition engine_abstract.h:61

Definition at line 60 of file engine_abstract.h.

## Member Data Documentation

## ◆ dydt

template<IsArithmeticOrAD T>

std::vector<T> gridfire::StepDerivatives< T >::dydt

Derivatives of abundances (dY/dt for each species).

Definition at line 61 of file engine_abstract.h.

## ◆ nuclearEnergyGenerationRate

template<IsArithmeticOrAD T>

T gridfire::StepDerivatives< T >::nuclearEnergyGenerationRate = T(0.0)

Specific energy generation rate (e.g., erg/g/s).

Definition at line 62 of file engine_abstract.h.

The documentation for this struct was generated from the following file:

- src/include/gridfire/engine/engine_abstract.h