|
| FalloffReaction (const unsigned int n_species, const std::string &equation, const bool &reversible=true, const ReactionType::ReactionType &falloffType=ReactionType::LINDEMANN_FALLOFF, const KineticsModel::KineticsModel kin=KineticsModel::KOOIJ) |
| Construct a single reaction mechanism. More...
|
|
virtual | ~FalloffReaction () |
|
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 &dkfkwd_dX) const |
|
const FalloffType & | F () const |
| Return const reference to the falloff object. More...
|
|
FalloffType & | F () |
| Return writeable reference to the falloff object. More...
|
|
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, typename FalloffType = LindemannFalloff<CoeffType>>
class Antioch::FalloffReaction< CoeffType, FalloffType >
Base class for falloff processes.
This class encapsulates a falloff reaction. It performs the common operations. A falloff rate constant is defined by the equation
with
and being respectively the low and high pressure rate constant limits, considered elementary (as pressure in these conditions is constant). Thus
with any kinetics model (see base class KineticsType), and the mixture concentration (or pressure, it's equivalent, in the ideal gas model). All reactions are assumed to be reversible, the kinetics models are assumed to be the same.
We have:
By default, the falloff is LindemannFalloff and the kinetics model KooijRate.
- Todo:
- Document the limiting accuracy of the denominator part at the float precision. See the tests for the values, I (Sylvain) propose to make a paragraph in the model doc explaining throughfully this issue.
Definition at line 98 of file falloff_reaction.h.