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 8 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is W in component ParaIPump (UnitRPM).
 * CONSTANTS[1] is Kp0 in component ParaIPump (UnitKp0).
 * CONSTANTS[2] is Kp1 in component ParaIPump (UnitKp1).
 * CONSTANTS[3] is Kp2 in component ParaIPump (UnitKp2).
 * CONSTANTS[4] is Kp3 in component ParaIPump (UnitKp3).
 * CONSTANTS[5] is Kp4 in component ParaIPump (UnitKp4).
 * CONSTANTS[6] is Kp5 in component ParaIPump (UnitKp5).
 * CONSTANTS[7] is Kp6 in component ParaIPump (UnitKp6).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 3600;
CONSTANTS[1] = 19.51840;
CONSTANTS[2] = -3.03610e-3;
CONSTANTS[3] = -1.23045;
CONSTANTS[4] = 5.78974e-4;
CONSTANTS[5] = -5.8777e-8;
CONSTANTS[6] = -1.27539e-6;
CONSTANTS[7] = 2.04834e-10;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}