Generated Code

The following is c code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

/*
   There are a total of 0 entries in the algebraic variable array.
   There are a total of 0 entries in each of the rate and state variable arrays.
   There are a total of 4 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is Rc in component ParaWestkessel (UnitR).
 * CONSTANTS[1] is Cv in component ParaWestkessel (UnitC).
 * CONSTANTS[2] is Rv in component ParaWestkessel (UnitR).
 * CONSTANTS[3] is P0v in component ParaWestkessel (UnitP).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.005;
CONSTANTS[1] = 2.6;
CONSTANTS[2] = 0.65;
CONSTANTS[3] = 0.;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}