CAMP 1.0.0
Chemistry Across Multiple Phases
|
CMAQ_OH_HNO3 reaction solver functions. More...
Go to the source code of this file.
Macros | |
#define | TEMPERATURE_K_ env_data[0] |
#define | PRESSURE_PA_ env_data[1] |
#define | NUM_REACT_ int_data[0] |
#define | NUM_PROD_ int_data[1] |
#define | k0_A_ float_data[0] |
#define | k0_B_ float_data[1] |
#define | k0_C_ float_data[2] |
#define | k2_A_ float_data[3] |
#define | k2_B_ float_data[4] |
#define | k2_C_ float_data[5] |
#define | k3_A_ float_data[6] |
#define | k3_B_ float_data[7] |
#define | k3_C_ float_data[8] |
#define | SCALING_ float_data[9] |
#define | CONV_ float_data[10] |
#define | RATE_CONSTANT_ (rxn_env_data[0]) |
#define | NUM_INT_PROP_ 2 |
#define | NUM_FLOAT_PROP_ 11 |
#define | NUM_ENV_PARAM_ 1 |
#define | REACT_(x) (int_data[NUM_INT_PROP_ + x] - 1) |
#define | PROD_(x) (int_data[NUM_INT_PROP_ + NUM_REACT_ + x] - 1) |
#define | DERIV_ID_(x) int_data[NUM_INT_PROP_ + NUM_REACT_ + NUM_PROD_ + x] |
#define | JAC_ID_(x) int_data[NUM_INT_PROP_ + 2 * (NUM_REACT_ + NUM_PROD_) + x] |
#define | YIELD_(x) float_data[NUM_FLOAT_PROP_ + x] |
Functions | |
void | rxn_CMAQ_OH_HNO3_get_used_jac_elem (int *rxn_int_data, double *rxn_float_data, Jacobian *jac) |
Flag Jacobian elements used by this reaction. | |
void | rxn_CMAQ_OH_HNO3_update_ids (ModelData *model_data, int *deriv_ids, Jacobian jac, int *rxn_int_data, double *rxn_float_data) |
Update the time derivative and Jacbobian array indices. | |
void | rxn_CMAQ_OH_HNO3_update_env_state (ModelData *model_data, int *rxn_int_data, double *rxn_float_data, double *rxn_env_data) |
Update reaction data for new environmental conditions. | |
void | rxn_CMAQ_OH_HNO3_calc_deriv_contrib (ModelData *model_data, TimeDerivative time_deriv, int *rxn_int_data, double *rxn_float_data, double *rxn_env_data, double time_step) |
Calculate contributions to the time derivative \(f(t,y)\) from this reaction. | |
void | rxn_CMAQ_OH_HNO3_calc_jac_contrib (ModelData *model_data, Jacobian jac, int *rxn_int_data, double *rxn_float_data, double *rxn_env_data, double time_step) |
Calculate contributions to the Jacobian from this reaction. | |
void | rxn_CMAQ_OH_HNO3_print (int *rxn_int_data, double *rxn_float_data) |
Print the CMAQ_OH_HNO3 reaction parameters. | |
CMAQ_OH_HNO3 reaction solver functions.
Definition in file rxn_CMAQ_OH_HNO3.c.
#define CONV_ float_data[10] |
Definition at line 32 of file rxn_CMAQ_OH_HNO3.c.
#define DERIV_ID_ | ( | x | ) | int_data[NUM_INT_PROP_ + NUM_REACT_ + NUM_PROD_ + x] |
Definition at line 39 of file rxn_CMAQ_OH_HNO3.c.
#define JAC_ID_ | ( | x | ) | int_data[NUM_INT_PROP_ + 2 * (NUM_REACT_ + NUM_PROD_) + x] |
Definition at line 40 of file rxn_CMAQ_OH_HNO3.c.
#define k0_A_ float_data[0] |
Definition at line 22 of file rxn_CMAQ_OH_HNO3.c.
#define k0_B_ float_data[1] |
Definition at line 23 of file rxn_CMAQ_OH_HNO3.c.
#define k0_C_ float_data[2] |
Definition at line 24 of file rxn_CMAQ_OH_HNO3.c.
#define k2_A_ float_data[3] |
Definition at line 25 of file rxn_CMAQ_OH_HNO3.c.
#define k2_B_ float_data[4] |
Definition at line 26 of file rxn_CMAQ_OH_HNO3.c.
#define k2_C_ float_data[5] |
Definition at line 27 of file rxn_CMAQ_OH_HNO3.c.
#define k3_A_ float_data[6] |
Definition at line 28 of file rxn_CMAQ_OH_HNO3.c.
#define k3_B_ float_data[7] |
Definition at line 29 of file rxn_CMAQ_OH_HNO3.c.
#define k3_C_ float_data[8] |
Definition at line 30 of file rxn_CMAQ_OH_HNO3.c.
#define NUM_ENV_PARAM_ 1 |
Definition at line 36 of file rxn_CMAQ_OH_HNO3.c.
#define NUM_FLOAT_PROP_ 11 |
Definition at line 35 of file rxn_CMAQ_OH_HNO3.c.
#define NUM_INT_PROP_ 2 |
Definition at line 34 of file rxn_CMAQ_OH_HNO3.c.
#define NUM_PROD_ int_data[1] |
Definition at line 21 of file rxn_CMAQ_OH_HNO3.c.
#define NUM_REACT_ int_data[0] |
Definition at line 20 of file rxn_CMAQ_OH_HNO3.c.
#define PRESSURE_PA_ env_data[1] |
Definition at line 18 of file rxn_CMAQ_OH_HNO3.c.
#define PROD_ | ( | x | ) | (int_data[NUM_INT_PROP_ + NUM_REACT_ + x] - 1) |
Definition at line 38 of file rxn_CMAQ_OH_HNO3.c.
#define RATE_CONSTANT_ (rxn_env_data[0]) |
Definition at line 33 of file rxn_CMAQ_OH_HNO3.c.
#define REACT_ | ( | x | ) | (int_data[NUM_INT_PROP_ + x] - 1) |
Definition at line 37 of file rxn_CMAQ_OH_HNO3.c.
#define SCALING_ float_data[9] |
Definition at line 31 of file rxn_CMAQ_OH_HNO3.c.
#define TEMPERATURE_K_ env_data[0] |
Definition at line 17 of file rxn_CMAQ_OH_HNO3.c.
#define YIELD_ | ( | x | ) | float_data[NUM_FLOAT_PROP_ + x] |
Definition at line 41 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_calc_deriv_contrib | ( | ModelData * | model_data, |
TimeDerivative | time_deriv, | ||
int * | rxn_int_data, | ||
double * | rxn_float_data, | ||
double * | rxn_env_data, | ||
double | time_step | ||
) |
Calculate contributions to the time derivative \(f(t,y)\) from this reaction.
model_data | Pointer to the model data |
time_deriv | TimeDerivative object |
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
rxn_env_data | Pointer to the environment-dependent parameters |
time_step | Current time step being computed (s) |
Definition at line 147 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_calc_jac_contrib | ( | ModelData * | model_data, |
Jacobian | jac, | ||
int * | rxn_int_data, | ||
double * | rxn_float_data, | ||
double * | rxn_env_data, | ||
double | time_step | ||
) |
Calculate contributions to the Jacobian from this reaction.
model_data | Pointer to the model data |
jac | Reaction Jacobian |
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
rxn_env_data | Pointer to the environment-dependent parameters |
time_step | Current time step being calculated (s) |
Definition at line 192 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_get_used_jac_elem | ( | int * | rxn_int_data, |
double * | rxn_float_data, | ||
Jacobian * | jac | ||
) |
Flag Jacobian elements used by this reaction.
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
jac | Jacobian |
Definition at line 49 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_print | ( | int * | rxn_int_data, |
double * | rxn_float_data | ||
) |
Print the CMAQ_OH_HNO3 reaction parameters.
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
Definition at line 235 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_update_env_state | ( | ModelData * | model_data, |
int * | rxn_int_data, | ||
double * | rxn_float_data, | ||
double * | rxn_env_data | ||
) |
Update reaction data for new environmental conditions.
For CMAQ_OH_HNO3 reaction this only involves recalculating the rate constant.
model_data | Pointer to the model data |
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
rxn_env_data | Pointer to the environment-dependent parameters |
Definition at line 110 of file rxn_CMAQ_OH_HNO3.c.
void rxn_CMAQ_OH_HNO3_update_ids | ( | ModelData * | model_data, |
int * | deriv_ids, | ||
Jacobian | jac, | ||
int * | rxn_int_data, | ||
double * | rxn_float_data | ||
) |
Update the time derivative and Jacbobian array indices.
model_data | Pointer to the model data |
deriv_ids | Id of each state variable in the derivative array |
jac | Jacobian |
rxn_int_data | Pointer to the reaction integer data |
rxn_float_data | Pointer to the reaction floating-point data |
Definition at line 74 of file rxn_CMAQ_OH_HNO3.c.