|
GridFire 0.0.1a
General Purpose Nuclear Network
|
#include <py_engine.h>
Public Member Functions | |
| const std::vector< fourdst::atomic::Species > & | getNetworkSpecies () const override |
| Get the list of species in the network. | |
| std::expected< gridfire::StepDerivatives< double >, gridfire::expectations::StaleEngineError > | calculateRHSAndEnergy (const std::vector< double > &Y, double T9, double rho) const override |
| Calculate the right-hand side (dY/dt) and energy generation. | |
Public Member Functions inherited from gridfire::Engine | |
| virtual | ~Engine ()=default |
| Virtual destructor. | |
Private Attributes | |
| std::vector< fourdst::atomic::Species > | m_species_cache |
Definition at line 12 of file py_engine.h.
|
overridevirtual |
Calculate the right-hand side (dY/dt) and energy generation.
| Y | Vector of current abundances for all species. |
| T9 | Temperature in units of 10^9 K. |
| rho | Density in g/cm^3. |
This function must be implemented by derived classes to compute the time derivatives of all species and the specific nuclear energy generation rate for the current state.
Implements gridfire::Engine.
Definition at line 37 of file py_engine.cpp.
|
overridevirtual |
Get the list of species in the network.
Implements gridfire::Engine.
Definition at line 16 of file py_engine.cpp.
|
mutableprivate |
Definition at line 17 of file py_engine.h.