|
| const std::vector< fourdst::atomic::Species > & | getNetworkSpecies () const override |
| | PyDynamicEngine Implementation ///.
|
| |
| std::expected< gridfire::StepDerivatives< double >, gridfire::expectations::StaleEngineError > | calculateRHSAndEnergy (const std::vector< double > &Y, double T9, double rho) const override |
| |
| void | generateJacobianMatrix (const std::vector< double > &Y_dynamic, double T9, double rho) const override |
| |
| void | generateJacobianMatrix (const std::vector< double > &Y_dynamic, double T9, double rho, const gridfire::SparsityPattern &sparsityPattern) const override |
| |
| double | getJacobianMatrixEntry (int i, int j) const override |
| |
| void | generateStoichiometryMatrix () override |
| | Generate the stoichiometry matrix for the network.
|
| |
| int | getStoichiometryMatrixEntry (int speciesIndex, int reactionIndex) const override |
| |
| double | calculateMolarReactionFlow (const gridfire::reaction::Reaction &reaction, const std::vector< double > &Y, double T9, double rho) const override |
| |
| const gridfire::reaction::ReactionSet & | getNetworkReactions () const override |
| | Get the set of logical reactions in the network.
|
| |
| void | setNetworkReactions (const gridfire::reaction::ReactionSet &reactions) override |
| |
| std::expected< std::unordered_map< fourdst::atomic::Species, double >, gridfire::expectations::StaleEngineError > | getSpeciesTimescales (const std::vector< double > &Y, double T9, double rho) const override |
| |
| std::expected< std::unordered_map< fourdst::atomic::Species, double >, gridfire::expectations::StaleEngineError > | getSpeciesDestructionTimescales (const std::vector< double > &Y, double T9, double rho) const override |
| |
| fourdst::composition::Composition | update (const gridfire::NetIn &netIn) override |
| | Update the internal state of the engine.
|
| |
| bool | isStale (const gridfire::NetIn &netIn) override |
| |
| void | setScreeningModel (gridfire::screening::ScreeningType model) override |
| | Set the electron screening model.
|
| |
| gridfire::screening::ScreeningType | getScreeningModel () const override |
| | Get the current electron screening model.
|
| |
| size_t | getSpeciesIndex (const fourdst::atomic::Species &species) const override |
| | Get the index of a species in the network.
|
| |
| std::vector< double > | mapNetInToMolarAbundanceVector (const gridfire::NetIn &netIn) const override |
| | Map a NetIn object to a vector of molar abundances.
|
| |
| gridfire::PrimingReport | primeEngine (const gridfire::NetIn &netIn) override |
| | Prime the engine with initial conditions.
|
| |
| gridfire::BuildDepthType | getDepth () const override |
| | Get the depth of the network.
|
| |
| void | rebuild (const fourdst::composition::Composition &comp, gridfire::BuildDepthType depth) override |
| | Rebuild the network with a specified depth.
|
| |
| virtual void | generateJacobianMatrix (const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| | Generate the Jacobian matrix for the current state.
|
| |
| virtual void | generateJacobianMatrix (const fourdst::composition::Composition &comp, double T9, double rho, const SparsityPattern &sparsityPattern) const |
| |
| virtual double | getJacobianMatrixEntry (const fourdst::atomic::Species &rowSpecies, const fourdst::atomic::Species &colSpecies) const =0 |
| | Get an entry from the previously generated Jacobian matrix.
|
| |
| virtual int | getStoichiometryMatrixEntry (const fourdst::atomic::Species &species, const reaction::Reaction &reaction) const =0 |
| | Get an entry from the stoichiometry matrix.
|
| |
| virtual double | calculateMolarReactionFlow (const reaction::Reaction &reaction, const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| | Calculate the molar reaction flow for a given reaction.
|
| |
| virtual EnergyDerivatives | calculateEpsDerivatives (const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| | Calculate the derivatives of the energy generation rate with respect to T and rho.
|
| |
| virtual std::expected< std::unordered_map< fourdst::atomic::Species, double >, expectations::StaleEngineError > | getSpeciesTimescales (const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| | Compute timescales for all species in the network.
|
| |
| virtual std::expected< std::unordered_map< fourdst::atomic::Species, double >, expectations::StaleEngineError > | getSpeciesDestructionTimescales (const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| |
| virtual | ~Engine ()=default |
| | Virtual destructor.
|
| |
| virtual std::expected< StepDerivatives< double >, expectations::StaleEngineError > | calculateRHSAndEnergy (const fourdst::composition::Composition &comp, double T9, double rho) const =0 |
| | Calculate the right-hand side (dY/dt) and energy generation.
|
| |