CAMP 1.0.0
Chemistry Across Multiple Phases
|
Functions of the time derivative structure. More...
Go to the source code of this file.
Functions | |
int | time_derivative_initialize (TimeDerivative *time_deriv, unsigned int num_spec) |
Initialize the derivative. | |
void | time_derivative_reset (TimeDerivative time_deriv) |
Reset the derivative. | |
void | time_derivative_output (TimeDerivative time_deriv, double *dest_array, double *deriv_est, unsigned int output_precision) |
Output the current derivative array. | |
void | time_derivative_add_value (TimeDerivative time_deriv, unsigned int spec_id, long double rate_contribution) |
Add a contribution to the time derivative. | |
void | time_derivative_free (TimeDerivative time_deriv) |
Free memory associated with a TimeDerivative. | |
Functions of the time derivative structure.
Definition in file time_derivative.c.
void time_derivative_add_value | ( | TimeDerivative | time_deriv, |
unsigned int | spec_id, | ||
long double | rate_contribution | ||
) |
Add a contribution to the time derivative.
time_deriv | TimeDerivative object |
spec_id | Index of the species to update rates for |
rate_contribution | Value to add to the time derivative for speces spec_id |
Definition at line 90 of file time_derivative.c.
void time_derivative_free | ( | TimeDerivative | time_deriv | ) |
Free memory associated with a TimeDerivative.
time_deriv | TimeDerivative object |
Definition at line 105 of file time_derivative.c.
int time_derivative_initialize | ( | TimeDerivative * | time_deriv, |
unsigned int | num_spec | ||
) |
Initialize the derivative.
time_deriv | Pointer to the TimeDerivative object |
num_spec | Number of species to include in the derivative |
Definition at line 15 of file time_derivative.c.
void time_derivative_output | ( | TimeDerivative | time_deriv, |
double * | dest_array, | ||
double * | deriv_est, | ||
unsigned int | output_precision | ||
) |
Output the current derivative array.
time_deriv | TimeDerivative object |
dest_array | Pointer to the destination array |
deriv_est | Pointer to an estimate of the derivative array (optional) |
output_precision | Output the estimated loss of precision for each species if output_precision == 1 |
Definition at line 46 of file time_derivative.c.
void time_derivative_reset | ( | TimeDerivative | time_deriv | ) |
Reset the derivative.
time_deriv | TimeDerivative object |
Definition at line 39 of file time_derivative.c.