antioch-0.4.0
|
Class to handle computing mass source terms for a given ReactionSet. More...
#include <kinetics_evaluator.h>
Public Member Functions | |
KineticsEvaluator (const ReactionSet< CoeffType > &reaction_set, const StateType &example) | |
Constructor. Requires a reaction set to be evaluated later,. More... | |
~KineticsEvaluator () | |
const ReactionSet< CoeffType > & | reaction_set () const |
template<typename VectorStateType , typename KC > | |
void | compute_mass_sources (const KC &conditions, const VectorStateType &molar_densities, const VectorStateType &h_RT_minus_s_R, VectorStateType &mass_sources) |
Compute species production/destruction rates per unit volume. More... | |
template<typename VectorStateType , typename KC > | |
void | compute_mass_sources_and_derivs (const KC &conditions, const VectorStateType &molar_densities, const VectorStateType &h_RT_minus_s_R, const VectorStateType &dh_RT_minus_s_R_dT, VectorStateType &mass_sources, VectorStateType &dmass_dT, std::vector< VectorStateType > &dmass_drho_s) |
Compute species production/destruction rate derivatives. More... | |
template<typename VectorStateType , typename KC > | |
void | compute_mole_sources (const KC &conditions, const VectorStateType &molar_densities, const VectorStateType &h_RT_minus_s_R, VectorStateType &mole_sources) |
Compute species molar production/destruction rates per unit volume. More... | |
template<typename VectorStateType , typename KC > | |
void | compute_mole_sources_and_derivs (const KC &conditions, const VectorStateType &molar_densities, const VectorStateType &h_RT_minus_s_R, const VectorStateType &dh_RT_minus_s_R_dT, VectorStateType &mole_sources, VectorStateType &dmole_dT, std::vector< VectorStateType > &dmole_dX_s) |
Compute species production/destruction rate derivatives. More... | |
unsigned int | n_species () const |
unsigned int | n_reactions () const |
Protected Attributes | |
const ReactionSet< CoeffType > & | _reaction_set |
const ChemicalMixture < CoeffType > & | _chem_mixture |
std::vector< StateType > | _net_reaction_rates |
std::vector< StateType > | _dnet_rate_dT |
std::vector< std::vector < StateType > > | _dnet_rate_dX_s |
Class to handle computing mass source terms for a given ReactionSet.
This class preallocates work arrays and so must be created within a spawned thread, if running in a threaded environment. It takes a reference to an already created ReactionSet, so there's little construction penalty.
Definition at line 53 of file kinetics_evaluator.h.
|
inline |
Constructor. Requires a reaction set to be evaluated later,.
Definition at line 152 of file kinetics_evaluator.h.
References Antioch::ReactionSet< CoeffType >::n_species().
|
inline |
Definition at line 172 of file kinetics_evaluator.h.
|
inline |
Compute species production/destruction rates per unit volume.
Definition at line 234 of file kinetics_evaluator.h.
Referenced by tester(), and vectester().
|
inline |
Compute species production/destruction rate derivatives.
In mass units, e.g.
Definition at line 358 of file kinetics_evaluator.h.
Referenced by tester(), and vectester().
|
inline |
Compute species molar production/destruction rates per unit volume.
Definition at line 180 of file kinetics_evaluator.h.
References antioch_assert_equal_to, Antioch::Reaction< CoeffType, VectorCoeffType >::n_products(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_reactants(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_stoichiometric_coefficient(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_stoichiometric_coefficient(), and Antioch::set_zero().
|
inline |
Compute species production/destruction rate derivatives.
In mass units, e.g.
Definition at line 254 of file kinetics_evaluator.h.
References antioch_assert_equal_to, Antioch::Reaction< CoeffType, VectorCoeffType >::n_products(), Antioch::Reaction< CoeffType, VectorCoeffType >::n_reactants(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::product_stoichiometric_coefficient(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_id(), Antioch::Reaction< CoeffType, VectorCoeffType >::reactant_stoichiometric_coefficient(), and Antioch::set_zero().
|
inline |
Definition at line 143 of file kinetics_evaluator.h.
|
inline |
Definition at line 136 of file kinetics_evaluator.h.
|
inline |
Definition at line 129 of file kinetics_evaluator.h.
|
protected |
Definition at line 117 of file kinetics_evaluator.h.
|
protected |
Definition at line 121 of file kinetics_evaluator.h.
|
protected |
Definition at line 123 of file kinetics_evaluator.h.
|
protected |
Definition at line 119 of file kinetics_evaluator.h.
|
protected |
Definition at line 115 of file kinetics_evaluator.h.