hips
Loading...
Searching...
No Matches
batchReactor_cvode.cc File Reference

Go to the source code of this file.

Functions

int rhsf_cvode (sunrealtype t, N_Vector varsCV, N_Vector dvarsdtCV, void *user_data)
 Callback function for the right-hand side of the ODE system used by CVODE.
 

Function Documentation

◆ rhsf_cvode()

int rhsf_cvode ( sunrealtype t,
N_Vector varsCV,
N_Vector dvarsdtCV,
void * user_data )

Callback function for the right-hand side of the ODE system used by CVODE.

This function calculates the right-hand side of the ODE system.

Parameters
tCurrent time.
varsCVN_Vector containing the variables (species concentrations).
dvarsdtCVN_Vector containing the derivatives of the variables with respect to time.
user_dataPointer to the user-defined data (batchReactor_cvode instance).
Returns
0 on success.

This function is called by CVODE, which in turn calls the rhsf method of the batchReactor_cvode instance.

Parameters
tCurrent time.
varsCVN_Vector containing the variables (species concentrations).
dvarsdtCVN_Vector containing the derivatives of the variables with respect to time.
user_dataPointer to the user-defined data (batchReactor_cvode instance).
Returns
0 on success.

Definition at line 104 of file batchReactor_cvode.cc.