27 #ifndef ANTIOCH_ELEMENTARY_REACTION_H
28 #define ANTIOCH_ELEMENTARY_REACTION_H
63 template<
typename CoeffType=
double>
77 template <
typename StateType,
typename VectorStateType>
82 template <
typename StateType,
typename VectorStateType>
87 VectorStateType& dkfwd_dX)
const;
94 template<
typename CoeffType>
97 const std::string &equation,
98 const bool &reversible,
106 template<
typename CoeffType>
115 template<
typename CoeffType>
116 template<
typename StateType,
typename VectorStateType>
119 (
const VectorStateType& ,
125 return (*this->_forward_rate[0])(conditions);
128 template<
typename CoeffType>
129 template<
typename StateType,
typename VectorStateType>
132 (
const VectorStateType& ,
136 VectorStateType& dkfwd_dX)
const
139 this->_forward_rate[0]->compute_rate_and_derivative(conditions,kfwd,dkfwd_dT);
150 #endif // ANTIOCH_ELEMENTARY_REACTION_H
A single reaction mechanism.
ElementaryReaction(const unsigned int n_species, const std::string &equation, const bool &reversible=true, const KineticsModel::KineticsModel kin=KineticsModel::KOOIJ)
Construct a single reaction mechanism.
const std::string & equation() const
#define antioch_assert_equal_to(expr1, expr2)
unsigned int n_species() const
StateType compute_forward_rate_coefficient(const VectorStateType &molar_densities, const KineticsConditions< StateType, VectorStateType > &conditions) const
void set_zero(_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a)
A single reaction mechanism.
The parameters are reduced parameters.
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
This class contains the conditions of the chemistry.