27 #ifndef ANTIOCH_BERTHELOT_RATE_H
28 #define ANTIOCH_BERTHELOT_RATE_H
54 template<
typename CoeffType=
double>
69 void set_D(
const CoeffType
D );
80 template <
typename VectorCoeffType>
87 template <
typename VectorCoeffType>
88 void reset_coefs(
const VectorCoeffType & coefficients);
91 void scale_D(
const CoeffType scale );
97 template <
typename StateType>
103 template <typename StateType>
109 template <typename StateType>
115 template <typename StateType>
121 template <typename StateType, typename VectorStateType>
127 template <typename StateType, typename VectorStateType>
133 template <typename StateType, typename VectorStateType>
139 template <typename StateType,typename VectorStateType>
146 template<typename CoeffType>
155 template<
typename CoeffType>
161 template<
typename CoeffType>
164 std::stringstream os;
166 os <<
"*exp(" << _D <<
"*T)";
172 template<
typename CoeffType>
180 template<
typename CoeffType>
188 template<
typename CoeffType>
189 template <
typename VectorCoeffType>
194 this->
set_Cf(coefficients[0]);
195 this->
set_D(coefficients[1]);
198 template<
typename CoeffType>
211 this->
set_D(new_value);
222 template<
typename CoeffType>
247 template<
typename CoeffType>
255 template<
typename CoeffType>
260 template<
typename CoeffType>
265 template<
typename CoeffType>
266 template<
typename StateType>
270 StateType& drate_dT)
const
277 template<
typename CoeffType>
278 template <
typename StateType,
typename VectorStateType>
281 StateType&
rate, StateType& drate_dT)
const
290 #endif // ANTIOCH_BERTHELOT_RATE_H
_Cf VectorStateType VectorStateType(*) VectorStateType voi rate_and_derivative)(const KineticsConditions< StateType, VectorStateType > &T, StateType &rate, StateType &drate_dT) const
_Cf(* this)(T)*_D) template< typename StateType > void rate_and_derivative(const StateType &T
Simultaneously evaluate the rate and its derivative at T.
base class for kinetics models
#define antioch_assert_equal_to(expr1, expr2)
_Cf * ant_exp(_D *T))) template< typename StateType > operator()(const StateType &T) const template< typename StateType > derivative(const StateType &T) const ANTIOCH_AUTOFUNC(StateType
_Cf(*) StateType StateType &drate_d const)
CoeffType get_parameter(KineticsModel::Parameters parameter) const
get one parameter, characterized by enum
void set_parameter(KineticsModel::Parameters parameter, CoeffType new_value)
set one parameter, characterized by enum
void reset_coefs(const VectorCoeffType &coefficients)
reset the coeffs
void set_D(const CoeffType D)
void set_Cf(const CoeffType Cf)
void scale_D(const CoeffType scale)
void set_parameter(KineticsModel::Parameters parameter, VectorCoeffType new_value)
for compatibility purpose with photochemistry (particle flux reactions)
const std::string numeric() const
print equation
#define ANTIOCH_AUTOFUNC(Type, Expr)
const ANTIOCH_AUTO(StateType) KineticsTheoryThermalConductivity< ThermoEvaluator
The parameters are reduced parameters.
BerthelotRate(const CoeffType Cf=0., const CoeffType D=0.)
This class contains the conditions of the chemistry.
_Cf VectorStateType VectorStateType derivative(const KineticsConditions< StateType, VectorStateType > &T) const ANTIOCH_AUTOFUNC(StateType