|
| DuplicateReaction (const unsigned int n_species, const std::string &equation, const bool &reversible=true, const KineticsModel::KineticsModel kin=KineticsModel::KOOIJ) |
| Construct a single reaction mechanism. More...
|
|
| ~DuplicateReaction () |
|
template<typename StateType , typename VectorStateType > |
StateType | compute_forward_rate_coefficient (const VectorStateType &molar_densities, const KineticsConditions< StateType, VectorStateType > &conditions) const |
|
template<typename StateType , typename VectorStateType > |
void | compute_forward_rate_coefficient_and_derivatives (const VectorStateType &molar_densities, const KineticsConditions< StateType, VectorStateType > &conditions, StateType &kfwd, StateType &dkfwd_dT, VectorStateType &dkfwd_dX) const |
|
unsigned int | n_species () const |
|
const std::string & | equation () const |
|
const std::string & | id () const |
|
void | set_id (const std::string &id) |
| set the reaction id. More...
|
|
ReactionType::ReactionType | type () const |
| Type of reaction. More...
|
|
void | set_type (const ReactionType::ReactionType type) |
| Set the type of reaction. More...
|
|
void | set_reversibility (const bool reversible) |
| Set the reversibility of reaction. More...
|
|
KineticsModel::KineticsModel | kinetics_model () const |
| Model of kinetics. More...
|
|
void | set_kinetics_model (const KineticsModel::KineticsModel kin) |
| Set the model of kinetics. More...
|
|
bool | initialized () const |
|
void | set_parameter_of_rate (KineticsModel::Parameters parameter, CoeffType new_value, unsigned int n_reaction=0, const std::string &unit="SI") |
| reset a parameter from the rate constant More...
|
|
void | set_parameter_of_rate (KineticsModel::Parameters parameter, CoeffType new_value, unsigned int n_reaction, int l, const std::string &unit="SI") |
| reset a parameter from the rate constant, vector parameters More...
|
|
CoeffType | get_parameter_of_rate (KineticsModel::Parameters parameter, unsigned int n_reaction=0, const std::string &unit="SI") const |
| get a parameter from the rate constant More...
|
|
CoeffType | get_parameter_of_rate (KineticsModel::Parameters parameter, unsigned int n_reaction, const std::string &unit, int l) const |
| get a parameter from the rate constant, vectorized version More...
|
|
void | set_parameter_of_chemical_process (ReactionType::Parameters parameter, CoeffType new_value, unsigned int species=std::numeric_limits< unsigned int >::max()) |
| reset a parameter from the chemical process More...
|
|
CoeffType | get_parameter_of_chemical_process (ReactionType::Parameters parameter, unsigned int species=std::numeric_limits< unsigned int >::max()) const |
| get a parameter from the chemical process More...
|
|
bool | reversible () const |
|
unsigned int | n_reactants () const |
|
unsigned int | n_products () const |
|
const std::string & | reactant_name (const unsigned int r) const |
|
const std::string & | product_name (const unsigned int p) const |
|
unsigned int | reactant_id (const unsigned int r) const |
|
unsigned int | product_id (const unsigned int p) const |
|
unsigned int | reactant_stoichiometric_coefficient (const unsigned int r) const |
|
unsigned int | product_stoichiometric_coefficient (const unsigned int p) const |
|
CoeffType | reactant_partial_order (const unsigned int r) const |
|
CoeffType | product_partial_order (const unsigned int p) const |
|
void | add_reactant (const std::string &name, const unsigned int r_id, const unsigned int stoichiometric_coeff, const CoeffType partial_order=std::numeric_limits< CoeffType >::infinity()) |
|
void | add_product (const std::string &name, const unsigned int p_id, const unsigned int stoichiometric_coeff, const CoeffType partial_order=std::numeric_limits< CoeffType >::infinity()) |
|
void | clear_reactant () |
|
void | clear_product () |
|
void | set_efficiency (const std::string &, const unsigned int s, const CoeffType efficiency) |
|
CoeffType | get_efficiency (const unsigned int s) const |
|
CoeffType | efficiency (const unsigned int s) const |
|
void | initialize (unsigned int index=0) |
| Computes derived quantities. More...
|
|
int | gamma () const |
|
StateType | equilibrium_constant (const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R) const |
|
void | equilibrium_constant_and_derivative (const StateType &T, const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R, const VectorStateType &ddT_h_RT_minus_s_R, StateType &keq, StateType &dkeq_dT) const |
|
StateType | compute_forward_rate_coefficient (const VectorStateType &molar_densities, const StateType &temp) const |
|
void | compute_forward_rate_coefficient_and_derivatives (const VectorStateType &molar_densities, const StateType &temp, StateType &kfwd, StateType &dkfwd_dT, VectorStateType &dkfwd_dX) const |
|
StateType | compute_rate_of_progress (const VectorStateType &molar_densities, const KineticsConditions< StateType, VectorStateType > &conditions, const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R) const |
|
StateType | compute_rate_of_progress (const VectorStateType &molar_densities, const StateType &temp, const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R) const |
|
void | compute_rate_of_progress_and_derivatives (const VectorStateType &molar_densities, const ChemicalMixture< CoeffType > &, const KineticsConditions< StateType, VectorStateType > &conditions, const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R, const VectorStateType &dh_RT_minus_s_R_dT, StateType &net_reaction_rate, StateType &dnet_rate_dT, VectorStateType &dnet_rate_dX_s) const |
|
void | compute_rate_of_progress_and_derivatives (const VectorStateType &molar_densities, const ChemicalMixture< CoeffType > &chem_mixture, const StateType &temp, const StateType &P0_RT, const VectorStateType &h_RT_minus_s_R, const VectorStateType &dh_RT_minus_s_R_dT, StateType &net_reaction_rate, StateType &dnet_rate_dT, VectorStateType &dnet_rate_dX_s) const |
|
const KineticsType< CoeffType,
VectorCoeffType > & | forward_rate (unsigned int ir=0) const |
| Return const reference to the forward rate object. More...
|
|
KineticsType< CoeffType,
VectorCoeffType > & | forward_rate (unsigned int ir=0) |
| Return writeable reference to the forward rate object. More...
|
|
FalloffType & | falloff () |
| Return writeable reference to the falloff object, test type. More...
|
|
void | add_forward_rate (KineticsType< CoeffType, VectorCoeffType > *rate) |
| Add a forward rate object. More...
|
|
void | swap_forward_rates (unsigned int irate, unsigned int jrate) |
| Swap two forward rates object. More...
|
|
unsigned int | n_rate_constants () const |
| Return the number of rate constant objects. More...
|
|
void | print (std::ostream &os=std::cout) const |
| Formatted print, by default to std::cout . More...
|
|
template<typename CoeffType = double>
class Antioch::DuplicateReaction< CoeffType >
A single reaction mechanism.
This class encapsulates a duplicate reaction process. A duplicate process rate constant is defined by the equation
with being the kinetics model (see base classes Reaction and KineticsType), and the mixture concentration (or pressure, it's equivalent, in an ideal gas model). It is assumed that all the are the same kinetics model. All reactions are assumed to be reversible. By default, the kinetics model used is the KooijRate.
We have:
with the concentration of species .
Definition at line 64 of file duplicate_reaction.h.