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 10 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is QLO in component heart_rate_and_stroke_volume (L_per_minute).
 * CONSTANTS[1] is AUR in component heart_rate_and_stroke_volume (dimensionless).
 * CONSTANTS[2] is PRA in component heart_rate_and_stroke_volume (mmHg).
 * CONSTANTS[3] is HMD in component heart_rate_and_stroke_volume (dimensionless).
 * CONSTANTS[5] is AUHR in component effect_of_autonomic_stimulation_on_HR (beats_per_minute).
 * CONSTANTS[6] is PRHR in component effect_of_PRA_on_HR (beats_per_minute).
 * CONSTANTS[4] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[7] is HDHR in component effect_of_heart_deterioration_on_HR (dimensionless).
 * CONSTANTS[8] is HR in component heart_rate (beats_per_minute).
 * CONSTANTS[9] is SVO in component stroke_volume_output (litre).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 4.9943;
CONSTANTS[1] = 1.30;
CONSTANTS[2] = 0.00852183;
CONSTANTS[3] = 1.0;
CONSTANTS[4] = 0;
CONSTANTS[5] =  72.0000*CONSTANTS[1];
CONSTANTS[6] =  pow(CONSTANTS[4], 0.500000)*5.00000;
CONSTANTS[7] =  (CONSTANTS[3] - 1.00000)*0.500000+1.00000;
CONSTANTS[8] =  (CONSTANTS[5]+CONSTANTS[6])*CONSTANTS[7];
CONSTANTS[9] = CONSTANTS[0]/CONSTANTS[8];
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}