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 15 entries in the constant variable array. */ /* * CONSTANTS[0] is Rsas in component ParaSys (UnitR). * CONSTANTS[1] is Csas in component ParaSys (UnitC). * CONSTANTS[2] is Lsas in component ParaSys (UnitL). * CONSTANTS[3] is P0sas in component ParaSys (UnitP). * CONSTANTS[4] is Q0sas in component ParaSys (UnitQ). * CONSTANTS[5] is Rsat in component ParaSys (UnitR). * CONSTANTS[6] is Csat in component ParaSys (UnitC). * CONSTANTS[7] is Lsat in component ParaSys (UnitL). * CONSTANTS[8] is P0sat in component ParaSys (UnitP). * CONSTANTS[9] is Q0sat in component ParaSys (UnitQ). * CONSTANTS[10] is Rsar in component ParaSys (UnitR). * CONSTANTS[11] is Rscp in component ParaSys (UnitR). * CONSTANTS[12] is Rsvn in component ParaSys (UnitR). * CONSTANTS[13] is Csvn in component ParaSys (UnitC). * CONSTANTS[14] is P0svn in component ParaSys (UnitP). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 0.003; CONSTANTS[1] = 0.08; CONSTANTS[2] = 0.000062; CONSTANTS[3] = 100.; CONSTANTS[4] = 0.; CONSTANTS[5] = 0.05; CONSTANTS[6] = 1.6; CONSTANTS[7] = 0.0017; CONSTANTS[8] = 100.; CONSTANTS[9] = 0.; CONSTANTS[10] = 0.5; CONSTANTS[11] = 0.52; CONSTANTS[12] = 0.075; CONSTANTS[13] = 20.5; CONSTANTS[14] = 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) { }