27 #ifndef ANTIOCH_KINETICS_PARSING_H
28 #define ANTIOCH_KINETICS_PARSING_H
50 template<
typename CoeffType,
typename VectorCoeffType>
51 KineticsType<CoeffType, VectorCoeffType>*
build_rate(
const VectorCoeffType &data,
54 template<
typename CoeffType,
typename VectorCoeffType,
typename VectorType>
55 void reset_rate( KineticsType<CoeffType,VectorCoeffType> & kin,
const VectorType & coefs);
67 template <
typename CoeffType,
typename VectorCoeffType>
70 const CoeffType new_value,
const std::string & unit =
"SI");
73 template <
typename CoeffType,
typename VectorCoeffType>
76 const CoeffType new_value,
int l,
const std::string & unit =
"SI");
87 template<
typename CoeffType,
typename VectorCoeffType>
151 VectorCoeffType lambda;
152 for(
unsigned int i = 0; i < data.size()/2; i++)
154 lambda.push_back(data[i]);
155 cs.push_back(data[i + data.size()/2]);
171 template<
typename CoeffType,
typename VectorCoeffType,
typename VectorType>
234 template <
typename CoeffType,
typename VectorCoeffType>
237 const CoeffType new_value,
const std::string & unit)
244 CoeffType new_coef = (unit ==
"SI")?new_value:
254 new_coef = new_coef / Constants::R_universal<typename value_type<CoeffType>::type>();
311 template <
typename CoeffType,
typename VectorCoeffType>
314 const CoeffType new_value,
int l,
const std::string & unit)
321 CoeffType new_coef = (unit ==
"SI")?new_value:
344 #endif // ANTIOCH_REACTION_PARSING_H
base class for kinetics models
#define antioch_assert_equal_to(expr1, expr2)
KineticsModel::KineticsModel type() const
void reset_parameter_of_rate(KineticsType< CoeffType, VectorCoeffType > &rate, KineticsModel::Parameters parameter, const CoeffType new_value, const std::string &unit="SI")
The rate constant models derived from the Arrhenius model have an activation energy which is stored a...
Berthelot Hercourt-Essen rate equation.
Antioch::enable_if_c< Antioch::is_valarray< T >::value, typename Antioch::state_type< T >::type >::type pow(const T &in, const T2 &n)
void reset_rate(KineticsType< CoeffType, VectorCoeffType > &kin, const VectorType &coefs)
KineticsType< CoeffType, VectorCoeffType > * build_rate(const VectorCoeffType &data, const KineticsModel::KineticsModel &kin)
cross-road to kinetics model
Van't Hoff rate equation.
Hercourt-Essen rate equation.
The parameters are reduced parameters.