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 14 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is g_Na in component parameter_Ina (nS_per_pF).
 * CONSTANTS[1] is m_1 in component parameter_Ina (dimensionless).
 * CONSTANTS[2] is m_2 in component parameter_Ina (dimensionless).
 * CONSTANTS[3] is m_5 in component parameter_Ina (dimensionless).
 * CONSTANTS[4] is m_6 in component parameter_Ina (dimensionless).
 * CONSTANTS[5] is h_1 in component parameter_Ina (dimensionless).
 * CONSTANTS[6] is h_2 in component parameter_Ina (dimensionless).
 * CONSTANTS[7] is h_5 in component parameter_Ina (dimensionless).
 * CONSTANTS[8] is h_6 in component parameter_Ina (dimensionless).
 * CONSTANTS[9] is j_1 in component parameter_Ina (dimensionless).
 * CONSTANTS[10] is j_2 in component parameter_Ina (dimensionless).
 * CONSTANTS[11] is tau_m_const in component parameter_Ina (dimensionless).
 * CONSTANTS[12] is tau_h_const in component parameter_Ina (dimensionless).
 * CONSTANTS[13] is tau_j_const in component parameter_Ina (dimensionless).
 * There are a total of 0 condition variables.
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 9.720613;
CONSTANTS[1] = 108.045846;
CONSTANTS[2] = 13.10701573;
CONSTANTS[3] = 0.002326914;
CONSTANTS[4] = -7.91772628;
CONSTANTS[5] = 0.003626598;
CONSTANTS[6] = -19.8393588;
CONSTANTS[7] = 9663.294977;
CONSTANTS[8] = 7.395503564;
CONSTANTS[9] = 5.122571819999999e-4;
CONSTANTS[10] = -66.5837555;
CONSTANTS[11] = 0.031977580;
CONSTANTS[12] = 0.167331502;
CONSTANTS[13] = 0.951088724;
}
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)
{
}