antioch-0.4.0
|
Berthelot rate equation. More...
#include <berthelot_rate.h>
Public Member Functions | |
BerthelotRate (const CoeffType Cf=0., const CoeffType D=0.) | |
~BerthelotRate () | |
void | set_Cf (const CoeffType Cf) |
void | set_D (const CoeffType D) |
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... | |
void | scale_D (const CoeffType scale) |
CoeffType | Cf () const |
CoeffType | D () const |
template<typename StateType > | |
rate (const StateType &T) const ANTIOCH_AUTOFUNC(StateType | |
_Cf * | 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 (_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)*_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)*_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 Attributes | |
CoeffType | _Cf |
CoeffType | _D |
Berthelot rate equation.
The Berthelot kinetics model is of the form:
thus
Definition at line 55 of file berthelot_rate.h.
Antioch::BerthelotRate< CoeffType >::BerthelotRate | ( | const CoeffType | Cf = 0. , |
const CoeffType | D = 0. |
||
) |
Definition at line 147 of file berthelot_rate.h.
Antioch::BerthelotRate< CoeffType >::~BerthelotRate | ( | ) |
Definition at line 156 of file berthelot_rate.h.
_Cf* Antioch::BerthelotRate< CoeffType >::ant_exp | ( | _D * | T | ) | const |
T
.T
. _Cf* Antioch::BerthelotRate< CoeffType >::ant_exp | ( | _D *T. | T() | ) |
T
.
|
inline |
Definition at line 257 of file berthelot_rate.h.
References Antioch::BerthelotRate< CoeffType >::_Cf.
Referenced by Antioch::BerthelotRate< CoeffType >::get_parameter(), and Antioch::BerthelotRate< CoeffType >::set_Cf().
|
inherited |
|
inherited |
|
inline |
Definition at line 262 of file berthelot_rate.h.
References Antioch::BerthelotRate< CoeffType >::_D.
Referenced by Antioch::BerthelotRate< CoeffType >::get_parameter(), and Antioch::BerthelotRate< CoeffType >::set_D().
|
inherited |
_Cf VectorStateType VectorStateType Antioch::BerthelotRate< CoeffType >::derivative | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
Referenced by test_values(), and vectester().
|
inline |
get one parameter, characterized by enum
Definition at line 224 of file berthelot_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::BerthelotRate< CoeffType >::Cf(), Antioch::KineticsModel::D, and Antioch::BerthelotRate< CoeffType >::D().
|
inherited |
get one parameter, characterized by enum, for vectorized parameter
|
virtual |
print equation
Implements Antioch::KineticsType< CoeffType >.
Definition at line 162 of file berthelot_rate.h.
References Antioch::BerthelotRate< CoeffType >::_Cf.
|
inherited |
_Cf VectorStateType Antioch::BerthelotRate< CoeffType >::operator() | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T
.
|
inherited |
Formatted print, by default to std::cout
.
Antioch::BerthelotRate< CoeffType >::rate | ( | const StateType & | T | ) | const |
T
. Antioch::BerthelotRate< CoeffType >::rate | ( | const KineticsConditions< StateType, VectorStateType > & | T | ) | const |
T
.
|
inline |
reset the coeffs
You require exactly two parameters, the order assumed is Cf, D
Definition at line 191 of file berthelot_rate.h.
References antioch_assert_equal_to, Antioch::BerthelotRate< CoeffType >::set_Cf(), and Antioch::BerthelotRate< CoeffType >::set_D().
Referenced by tester().
|
inline |
Definition at line 249 of file berthelot_rate.h.
|
inline |
Definition at line 174 of file berthelot_rate.h.
References Antioch::BerthelotRate< CoeffType >::Cf().
Referenced by Antioch::BerthelotRate< CoeffType >::reset_coefs(), Antioch::BerthelotRate< CoeffType >::set_parameter(), and tester().
|
inline |
Definition at line 182 of file berthelot_rate.h.
References Antioch::BerthelotRate< CoeffType >::D().
Referenced by Antioch::BerthelotRate< CoeffType >::reset_coefs(), Antioch::BerthelotRate< CoeffType >::set_parameter(), and tester().
|
inherited |
|
inline |
set one parameter, characterized by enum
Definition at line 200 of file berthelot_rate.h.
References Antioch::KineticsModel::A, antioch_error, Antioch::KineticsModel::D, Antioch::BerthelotRate< CoeffType >::set_Cf(), and Antioch::BerthelotRate< CoeffType >::set_D().
|
inline |
for compatibility purpose with photochemistry (particle flux reactions)
Definition at line 81 of file berthelot_rate.h.
References antioch_error.
|
inherited |
|
private |
Definition at line 60 of file berthelot_rate.h.
Referenced by Antioch::BerthelotRate< CoeffType >::Cf(), and Antioch::BerthelotRate< CoeffType >::numeric().
|
private |
Definition at line 61 of file berthelot_rate.h.
Referenced by Antioch::BerthelotRate< CoeffType >::D().
_Cf(*) StateType StateType& drate_d Antioch::BerthelotRate< CoeffType >::const) |
Definition at line 116 of file berthelot_rate.h.
_Cf(*) StateType Antioch::BerthelotRate< CoeffType >::rate) |
Definition at line 116 of file berthelot_rate.h.
|
inline |
Definition at line 140 of file berthelot_rate.h.
Referenced by test_values(), and vectester().
_Cf(* Antioch::BerthelotRate< CoeffType >::this)(T)*_D)template< typename StateType > void rate_and_derivative(const StateType &T |
Simultaneously evaluate the rate and its derivative at T
.
Definition at line 112 of file berthelot_rate.h.
_Cf VectorStateType VectorStateType(* Antioch::BerthelotRate< CoeffType >::this)(T)*_D)template< typename StateType |
Simultaneously evaluate the rate and its derivative at T
.
Definition at line 136 of file berthelot_rate.h.