|
CAMP 1.0.0
Chemistry Across Multiple Phases
|
PDFiTE Activity sub model 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_PHASE_ (int_data[0]) |
| #define | GAS_WATER_ID_ (int_data[1] - 1) |
| #define | NUM_ION_PAIRS_ (int_data[2]) |
| #define | INT_DATA_SIZE_ (int_data[3]) |
| #define | FLOAT_DATA_SIZE_ (int_data[4]) |
| #define | PPM_TO_RH_ (sub_model_env_data[0]) |
| #define | NUM_INT_PROP_ 5 |
| #define | NUM_REAL_PROP_ 0 |
| #define | NUM_ENV_PARAM_ 1 |
| #define | PHASE_ID_(x) |
| #define | PAIR_INT_PARAM_LOC_(x) |
| #define | PAIR_FLOAT_PARAM_LOC_(x) |
| #define | ION_PAIR_ACT_ID_(x) |
| #define | NUM_CATION_(x) |
| #define | NUM_ANION_(x) |
| #define | CATION_ID_(x) |
| #define | ANION_ID_(x) |
| #define | NUM_INTER_(x) |
| #define | JAC_WATER_ID_(p, x) |
| #define | JAC_CATION_ID_(p, x, y) |
| #define | JAC_ANION_ID_(p, x, y) |
| #define | NUM_B_(x, y) |
| #define | INTER_SPEC_ID_(x, y) |
| #define | INTER_SPEC_LOC_(x, y) |
| #define | CATION_MW_(x) |
| #define | ANION_MW_(x) |
| #define | CATION_N_(x) |
| #define | ANION_N_(x) |
| #define | MIN_RH_(x, y) |
| #define | MAX_RH_(x, y) |
| #define | B_Z_(x, y, z) |
Functions | |
| void | sub_model_PDFiTE_get_used_jac_elem (int *sub_model_int_data, double *sub_model_float_data, Jacobian *jac) |
| Flag Jacobian elements used by this sub model. | |
| void | sub_model_PDFiTE_update_ids (int *sub_model_int_data, double *sub_model_float_data, int *deriv_ids, Jacobian jac) |
| Update the time derivative and Jacbobian array indices. | |
| void | sub_model_PDFiTE_update_env_state (int *sub_model_int_data, double *sub_model_float_data, double *sub_model_env_data, ModelData *model_data) |
| Update sub model data for new environmental conditions. | |
| void | sub_model_PDFiTE_calculate (int *sub_model_int_data, double *sub_model_float_data, double *sub_model_env_data, ModelData *model_data) |
| Perform the sub-model calculations for the current model state. | |
| void | sub_model_PDFiTE_get_jac_contrib (int *sub_model_int_data, double *sub_model_float_data, double *sub_model_env_data, ModelData *model_data, realtype *J, double time_step) |
| Add contributions to the Jacobian from derivates calculated using the output of this sub model. | |
| void | sub_model_PDFiTE_print (int *sub_model_int_data, double *sub_model_float_data) |
| Print the PDFiTE Activity sub model parameters. | |
PDFiTE Activity sub model solver functions.
Definition in file sub_model_PDFiTE.c.
| #define ANION_ID_ | ( | x | ) |
Definition at line 38 of file sub_model_PDFiTE.c.
| #define ANION_MW_ | ( | x | ) |
Definition at line 58 of file sub_model_PDFiTE.c.
| #define ANION_N_ | ( | x | ) |
Definition at line 60 of file sub_model_PDFiTE.c.
| #define B_Z_ | ( | x, | |
| y, | |||
| z ) |
Definition at line 63 of file sub_model_PDFiTE.c.
| #define CATION_ID_ | ( | x | ) |
Definition at line 37 of file sub_model_PDFiTE.c.
| #define CATION_MW_ | ( | x | ) |
Definition at line 57 of file sub_model_PDFiTE.c.
| #define CATION_N_ | ( | x | ) |
Definition at line 59 of file sub_model_PDFiTE.c.
| #define FLOAT_DATA_SIZE_ (int_data[4]) |
Definition at line 25 of file sub_model_PDFiTE.c.
| #define GAS_WATER_ID_ (int_data[1] - 1) |
Definition at line 22 of file sub_model_PDFiTE.c.
| #define INT_DATA_SIZE_ (int_data[3]) |
Definition at line 24 of file sub_model_PDFiTE.c.
| #define INTER_SPEC_ID_ | ( | x, | |
| y ) |
Definition at line 49 of file sub_model_PDFiTE.c.
| #define INTER_SPEC_LOC_ | ( | x, | |
| y ) |
Definition at line 53 of file sub_model_PDFiTE.c.
| #define ION_PAIR_ACT_ID_ | ( | x | ) |
Definition at line 34 of file sub_model_PDFiTE.c.
| #define JAC_ANION_ID_ | ( | p, | |
| x, | |||
| y ) |
Definition at line 43 of file sub_model_PDFiTE.c.
| #define JAC_CATION_ID_ | ( | p, | |
| x, | |||
| y ) |
Definition at line 41 of file sub_model_PDFiTE.c.
| #define JAC_WATER_ID_ | ( | p, | |
| x ) |
Definition at line 40 of file sub_model_PDFiTE.c.
| #define MAX_RH_ | ( | x, | |
| y ) |
Definition at line 62 of file sub_model_PDFiTE.c.
| #define MIN_RH_ | ( | x, | |
| y ) |
Definition at line 61 of file sub_model_PDFiTE.c.
| #define NUM_ANION_ | ( | x | ) |
Definition at line 36 of file sub_model_PDFiTE.c.
| #define NUM_B_ | ( | x, | |
| y ) |
Definition at line 46 of file sub_model_PDFiTE.c.
| #define NUM_CATION_ | ( | x | ) |
Definition at line 35 of file sub_model_PDFiTE.c.
| #define NUM_ENV_PARAM_ 1 |
Definition at line 29 of file sub_model_PDFiTE.c.
| #define NUM_INT_PROP_ 5 |
Definition at line 27 of file sub_model_PDFiTE.c.
| #define NUM_INTER_ | ( | x | ) |
Definition at line 39 of file sub_model_PDFiTE.c.
| #define NUM_ION_PAIRS_ (int_data[2]) |
Definition at line 23 of file sub_model_PDFiTE.c.
| #define NUM_PHASE_ (int_data[0]) |
Definition at line 21 of file sub_model_PDFiTE.c.
| #define NUM_REAL_PROP_ 0 |
Definition at line 28 of file sub_model_PDFiTE.c.
| #define PAIR_FLOAT_PARAM_LOC_ | ( | x | ) |
Definition at line 32 of file sub_model_PDFiTE.c.
| #define PAIR_INT_PARAM_LOC_ | ( | x | ) |
Definition at line 31 of file sub_model_PDFiTE.c.
| #define PHASE_ID_ | ( | x | ) |
Definition at line 30 of file sub_model_PDFiTE.c.
| #define PPM_TO_RH_ (sub_model_env_data[0]) |
Definition at line 26 of file sub_model_PDFiTE.c.
| #define PRESSURE_PA_ env_data[1] |
Definition at line 19 of file sub_model_PDFiTE.c.
| #define TEMPERATURE_K_ env_data[0] |
Definition at line 18 of file sub_model_PDFiTE.c.
| void sub_model_PDFiTE_calculate | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data, | ||
| double * | sub_model_env_data, | ||
| ModelData * | model_data ) |
Perform the sub-model calculations for the current model state.
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
| sub_model_env_data | Pointer to the sub model environment-dependent data |
| model_data | Pointer to the model data including the current state and environmental conditions |
Definition at line 167 of file sub_model_PDFiTE.c.

| void sub_model_PDFiTE_get_jac_contrib | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data, | ||
| double * | sub_model_env_data, | ||
| ModelData * | model_data, | ||
| realtype * | J, | ||
| double | time_step ) |
Add contributions to the Jacobian from derivates calculated using the output of this sub model.
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
| sub_model_env_data | Pointer to the sub model environment-dependent data |
| model_data | Pointer to the model data |
| J | Jacobian to be calculated |
| time_step | Current time step in [s] |
Definition at line 277 of file sub_model_PDFiTE.c.

| void sub_model_PDFiTE_get_used_jac_elem | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data, | ||
| Jacobian * | jac ) |
Flag Jacobian elements used by this sub model.
activity sub models are assumed to be at equilibrium
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
| jac | Jacobian |
Definition at line 73 of file sub_model_PDFiTE.c.


| void sub_model_PDFiTE_print | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data ) |
Print the PDFiTE Activity sub model parameters.
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
Definition at line 462 of file sub_model_PDFiTE.c.

| void sub_model_PDFiTE_update_env_state | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data, | ||
| double * | sub_model_env_data, | ||
| ModelData * | model_data ) |
Update sub model data for new environmental conditions.
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
| sub_model_env_data | Pointer to the sub model environment-dependent data |
| model_data | Pointer to the model data |
Definition at line 137 of file sub_model_PDFiTE.c.

| void sub_model_PDFiTE_update_ids | ( | int * | sub_model_int_data, |
| double * | sub_model_float_data, | ||
| int * | deriv_ids, | ||
| Jacobian | jac ) |
Update the time derivative and Jacbobian array indices.
activity sub models are assumed to be at equilibrium
| sub_model_int_data | Pointer to the sub model integer data |
| sub_model_float_data | Pointer to the sub model floating-point data |
| deriv_ids | Indices for state array variables on the solver state array |
| jac | Jacobian |
Definition at line 105 of file sub_model_PDFiTE.c.

