|
CAMP 1.0.0
Chemistry Across Multiple Phases
|
Surface 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 | DIFF_COEFF_ float_data[0] |
| #define | GAMMA_ float_data[1] |
| #define | MW_ float_data[2] |
| #define | NUM_AERO_PHASE_ int_data[0] |
| #define | REACT_ID_ (int_data[1] - 1) |
| #define | NUM_PROD_ int_data[2] |
| #define | MEAN_SPEED_MS_ rxn_env_data[0] |
| #define | NUM_INT_PROP_ 3 |
| #define | NUM_FLOAT_PROP_ 3 |
| #define | NUM_ENV_PARAM_ 1 |
| #define | PROD_ID_(x) |
| #define | DERIV_ID_(x) |
| #define | JAC_ID_(x) |
| #define | PHASE_INT_LOC_(x) |
| #define | PHASE_FLOAT_LOC_(x) |
| #define | AERO_PHASE_ID_(x) |
| #define | AERO_REP_ID_(x) |
| #define | NUM_AERO_PHASE_JAC_ELEM_(x) |
| #define | PHASE_JAC_ID_(x, s, e) |
| #define | YIELD_(x) |
| #define | EFF_RAD_JAC_ELEM_(x, e) |
| #define | NUM_CONC_JAC_ELEM_(x, e) |
Functions | |
| void | rxn_surface_get_used_jac_elem (ModelData *model_data, int *rxn_int_data, double *rxn_float_data, Jacobian *jac) |
| Flag Jacobian elements used by this reaction. | |
| void | rxn_surface_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_surface_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_surface_calc_deriv_contrib (ModelData *model_data, TimeDerivative time_deriv, int *rxn_int_data, double *rxn_float_data, double *rxn_env_data, realtype time_step) |
| Calculate contributions to the time derivative \(f(t,y)\) from this reaction. | |
| void | rxn_surface_calc_jac_contrib (ModelData *model_data, Jacobian jac, int *rxn_int_data, double *rxn_float_data, double *rxn_env_data, realtype time_step) |
| Calculate contributions to the Jacobian from this reaction. | |
| void | rxn_surface_print (int *rxn_int_data, double *rxn_float_data) |
| Print the surface reaction parameters. | |
Surface reaction solver functions.
Definition in file rxn_surface.c.
| #define AERO_PHASE_ID_ | ( | x | ) |
Definition at line 39 of file rxn_surface.c.
| #define AERO_REP_ID_ | ( | x | ) |
Definition at line 40 of file rxn_surface.c.
| #define DERIV_ID_ | ( | x | ) |
Definition at line 33 of file rxn_surface.c.
| #define DIFF_COEFF_ float_data[0] |
Definition at line 22 of file rxn_surface.c.
| #define EFF_RAD_JAC_ELEM_ | ( | x, | |
| e ) |
Definition at line 45 of file rxn_surface.c.
| #define GAMMA_ float_data[1] |
Definition at line 23 of file rxn_surface.c.
| #define JAC_ID_ | ( | x | ) |
Definition at line 34 of file rxn_surface.c.
| #define MEAN_SPEED_MS_ rxn_env_data[0] |
Definition at line 28 of file rxn_surface.c.
| #define MW_ float_data[2] |
Definition at line 24 of file rxn_surface.c.
| #define NUM_AERO_PHASE_ int_data[0] |
Definition at line 25 of file rxn_surface.c.
| #define NUM_AERO_PHASE_JAC_ELEM_ | ( | x | ) |
Definition at line 41 of file rxn_surface.c.
| #define NUM_CONC_JAC_ELEM_ | ( | x, | |
| e ) |
Definition at line 46 of file rxn_surface.c.
| #define NUM_ENV_PARAM_ 1 |
Definition at line 31 of file rxn_surface.c.
| #define NUM_FLOAT_PROP_ 3 |
Definition at line 30 of file rxn_surface.c.
| #define NUM_INT_PROP_ 3 |
Definition at line 29 of file rxn_surface.c.
| #define NUM_PROD_ int_data[2] |
Definition at line 27 of file rxn_surface.c.
| #define PHASE_FLOAT_LOC_ | ( | x | ) |
Definition at line 37 of file rxn_surface.c.
| #define PHASE_INT_LOC_ | ( | x | ) |
Definition at line 35 of file rxn_surface.c.
| #define PHASE_JAC_ID_ | ( | x, | |
| s, | |||
| e ) |
Definition at line 42 of file rxn_surface.c.
| #define PRESSURE_PA_ env_data[1] |
Definition at line 20 of file rxn_surface.c.
| #define PROD_ID_ | ( | x | ) |
Definition at line 32 of file rxn_surface.c.
| #define REACT_ID_ (int_data[1] - 1) |
Definition at line 26 of file rxn_surface.c.
| #define TEMPERATURE_K_ env_data[0] |
Definition at line 19 of file rxn_surface.c.
| #define YIELD_ | ( | x | ) |
Definition at line 44 of file rxn_surface.c.
| void rxn_surface_calc_deriv_contrib | ( | ModelData * | model_data, |
| TimeDerivative | time_deriv, | ||
| int * | rxn_int_data, | ||
| double * | rxn_float_data, | ||
| double * | rxn_env_data, | ||
| realtype | time_step ) |
Calculate contributions to the time derivative \(f(t,y)\) from this reaction.
| model_data | Pointer to the model data, including the state array |
| 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 203 of file rxn_surface.c.


| void rxn_surface_calc_jac_contrib | ( | ModelData * | model_data, |
| Jacobian | jac, | ||
| int * | rxn_int_data, | ||
| double * | rxn_float_data, | ||
| double * | rxn_env_data, | ||
| realtype | 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 264 of file rxn_surface.c.


| void rxn_surface_get_used_jac_elem | ( | ModelData * | model_data, |
| int * | rxn_int_data, | ||
| double * | rxn_float_data, | ||
| Jacobian * | jac ) |
Flag Jacobian elements used by this reaction.
| 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 |
| jac | Jacobian |
Definition at line 56 of file rxn_surface.c.


| void rxn_surface_print | ( | int * | rxn_int_data, |
| double * | rxn_float_data ) |
Print the surface reaction parameters.
| rxn_int_data | Pointer to the reaction integer data |
| rxn_float_data | Pointer to the reaction floating-point data |
Definition at line 363 of file rxn_surface.c.

| void rxn_surface_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 surface reactions this only involves calculating the mean speed of the reacting species
| 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 178 of file rxn_surface.c.

| void rxn_surface_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 132 of file rxn_surface.c.

