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 17 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is ElaMax in component ParaHeartP (UnitE).
 * CONSTANTS[1] is ElaMin in component ParaHeartP (UnitE).
 * CONSTANTS[2] is PlaIni in component ParaHeartP (UnitP).
 * CONSTANTS[3] is VlaIni in component ParaHeartP (UnitV).
 * CONSTANTS[4] is ElvMax in component ParaHeartP (UnitE).
 * CONSTANTS[5] is ElvMin in component ParaHeartP (UnitE).
 * CONSTANTS[6] is PlvIni in component ParaHeartP (UnitP).
 * CONSTANTS[7] is VlvIni in component ParaHeartP (UnitV).
 * CONSTANTS[8] is T in component ParaHeartP (second).
 * CONSTANTS[9] is Tpwb in component ParaHeartP (dimensionless).
 * CONSTANTS[10] is Tpww in component ParaHeartP (dimensionless).
 * CONSTANTS[11] is Ts1 in component ParaHeartP (dimensionless).
 * CONSTANTS[12] is Ts2 in component ParaHeartP (dimensionless).
 * CONSTANTS[13] is CVao in component ParaHeartP (UnitCV).
 * CONSTANTS[14] is CVmi in component ParaHeartP (UnitCV).
 * CONSTANTS[15] is Vlv0 in component ParaHeartP (UnitV).
 * CONSTANTS[16] is Vla0 in component ParaHeartP (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] = 0.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
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)
{
}