CAMP 1.0.0
Chemistry Across Multiple Phases
|
Header file for abstract reaction functions. More...
Go to the source code of this file.
Functions | |
void | rxn_get_used_jac_elem (ModelData *model_data, Jacobian *jac) |
Get the Jacobian elements used by a particular reaction. | |
void | rxn_update_ids (ModelData *model_data, int *deriv_ids, Jacobian jac) |
Update the time derivative and Jacobian array ids. | |
void | rxn_update_env_state (ModelData *model_data) |
Update reaction data for new environmental state. | |
void | rxn_reset_state_adjustments (ModelData *model_data) |
void | rxn_adjust_state (ModelData *model_data) |
void | rxn_print_data (void *solver_data) |
Print the reaction data. | |
void | rxn_calc_deriv (ModelData *model_data, TimeDerivative time_deriv, double time_step) |
void | rxn_calc_deriv_specific_types (ModelData *model_data, TimeDerivative time_deriv, double time_step) |
void | rxn_calc_jac (ModelData *model_data, Jacobian jac, double time_step) |
void | rxn_calc_jac_specific_types (ModelData *model_data, Jacobian jac, double time_step) |
void | rxn_add_condensed_data (int rxn_type, int n_int_param, int n_float_param, int n_env_param, int *int_param, double *float_param, void *solver_data) |
Add condensed data to the condensed data block of memory. | |
void | rxn_update_data (int cell_id, int *rxn_id, int update_rxn_type, void *update_data, void *solver_data) |
Update reaction data. | |
void | rxn_free_update_data (void *update_data) |
Free an update data object. | |
Header file for abstract reaction functions.
Definition in file rxn_solver.h.
void rxn_add_condensed_data | ( | int | rxn_type, |
int | n_int_param, | ||
int | n_float_param, | ||
int | n_env_param, | ||
int * | int_param, | ||
double * | float_param, | ||
void * | solver_data | ||
) |
Add condensed data to the condensed data block of memory.
rxn_type | Reaction type |
n_int_param | Number of integer parameters |
n_float_param | Number of floating-point parameters |
n_env_param | Number of environment-dependent parameters |
int_param | Pointer to integer parameter array |
float_param | Pointer to floating-point parameter array |
solver_data | Pointer to solver data |
Definition at line 658 of file rxn_solver.c.
void rxn_adjust_state | ( | ModelData * | model_data | ) |
void rxn_calc_deriv | ( | ModelData * | model_data, |
TimeDerivative | time_deriv, | ||
double | time_step | ||
) |
void rxn_calc_deriv_specific_types | ( | ModelData * | model_data, |
TimeDerivative | time_deriv, | ||
double | time_step | ||
) |
void rxn_free_update_data | ( | void * | update_data | ) |
Free an update data object.
update_data | Object to free |
Definition at line 851 of file rxn_solver.c.
Get the Jacobian elements used by a particular reaction.
Public reaction functions
model_data | A pointer to the model data |
jac | Jacobian |
Definition at line 42 of file rxn_solver.c.
void rxn_print_data | ( | void * | solver_data | ) |
Print the reaction data.
solver_data | Pointer to the solver data |
Definition at line 769 of file rxn_solver.c.
void rxn_reset_state_adjustments | ( | ModelData * | model_data | ) |
void rxn_update_data | ( | int | cell_id, |
int * | rxn_id, | ||
int | update_rxn_type, | ||
void * | update_data, | ||
void * | solver_data | ||
) |
Update reaction data.
Update data for one or more reactions. Reactions of a certain type are passed a void pointer to updated data that must be in the format specified by the reaction type. This data could be used to find specific reactions of the specified type and, for example, update rate constants.
cell_id | Id of the grid cell to update |
rxn_id | Id of the reaction (or 0 if unknown) |
update_rxn_type | Type of the reaction |
update_data | Pointer to updated data to pass to the reaction |
solver_data | Pointer to solver data |
Definition at line 708 of file rxn_solver.c.
void rxn_update_env_state | ( | ModelData * | model_data | ) |
Update reaction data for new environmental state.
model_data | Pointer to the model data with updated env state |
Definition at line 224 of file rxn_solver.c.
Update the time derivative and Jacobian array ids.
model_data | Pointer to the model data |
deriv_ids | Ids for state variables on the time derivative array |
jac | Jacobian |
Definition at line 131 of file rxn_solver.c.