antioch-0.4.0
|
Berthelot Hercourt-Essen rate equation. More...
#include <berthelothercourtessen_rate.h>
Public Member Functions | |
BerthelotHercourtEssenRate (const CoeffType Cf=0., const CoeffType eta=0., const CoeffType D=0., const CoeffType Tref=1.) | |
~BerthelotHercourtEssenRate () | |
void | set_Cf (const CoeffType Cf) |
void | set_eta (const CoeffType eta) |
void | set_D (const CoeffType D) |
void | set_Tref (const CoeffType Tref) |
void | set_parameter (KineticsModel::Parameters parameter, CoeffType new_value) |
set one parameter, characterized by enum More... | |
CoeffType | get_parameter (KineticsModel::Parameters parameter) const |
get one parameter, characterized by enum More... | |
template<typename VectorCoeffType > | |
void | set_parameter (KineticsModel::Parameters parameter, VectorCoeffType new_value) |
for compatibility purpose with photochemistry (particle flux reactions) More... | |
template<typename VectorCoeffType > | |
void | reset_coefs (const VectorCoeffType &coefficients) |
reset the coeffs More... | |
CoeffType | Cf () const |
CoeffType | eta () const |
CoeffType | D () const |
CoeffType | Tref () const |
template<typename StateType > | |
rate (const StateType &T) const ANTIOCH_AUTOFUNC(StateType | |
_Cf * | ant_pow (T, _eta)*ant_exp(_D *T))) template< typename StateType > operator()(const StateType &T) const template< typename StateType > derivative(const StateType &T) const ANTIOCH_AUTOFUNC(StateType |
template<typename StateType , typename VectorStateType > | |
rate (const KineticsConditions< StateType, VectorStateType > &T) const ANTIOCH_AUTOFUNC(StateType | |
_Cf * | ant_exp (_eta *T.temp_cache().lnT+_D *T.T())) template< typename StateType |
_Cf VectorStateType | operator() (const KineticsConditions< StateType, VectorStateType > &T) const template< typename StateType |
_Cf VectorStateType VectorStateType | derivative (const KineticsConditions< StateType, VectorStateType > &T) const ANTIOCH_AUTOFUNC(StateType |
const std::string | numeric () const |
print equation More... | |
KineticsModel::KineticsModel | type () const |
StateType | operator() (const StateType &temp) const |
StateType | derivative (const StateType &conditions) const |
CoeffType | get_parameter (KineticsModel::Parameters parameter, int l) const |
get one parameter, characterized by enum, for vectorized parameter More... | |
void | compute_rate_and_derivative (const KineticsConditions< StateType, VectorStateType > &conditions, StateType &rate, StateType &drate_dT) const |
void | compute_rate_and_derivative (const StateType &temp, StateType &rate, StateType &drate_dT) const |
void | set_index (unsigned int nr) |
void | print (std::ostream &os=std::cout) const |
Formatted print, by default to std::cout . More... | |
Public Attributes | |
_Cf(* | this )(T)*(_eta/T+_D)) template< typename StateType > void rate_and_derivative(const StateType &T |
Simultaneously evaluate the rate and its derivative at T . More... | |
_Cf(*) StateType | rate ) |
_Cf(*) StateType StateType &drate_d | const ) |
_Cf VectorStateType VectorStateType(* | this )(T)*(_eta/T.T()+_D)) template< typename StateType |
Simultaneously evaluate the rate and its derivative at T . More... | |
_Cf VectorStateType VectorStateType(*) VectorStateType voi | rate_and_derivative )(const KineticsConditions< StateType, VectorStateType > &T, StateType &rate, StateType &drate_dT) const |
Private Member Functions | |
void | compute_cf () |
Private Attributes | |
CoeffType | _raw_Cf |
CoeffType | _Cf |
CoeffType | _eta |
CoeffType | _D |
CoeffType | _Tref |
Berthelot Hercourt-Essen rate equation.
The Berthelot Hercourt Essen kinetics model is of the form:
thus
Internally, we use the reduced temperature .
Definition at line 57 of file berthelothercourtessen_rate.h.
Antioch::BerthelotHercourtEssenRate< CoeffType >::BerthelotHercourtEssenRate | ( | const CoeffType | Cf = 0. , |
const CoeffType | eta = 0. , |
||
const CoeffType | D = 0. , |
||
const CoeffType | Tref = 1. |
||
) |
Definition at line 163 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::compute_cf().
Antioch::BerthelotHercourtEssenRate< CoeffType >::~BerthelotHercourtEssenRate | ( | ) |
Definition at line 175 of file berthelothercourtessen_rate.h.
_Cf* Antioch::BerthelotHercourtEssenRate< CoeffType >::ant_exp | ( | _eta *T. | temp_cache).lnT+_D *T.T( | ) |
T
. _Cf* Antioch::BerthelotHercourtEssenRate< CoeffType >::ant_pow | ( | T | , |
_eta | |||
) | const |
T
.T
. Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::compute_cf().
|
inline |
Definition at line 312 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::_Cf.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::get_parameter(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Cf().
|
inlineprivate |
Definition at line 356 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::ant_pow().
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::BerthelotHercourtEssenRate(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Cf(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_eta(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Tref().
|
inherited |
|
inherited |
|
inline |
Definition at line 322 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::_D.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::get_parameter(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_D().
|
inherited |
_Cf VectorStateType VectorStateType Antioch::BerthelotHercourtEssenRate< CoeffType >::derivative | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
Referenced by test_values(), and vectester().
|
inline |
Definition at line 317 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::_eta.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::get_parameter(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_eta().
|
inline |
get one parameter, characterized by enum
Definition at line 277 of file berthelothercourtessen_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::KineticsModel::B, Antioch::BerthelotHercourtEssenRate< CoeffType >::Cf(), Antioch::KineticsModel::D, Antioch::BerthelotHercourtEssenRate< CoeffType >::D(), Antioch::BerthelotHercourtEssenRate< CoeffType >::eta(), Antioch::KineticsModel::T_REF, and Antioch::BerthelotHercourtEssenRate< CoeffType >::Tref().
|
inherited |
get one parameter, characterized by enum, for vectorized parameter
|
virtual |
print equation
Implements Antioch::KineticsType< CoeffType >.
Definition at line 181 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::_eta, and Antioch::BerthelotHercourtEssenRate< CoeffType >::_raw_Cf.
|
inherited |
_Cf VectorStateType Antioch::BerthelotHercourtEssenRate< CoeffType >::operator() | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T
.
|
inherited |
Formatted print, by default to std::cout
.
Antioch::BerthelotHercourtEssenRate< CoeffType >::rate | ( | const StateType & | T | ) | const |
T
. Antioch::BerthelotHercourtEssenRate< CoeffType >::rate | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T
.
|
inline |
reset the coeffs
Two ways of modifying your rate:
Definition at line 230 of file berthelothercourtessen_rate.h.
References antioch_assert_greater, antioch_assert_less, Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Cf(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_D(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_eta(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Tref().
Referenced by tester().
|
inline |
Definition at line 194 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::Cf(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::compute_cf().
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 221 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::D().
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 212 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::compute_cf(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::eta().
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inherited |
|
inline |
set one parameter, characterized by enum
Definition at line 243 of file berthelothercourtessen_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::KineticsModel::B, Antioch::KineticsModel::D, Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Cf(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_D(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_eta(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Tref(), and Antioch::KineticsModel::T_REF.
|
inline |
for compatibility purpose with photochemistry (particle flux reactions)
Definition at line 88 of file berthelothercourtessen_rate.h.
References antioch_error.
|
inline |
Definition at line 203 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::compute_cf(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::Tref().
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::reset_coefs(), Antioch::BerthelotHercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 327 of file berthelothercourtessen_rate.h.
References Antioch::BerthelotHercourtEssenRate< CoeffType >::_Tref.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::get_parameter(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::set_Tref().
|
inherited |
|
private |
Definition at line 63 of file berthelothercourtessen_rate.h.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::Cf().
|
private |
Definition at line 65 of file berthelothercourtessen_rate.h.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::D().
|
private |
Definition at line 64 of file berthelothercourtessen_rate.h.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::eta(), and Antioch::BerthelotHercourtEssenRate< CoeffType >::numeric().
|
private |
Definition at line 62 of file berthelothercourtessen_rate.h.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::numeric().
|
private |
Definition at line 66 of file berthelothercourtessen_rate.h.
Referenced by Antioch::BerthelotHercourtEssenRate< CoeffType >::Tref().
_Cf(*) StateType StateType& drate_d Antioch::BerthelotHercourtEssenRate< CoeffType >::const) |
Definition at line 128 of file berthelothercourtessen_rate.h.
_Cf(*) StateType Antioch::BerthelotHercourtEssenRate< CoeffType >::rate) |
Definition at line 128 of file berthelothercourtessen_rate.h.
|
inline |
Definition at line 152 of file berthelothercourtessen_rate.h.
Referenced by test_values(), and vectester().
_Cf(* Antioch::BerthelotHercourtEssenRate< CoeffType >::this)(T)*(_eta/T+_D))template< typename StateType > void rate_and_derivative(const StateType &T |
Simultaneously evaluate the rate and its derivative at T
.
Definition at line 124 of file berthelothercourtessen_rate.h.
_Cf VectorStateType VectorStateType(* Antioch::BerthelotHercourtEssenRate< CoeffType >::this)(T)*(_eta/T.T()+_D))template< typename StateType |
Simultaneously evaluate the rate and its derivative at T
.
Definition at line 148 of file berthelothercourtessen_rate.h.