|
antioch-0.4.0
|
Hercourt-Essen rate equation. More...
#include <hercourtessen_rate.h>
Public Member Functions | |
| HercourtEssenRate (const CoeffType Cf=0., const CoeffType eta=0., const CoeffType Tref=1.) | |
| ~HercourtEssenRate () | |
| void | set_Cf (const CoeffType Cf) |
| void | set_eta (const CoeffType eta) |
| 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 | Tref () const |
| template<typename StateType > | |
| rate (const StateType &T) const ANTIOCH_AUTOFUNC(StateType | |
| _Cf * | ant_pow (T, _eta))) 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)) 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)/T *(_eta)) 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)/T.T()*(_eta)) 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 | _Tref |
Hercourt-Essen rate equation.
Hercourt-Essen is a kinetics model of the form:
Thus
Internally, we use the reduced pre-exponential factor
Definition at line 57 of file hercourtessen_rate.h.
| Antioch::HercourtEssenRate< CoeffType >::HercourtEssenRate | ( | const CoeffType | Cf = 0., |
| const CoeffType | eta = 0., |
||
| const CoeffType | Tref = 1. |
||
| ) |
Definition at line 161 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::compute_cf().
| Antioch::HercourtEssenRate< CoeffType >::~HercourtEssenRate | ( | ) |
Definition at line 173 of file hercourtessen_rate.h.
| _Cf* Antioch::HercourtEssenRate< CoeffType >::ant_exp | ( | _eta *T.temp_cache(). | lnT | ) |
T. | _Cf* Antioch::HercourtEssenRate< CoeffType >::ant_pow | ( | T | , |
| _eta | |||
| ) | const |
T.T. Referenced by Antioch::HercourtEssenRate< CoeffType >::compute_cf().
|
inline |
Definition at line 292 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::_Cf.
Referenced by Antioch::HercourtEssenRate< CoeffType >::get_parameter(), and Antioch::HercourtEssenRate< CoeffType >::set_Cf().
|
inlineprivate |
Definition at line 319 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::ant_pow().
Referenced by Antioch::HercourtEssenRate< CoeffType >::HercourtEssenRate(), Antioch::HercourtEssenRate< CoeffType >::set_Cf(), Antioch::HercourtEssenRate< CoeffType >::set_eta(), and Antioch::HercourtEssenRate< CoeffType >::set_Tref().
|
inherited |
|
inherited |
|
inherited |
| _Cf VectorStateType VectorStateType Antioch::HercourtEssenRate< CoeffType >::derivative | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
Referenced by test_values(), and vectester().
|
inline |
Definition at line 297 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::_eta.
Referenced by Antioch::HercourtEssenRate< CoeffType >::get_parameter(), and Antioch::HercourtEssenRate< CoeffType >::set_eta().
|
inline |
get one parameter, characterized by enum
Definition at line 261 of file hercourtessen_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::KineticsModel::B, Antioch::HercourtEssenRate< CoeffType >::Cf(), Antioch::HercourtEssenRate< CoeffType >::eta(), Antioch::KineticsModel::T_REF, and Antioch::HercourtEssenRate< CoeffType >::Tref().
|
inherited |
get one parameter, characterized by enum, for vectorized parameter
|
virtual |
print equation
Implements Antioch::KineticsType< CoeffType >.
Definition at line 179 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::_eta, and Antioch::HercourtEssenRate< CoeffType >::_raw_Cf.
|
inherited |
| _Cf VectorStateType Antioch::HercourtEssenRate< CoeffType >::operator() | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T.
|
inherited |
Formatted print, by default to std::cout.
| Antioch::HercourtEssenRate< CoeffType >::rate | ( | const StateType & | T | ) | const |
T. | Antioch::HercourtEssenRate< CoeffType >::rate | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T.
|
inline |
reset the coeffs
Two ways of modifying your rate:
Definition at line 221 of file hercourtessen_rate.h.
References antioch_assert_greater, antioch_assert_less, Antioch::HercourtEssenRate< CoeffType >::set_Cf(), Antioch::HercourtEssenRate< CoeffType >::set_eta(), and Antioch::HercourtEssenRate< CoeffType >::set_Tref().
Referenced by tester().
|
inline |
Definition at line 191 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::Cf(), and Antioch::HercourtEssenRate< CoeffType >::compute_cf().
Referenced by Antioch::HercourtEssenRate< CoeffType >::reset_coefs(), Antioch::HercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 201 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::compute_cf(), and Antioch::HercourtEssenRate< CoeffType >::eta().
Referenced by Antioch::HercourtEssenRate< CoeffType >::reset_coefs(), Antioch::HercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inherited |
|
inline |
set one parameter, characterized by enum
Definition at line 232 of file hercourtessen_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::KineticsModel::B, Antioch::HercourtEssenRate< CoeffType >::set_Cf(), Antioch::HercourtEssenRate< CoeffType >::set_eta(), Antioch::HercourtEssenRate< CoeffType >::set_Tref(), and Antioch::KineticsModel::T_REF.
|
inline |
for compatibility purpose with photochemistry (particle flux reactions)
Definition at line 86 of file hercourtessen_rate.h.
References antioch_error.
|
inline |
Definition at line 210 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::compute_cf(), and Antioch::HercourtEssenRate< CoeffType >::Tref().
Referenced by Antioch::HercourtEssenRate< CoeffType >::reset_coefs(), Antioch::HercourtEssenRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 302 of file hercourtessen_rate.h.
References Antioch::HercourtEssenRate< CoeffType >::_Tref.
Referenced by Antioch::HercourtEssenRate< CoeffType >::get_parameter(), and Antioch::HercourtEssenRate< CoeffType >::set_Tref().
|
inherited |
|
private |
Definition at line 63 of file hercourtessen_rate.h.
Referenced by Antioch::HercourtEssenRate< CoeffType >::Cf().
|
private |
Definition at line 64 of file hercourtessen_rate.h.
Referenced by Antioch::HercourtEssenRate< CoeffType >::eta(), and Antioch::HercourtEssenRate< CoeffType >::numeric().
|
private |
Definition at line 62 of file hercourtessen_rate.h.
Referenced by Antioch::HercourtEssenRate< CoeffType >::numeric().
|
private |
Definition at line 65 of file hercourtessen_rate.h.
Referenced by Antioch::HercourtEssenRate< CoeffType >::Tref().
| _Cf(*) StateType StateType& drate_d Antioch::HercourtEssenRate< CoeffType >::const) |
Definition at line 125 of file hercourtessen_rate.h.
| _Cf(*) StateType Antioch::HercourtEssenRate< CoeffType >::rate) |
Definition at line 125 of file hercourtessen_rate.h.
|
inline |
Definition at line 149 of file hercourtessen_rate.h.
Referenced by test_values(), and vectester().
| _Cf(* Antioch::HercourtEssenRate< CoeffType >::this)(T)/T *(_eta))template< typename StateType > void rate_and_derivative(const StateType &T |
Simultaneously evaluate the rate and its derivative at T.
Definition at line 121 of file hercourtessen_rate.h.
| _Cf VectorStateType VectorStateType(* Antioch::HercourtEssenRate< CoeffType >::this)(T)/T.T()*(_eta))template< typename StateType |
Simultaneously evaluate the rate and its derivative at T.
Definition at line 145 of file hercourtessen_rate.h.