CAMP 1.0.0
Chemistry Across Multiple Phases
|
Header file for aerosol phase functions. More...
Go to the source code of this file.
Functions | |
int | aero_phase_get_used_jac_elem (ModelData *model_data, int aero_phase_idx, int state_var_id, bool *jac_struct) |
Flag Jacobian elements used in calculations of mass and volume. | |
void | aero_phase_get_mass__kg_m3 (ModelData *model_data, int aero_phase_idx, double *state_var, double *mass, double *MW, double *jac_elem_mass, double *jac_elem_MW) |
Get the mass and average MW in an aerosol phase. | |
void | aero_phase_get_volume__m3_m3 (ModelData *model_data, int aero_phase_idx, double *state_var, double *volume, double *jac_elem) |
Get the volume of an aerosol phase. | |
void * | aero_phase_find (ModelData *model_data, int int_aero_phase_idx) |
void | aero_phase_print_data (void *solver_data) |
Print the aerosol phase data. | |
void | aero_phase_add_condensed_data (int n_int_param, int n_float_param, int *int_param, double *float_param, void *solver_data) |
Add condensed data to the condensed data block for aerosol phases. | |
Header file for aerosol phase functions.
Definition in file aero_phase_solver.h.
void aero_phase_add_condensed_data | ( | int | n_int_param, |
int | n_float_param, | ||
int * | int_param, | ||
double * | float_param, | ||
void * | solver_data | ||
) |
Add condensed data to the condensed data block for aerosol phases.
n_int_param | Number of integer parameters |
n_float_param | Number of floating-point parameters |
int_param | Pointer to the integer parameter array |
float_param | Pointer to the floating-point parameter array |
solver_data | Pointer to the solver data |
Definition at line 175 of file aero_phase_solver.c.
void * aero_phase_find | ( | ModelData * | model_data, |
int | int_aero_phase_idx | ||
) |
void aero_phase_get_mass__kg_m3 | ( | ModelData * | model_data, |
int | aero_phase_idx, | ||
double * | state_var, | ||
double * | mass, | ||
double * | MW, | ||
double * | jac_elem_mass, | ||
double * | jac_elem_MW | ||
) |
Get the mass and average MW in an aerosol phase.
model_data | Pointer to the model data (state, env, aero_phase) |
aero_phase_idx | Index of the aerosol phase to use in the calculation |
state_var | Pointer the aerosol phase on the state variable array |
mass | Pointer to hold total aerosol phase mass ( \(\mbox{\si{\kilogram\per\cubic\metre}}\) or \(\mbox{\si{\kilogram\per particle}}\)) |
MW | Pointer to hold average MW of the aerosol phase ( \(\mbox{\si{\kilogram\per\mol}}\)) |
jac_elem_mass | When not NULL, a pointer to an array whose length is the number of Jacobian elements used in calculations of mass and volume of this aerosol phase returned by aero_phase_get_used_jac_elem and whose contents will be set to the partial derivatives of mass by concentration \(\frac{dm}{dy_i}\) of each component species \(y_i\). |
jac_elem_MW | When not NULL, a pointer to an array whose length is the number of Jacobian elements used in calculations of mass and volume of this aerosol phase returned by aero_phase_get_used_jac_elem and whose contents will be set to the partial derivatives of total molecular weight by concentration \(\frac{dMW}{dy_i}\) of each component species \(y_i\). |
Definition at line 93 of file aero_phase_solver.c.
int aero_phase_get_used_jac_elem | ( | ModelData * | model_data, |
int | aero_phase_idx, | ||
int | state_var_id, | ||
bool * | jac_struct | ||
) |
Flag Jacobian elements used in calculations of mass and volume.
model_data | Pointer to the model data(state, env, aero_phase) |
aero_phase_idx | Index of the aerosol phase to find elements for |
state_var_id | Index in the state array for this aerosol phase |
jac_struct | 1D array of flags indicating potentially non-zero Jacobian elements. (The dependent variable should have been chosen by the calling function.) |
Definition at line 46 of file aero_phase_solver.c.
void aero_phase_get_volume__m3_m3 | ( | ModelData * | model_data, |
int | aero_phase_idx, | ||
double * | state_var, | ||
double * | volume, | ||
double * | jac_elem | ||
) |
Get the volume of an aerosol phase.
model_data | Pointer to the model data (state, env, aero_phase) |
aero_phase_idx | Index of the aerosol phase to use in the calculation |
state_var | Pointer to the aerosol phase on the state variable array |
volume | Pointer to hold the aerosol phase volume ( \(\mbox{\si{\cubic\metre\per\cubic\metre}}\) or \(\mbox{\si{\cubic\metre\per particle}}\)) |
jac_elem | When not NULL, a pointer to an array whose length is the number of Jacobian elements used in calculations of mass and volume of this aerosol phase returned by aero_phase_get_used_jac_elem and whose contents will be set to the partial derivatives of total phase volume by concentration \(\frac{dv}{dy_i}\) of each component species \(y_i\). |
Definition at line 144 of file aero_phase_solver.c.
void aero_phase_print_data | ( | void * | solver_data | ) |
Print the aerosol phase data.
solver_data | Pointer to the solver data |
Definition at line 210 of file aero_phase_solver.c.