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 18 entries in the constant variable array. */ /* * CONSTANTS[0] is E11 in component interface (strain). * CONSTANTS[1] is E22 in component interface (strain). * CONSTANTS[2] is E33 in component interface (strain). * CONSTANTS[3] is E12 in component interface (strain). * CONSTANTS[4] is E13 in component interface (strain). * CONSTANTS[5] is E23 in component interface (strain). * CONSTANTS[6] is c1 in component interface (strain). * CONSTANTS[7] is c2 in component interface (strain). * CONSTANTS[8] is c3 in component interface (strain). * CONSTANTS[9] is c4 in component interface (strain). * CONSTANTS[10] is c5 in component interface (strain). * CONSTANTS[12] is Tdev11 in component equations (stress). * CONSTANTS[13] is Tdev22 in component equations (stress). * CONSTANTS[14] is Tdev33 in component equations (stress). * CONSTANTS[15] is Tdev12 in component equations (stress). * CONSTANTS[16] is Tdev13 in component equations (stress). * CONSTANTS[17] is Tdev23 in component equations (stress). * CONSTANTS[11] is Q in component equations (strain). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 0; CONSTANTS[1] = 0; CONSTANTS[2] = 0; CONSTANTS[3] = 0; CONSTANTS[4] = 0; CONSTANTS[5] = 0; CONSTANTS[6] = 0.88; CONSTANTS[7] = 0; CONSTANTS[8] = 18.5; CONSTANTS[9] = 3.58; CONSTANTS[10] = 3.26; CONSTANTS[11] = 2.00000*CONSTANTS[7]*(CONSTANTS[0]+CONSTANTS[1]+CONSTANTS[2])+ CONSTANTS[8]*pow(CONSTANTS[0], 2.00000)+ CONSTANTS[9]*(pow(CONSTANTS[2], 2.00000)+pow(CONSTANTS[1], 2.00000)+ pow(CONSTANTS[5], 2.00000)*2.00000)+ 2.00000*CONSTANTS[10]*(pow(CONSTANTS[4], 2.00000)+pow(CONSTANTS[3], 2.00000)); CONSTANTS[12] = CONSTANTS[6]*exp(CONSTANTS[11])*(CONSTANTS[7]+ CONSTANTS[8]*CONSTANTS[0]); CONSTANTS[13] = CONSTANTS[6]*exp(CONSTANTS[11])*(CONSTANTS[7]+ CONSTANTS[9]*CONSTANTS[1]); CONSTANTS[14] = CONSTANTS[6]*exp(CONSTANTS[11])*(CONSTANTS[7]+ CONSTANTS[9]*CONSTANTS[2]); CONSTANTS[15] = CONSTANTS[6]*exp(CONSTANTS[11])*CONSTANTS[10]*CONSTANTS[3]; CONSTANTS[16] = CONSTANTS[6]*exp(CONSTANTS[11])*CONSTANTS[10]*CONSTANTS[4]; CONSTANTS[17] = CONSTANTS[6]*exp(CONSTANTS[11])*CONSTANTS[9]*CONSTANTS[5]; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }