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 17 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is ElaMax in component ParaLeftHeart (UnitE).
 * CONSTANTS[1] is ElaMin in component ParaLeftHeart (UnitE).
 * CONSTANTS[2] is PlaIni in component ParaLeftHeart (UnitP).
 * CONSTANTS[3] is VlaIni in component ParaLeftHeart (UnitV).
 * CONSTANTS[4] is ElvMax in component ParaLeftHeart (UnitE).
 * CONSTANTS[5] is ElvMin in component ParaLeftHeart (UnitE).
 * CONSTANTS[6] is PlvIni in component ParaLeftHeart (UnitP).
 * CONSTANTS[7] is VlvIni in component ParaLeftHeart (UnitV).
 * CONSTANTS[8] is T in component ParaLeftHeart (second).
 * CONSTANTS[9] is Tpwb in component ParaLeftHeart (dimensionless).
 * CONSTANTS[10] is Tpww in component ParaLeftHeart (dimensionless).
 * CONSTANTS[11] is Ts1 in component ParaLeftHeart (dimensionless).
 * CONSTANTS[12] is Ts2 in component ParaLeftHeart (dimensionless).
 * CONSTANTS[13] is CVao in component ParaLeftHeart (UnitCV).
 * CONSTANTS[14] is CVmi in component ParaLeftHeart (UnitCV).
 * CONSTANTS[15] is Vlv0 in component ParaLeftHeart (UnitV).
 * CONSTANTS[16] is Vla0 in component ParaLeftHeart (UnitV).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.25;
CONSTANTS[1] = 0.15;
CONSTANTS[2] = 1.0;
CONSTANTS[3] = 4.0;
CONSTANTS[4] = 2.5;
CONSTANTS[5] = 0.1;
CONSTANTS[6] = 1.0;
CONSTANTS[7] = 5.0;
CONSTANTS[8] = 1.0;
CONSTANTS[9] = 0.92;
CONSTANTS[10] = 0.09;
CONSTANTS[11] = 0.3;
CONSTANTS[12] = 0.45;
CONSTANTS[13] = 350.;
CONSTANTS[14] = 400.;
CONSTANTS[15] = 500;
CONSTANTS[16] = 20;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}