antioch-0.4.0
|
Constant rate equation. More...
#include <constant_rate.h>
Public Member Functions | |
ConstantRate (const CoeffType Cf=0.) | |
~ConstantRate () | |
void | set_Cf (const CoeffType Cf) |
template<typename VectorCoeffType > | |
void | reset_coefs (const VectorCoeffType &coefficients) |
reset the coeffs More... | |
CoeffType | Cf () const |
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 StateType > | |
rate (const StateType &T) const template< typename StateType > operator()(const StateType &T) const template< typename StateType > derivative(const StateType &T) const template< typename StateType > void rate_and_derivative(const StateType &T | |
Simultaneously evaluate the rate and its derivative at T . More... | |
template<typename StateType , typename VectorStateType > | |
rate (const KineticsConditions< StateType, VectorStateType > &cond) const ANTIOCH_AUTOFUNC(StateType | |
constant_clone (cond.T(), _Cf)) template< typename StateType | |
VectorStateType | operator() (const KineticsConditions< StateType, VectorStateType > &cond) const template< typename StateType |
VectorStateType VectorStateType | derivative (const KineticsConditions< StateType, VectorStateType > &cond) const ANTIOCH_AUTOFUNC(StateType |
VectorStateType VectorStateType | zero_clone (cond.T())) template< typename StateType |
Simultaneously evaluate the rate and its derivative at T . More... | |
VectorStateType VectorStateType VectorStateType void | rate_and_derivative (const KineticsConditions< StateType, VectorStateType > &cond, StateType &rate, StateType &drate_dT) const |
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 | |
StateType & | rate |
StateType StateType &drate_dT | const |
Private Attributes | |
CoeffType | _Cf |
Constant rate equation.
This is a constant value for the kinetics model of the form:
Thus
Definition at line 55 of file constant_rate.h.
Antioch::ConstantRate< CoeffType >::ConstantRate | ( | const CoeffType | Cf = 0. | ) |
Definition at line 141 of file constant_rate.h.
Antioch::ConstantRate< CoeffType >::~ConstantRate | ( | ) |
Definition at line 149 of file constant_rate.h.
|
inline |
Definition at line 205 of file constant_rate.h.
References Antioch::ConstantRate< CoeffType >::_Cf.
Referenced by Antioch::ConstantRate< CoeffType >::get_parameter(), and Antioch::ConstantRate< CoeffType >::set_Cf().
|
inherited |
|
inherited |
Antioch::ConstantRate< CoeffType >::constant_clone | ( | cond. | T(), |
_Cf | |||
) |
T
.
|
inherited |
VectorStateType VectorStateType Antioch::ConstantRate< CoeffType >::derivative | ( | const KineticsConditions< StateType, VectorStateType > & | cond | ) | const |
Referenced by test_values(), and vectester().
|
inline |
get one parameter, characterized by enum
Definition at line 186 of file constant_rate.h.
References Antioch::KineticsModel::A, antioch_assert_equal_to, and Antioch::ConstantRate< CoeffType >::Cf().
|
inherited |
get one parameter, characterized by enum, for vectorized parameter
|
virtual |
print equation
Implements Antioch::KineticsType< CoeffType >.
Definition at line 155 of file constant_rate.h.
References Antioch::ConstantRate< CoeffType >::_Cf.
|
inherited |
VectorStateType Antioch::ConstantRate< CoeffType >::operator() | ( | const KineticsConditions< StateType, VectorStateType > & | cond | ) | const |
T
.
|
inherited |
Formatted print, by default to std::cout
.
Antioch::ConstantRate< CoeffType >::rate | ( | const StateType & | T | ) | const |
Simultaneously evaluate the rate and its derivative at T
.
T
.T
.T
. Antioch::ConstantRate< CoeffType >::rate | ( | const KineticsConditions< StateType, VectorStateType > & | cond | ) | const |
T
.
|
inline |
Definition at line 211 of file constant_rate.h.
References Antioch::constant_fill(), and Antioch::set_zero().
Referenced by test_values(), and vectester().
|
inline |
reset the coeffs
You require exactly one parameter
Definition at line 196 of file constant_rate.h.
References antioch_assert_equal_to, and Antioch::ConstantRate< CoeffType >::set_Cf().
Referenced by tester().
|
inline |
Definition at line 166 of file constant_rate.h.
References Antioch::ConstantRate< CoeffType >::Cf().
Referenced by Antioch::ConstantRate< CoeffType >::reset_coefs(), Antioch::ConstantRate< CoeffType >::set_parameter(), and tester().
|
inherited |
|
inline |
set one parameter, characterized by enum
Definition at line 175 of file constant_rate.h.
References Antioch::KineticsModel::A, antioch_assert_equal_to, and Antioch::ConstantRate< CoeffType >::set_Cf().
|
inline |
for compatibility purpose with photochemistry (particle flux reactions)
Definition at line 88 of file constant_rate.h.
References antioch_error.
|
inherited |
VectorStateType VectorStateType Antioch::ConstantRate< CoeffType >::zero_clone | ( | cond. | T() | ) |
Simultaneously evaluate the rate and its derivative at T
.
|
private |
Definition at line 60 of file constant_rate.h.
Referenced by Antioch::ConstantRate< CoeffType >::Cf(), and Antioch::ConstantRate< CoeffType >::numeric().
StateType StateType& drate_dT Antioch::ConstantRate< CoeffType >::const |
Definition at line 110 of file constant_rate.h.
StateType& Antioch::ConstantRate< CoeffType >::rate |
Definition at line 110 of file constant_rate.h.