Generated Code

The following is c_ida 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 29 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is ElaMax in component ParaHeart (UnitE).
 * CONSTANTS[1] is ElaMin in component ParaHeart (UnitE).
 * CONSTANTS[2] is PlaIni in component ParaHeart (UnitP).
 * CONSTANTS[3] is VlaIni in component ParaHeart (UnitV).
 * CONSTANTS[4] is ElvMax in component ParaHeart (UnitE).
 * CONSTANTS[5] is ElvMin in component ParaHeart (UnitE).
 * CONSTANTS[6] is PlvIni in component ParaHeart (UnitP).
 * CONSTANTS[7] is VlvIni in component ParaHeart (UnitV).
 * CONSTANTS[8] is EraMax in component ParaHeart (UnitE).
 * CONSTANTS[9] is EraMin in component ParaHeart (UnitE).
 * CONSTANTS[10] is PraIni in component ParaHeart (UnitP).
 * CONSTANTS[11] is VraIni in component ParaHeart (UnitV).
 * CONSTANTS[12] is ErvMax in component ParaHeart (UnitE).
 * CONSTANTS[13] is ErvMin in component ParaHeart (UnitE).
 * CONSTANTS[14] is PrvIni in component ParaHeart (UnitP).
 * CONSTANTS[15] is VrvIni in component ParaHeart (UnitV).
 * CONSTANTS[16] is T in component ParaHeart (second).
 * CONSTANTS[17] is Tpwb in component ParaHeart (dimensionless).
 * CONSTANTS[18] is Tpww in component ParaHeart (dimensionless).
 * CONSTANTS[19] is Ts1 in component ParaHeart (dimensionless).
 * CONSTANTS[20] is Ts2 in component ParaHeart (dimensionless).
 * CONSTANTS[21] is CVao in component ParaHeart (UnitCV).
 * CONSTANTS[22] is CVmi in component ParaHeart (UnitCV).
 * CONSTANTS[23] is CVpa in component ParaHeart (UnitCV).
 * CONSTANTS[24] is CVti in component ParaHeart (UnitCV).
 * CONSTANTS[25] is Vlv0 in component ParaHeart (UnitV).
 * CONSTANTS[26] is Vla0 in component ParaHeart (UnitV).
 * CONSTANTS[27] is Vra0 in component ParaHeart (UnitV).
 * CONSTANTS[28] is Vrv0 in component ParaHeart (UnitV).
 * There are a total of 0 condition variables.
 */
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] = 0.25;
CONSTANTS[9] = 0.15;
CONSTANTS[10] = 1.0;
CONSTANTS[11] = 4.0;
CONSTANTS[12] = 1.15;
CONSTANTS[13] = 0.1;
CONSTANTS[14] = 1.0;
CONSTANTS[15] = 10.0;
CONSTANTS[16] = 1.0;
CONSTANTS[17] = 0.92;
CONSTANTS[18] = 0.09;
CONSTANTS[19] = 0.3;
CONSTANTS[20] = 0.45;
CONSTANTS[21] = 350.;
CONSTANTS[22] = 400.;
CONSTANTS[23] = 350.;
CONSTANTS[24] = 400.;
CONSTANTS[25] = 500;
CONSTANTS[26] = 20;
CONSTANTS[27] = 20;
CONSTANTS[28] = 500;
}
void
computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
                 double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
getStateInformation(double* SI)
{
}
void
computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
             double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
}