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 11 entries in the constant variable array. */ /* * CONSTANTS[0] is Xr1_0 in component parameter_Ikr (nS_per_pF). * CONSTANTS[1] is Xr1_1 in component parameter_Ikr (dimensionless). * CONSTANTS[2] is Xr1_2 in component parameter_Ikr (dimensionless). * CONSTANTS[3] is Xr1_5 in component parameter_Ikr (dimensionless). * CONSTANTS[4] is Xr1_6 in component parameter_Ikr (dimensionless). * CONSTANTS[5] is Xr2_1 in component parameter_Ikr (dimensionless). * CONSTANTS[6] is Xr2_2 in component parameter_Ikr (dimensionless). * CONSTANTS[7] is Xr2_5 in component parameter_Ikr (dimensionless). * CONSTANTS[8] is Xr2_6 in component parameter_Ikr (dimensionless). * CONSTANTS[9] is Xr1_7 in component parameter_Ikr (dimensionless). * CONSTANTS[10] is Xr2_7 in component parameter_Ikr (dimensionless). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 0.218025; CONSTANTS[1] = 0.005748; CONSTANTS[2] = 13.62349; CONSTANTS[3] = 0.047630; CONSTANTS[4] = -7.06808; CONSTANTS[5] = 0.012456; CONSTANTS[6] = -25.99445; CONSTANTS[7] = 37.342633; CONSTANTS[8] = 22.091964; CONSTANTS[9] = 50; CONSTANTS[10] = 0; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }