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 9 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is var_1 in component parameter_Ik1 (nS_per_pF).
 * CONSTANTS[1] is var_2 in component parameter_Ik1 (per_ms).
 * CONSTANTS[2] is var_3 in component parameter_Ik1 (mV).
 * CONSTANTS[3] is var_4 in component parameter_Ik1 (mV).
 * CONSTANTS[4] is var_5 in component parameter_Ik1 (mV_ms).
 * CONSTANTS[5] is var_6 in component parameter_Ik1 (mV).
 * CONSTANTS[6] is R in component parameter_Ik1 (J_per_mol_per_kelvin).
 * CONSTANTS[7] is T in component parameter_Ik1 (kelvin).
 * CONSTANTS[8] is F in component parameter_Ik1 (C_per_mol).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.133785;
CONSTANTS[1] = 0.4780;
CONSTANTS[2] = 27.2428;
CONSTANTS[3] = 4.9250;
CONSTANTS[4] = 8.7222;
CONSTANTS[5] = 56.6362;
CONSTANTS[6] = 8.314472;
CONSTANTS[7] = 310.0;
CONSTANTS[8] = 96.4853415;
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}