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 7 entries in each of the rate and state variable arrays. There are a total of 27 entries in the constant variable array. */ /* * VOI is time in component environment (second). * STATES[0] is G_a in component G_a (micromolar). * CONSTANTS[0] is k1 in component model_parameters (dimensionless). * CONSTANTS[1] is k2 in component model_parameters (dimensionless). * CONSTANTS[2] is k3 in component model_parameters (dimensionless). * STATES[1] is PLC in component PLC (micromolar). * STATES[2] is Ca_cyt in component Ca_cyt (micromolar). * CONSTANTS[3] is K4 in component model_parameters (dimensionless). * CONSTANTS[4] is k5 in component model_parameters (dimensionless). * CONSTANTS[5] is K6 in component model_parameters (dimensionless). * CONSTANTS[6] is k7 in component model_parameters (dimensionless). * CONSTANTS[7] is k8 in component model_parameters (dimensionless). * CONSTANTS[8] is K9 in component model_parameters (dimensionless). * STATES[3] is Ca_ER in component Ca_ER (micromolar). * CONSTANTS[9] is k10 in component model_parameters (dimensionless). * CONSTANTS[10] is K11 in component model_parameters (dimensionless). * CONSTANTS[11] is k16 in component model_parameters (dimensionless). * CONSTANTS[12] is K17 in component model_parameters (dimensionless). * STATES[4] is Ca_mit in component Ca_mit (micromolar). * CONSTANTS[13] is k18 in component model_parameters (dimensionless). * CONSTANTS[14] is K19 in component model_parameters (dimensionless). * CONSTANTS[15] is k20 in component model_parameters (dimensionless). * CONSTANTS[16] is K21 in component model_parameters (dimensionless). * CONSTANTS[17] is k12 in component model_parameters (dimensionless). * CONSTANTS[18] is k13 in component model_parameters (dimensionless). * CONSTANTS[19] is k14 in component model_parameters (dimensionless). * CONSTANTS[20] is K15 in component model_parameters (dimensionless). * STATES[5] is Enz in component Enz (micromolar). * CONSTANTS[21] is k_act in component Enz (dimensionless). * CONSTANTS[22] is K_M in component Enz (dimensionless). * CONSTANTS[23] is k_inact in component Enz (dimensionless). * CONSTANTS[24] is p in component Enz (dimensionless). * STATES[6] is Pro in component Pro (micromolar). * CONSTANTS[25] is k_enz in component Pro (dimensionless). * CONSTANTS[26] is k_rem in component Pro (dimensionless). * RATES[0] is d/dt G_a in component G_a (micromolar). * RATES[1] is d/dt PLC in component PLC (micromolar). * RATES[3] is d/dt Ca_ER in component Ca_ER (micromolar). * RATES[4] is d/dt Ca_mit in component Ca_mit (micromolar). * RATES[2] is d/dt Ca_cyt in component Ca_cyt (micromolar). * RATES[5] is d/dt Enz in component Enz (micromolar). * RATES[6] is d/dt Pro in component Pro (micromolar). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { STATES[0] = 0.01; CONSTANTS[0] = 0.55; CONSTANTS[1] = 0; CONSTANTS[2] = 0.0001; STATES[1] = 0.01; STATES[2] = 0.01; CONSTANTS[3] = 0.783; CONSTANTS[4] = 1.24; CONSTANTS[5] = 0.7; CONSTANTS[6] = 5.82; CONSTANTS[7] = 32.24; CONSTANTS[8] = 29.09; STATES[3] = 10; CONSTANTS[9] = 0.93; CONSTANTS[10] = 2.667; CONSTANTS[11] = 20.9; CONSTANTS[12] = 0.05; STATES[4] = 0.001; CONSTANTS[13] = 79; CONSTANTS[14] = 2; CONSTANTS[15] = 1.5; CONSTANTS[16] = 1.5; CONSTANTS[17] = 0.76; CONSTANTS[18] = 0; CONSTANTS[19] = 149; CONSTANTS[20] = 0.16; STATES[5] = 0; CONSTANTS[21] = 0.1; CONSTANTS[22] = 0.02; CONSTANTS[23] = 0.043; CONSTANTS[24] = 4; STATES[6] = 0; CONSTANTS[25] = 3; CONSTANTS[26] = 3; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[0] = ((CONSTANTS[0]+ CONSTANTS[1]*STATES[0]) - ( CONSTANTS[2]*STATES[0]*STATES[1])/(STATES[0]+CONSTANTS[3])) - ( CONSTANTS[4]*STATES[2]*STATES[0])/(STATES[0]+CONSTANTS[5]); RATES[1] = CONSTANTS[6]*STATES[0] - ( CONSTANTS[7]*STATES[1])/(STATES[1]+CONSTANTS[8]); RATES[3] = - (STATES[3] - STATES[2])*(( CONSTANTS[9]*STATES[2]*pow(STATES[1], 4.00000))/(pow(STATES[1], 4.00000)+pow(CONSTANTS[10], 4.00000)))+( CONSTANTS[11]*STATES[2])/(STATES[2]+CONSTANTS[12]); RATES[4] = ( CONSTANTS[13]*pow(STATES[2], 8.00000))/(pow(CONSTANTS[14], 8.00000)+pow(STATES[2], 8.00000)) - (STATES[4] - STATES[2])*(( CONSTANTS[15]*STATES[2])/(STATES[2]+CONSTANTS[16])); RATES[2] = (((( (STATES[3] - STATES[2])*(( CONSTANTS[9]*STATES[2]*pow(STATES[1], 4.00000))/(pow(STATES[1], 4.00000)+pow(CONSTANTS[10], 4.00000)))+ CONSTANTS[17]*STATES[1]+ CONSTANTS[18]*STATES[0]) - ( CONSTANTS[19]*STATES[2])/(CONSTANTS[20]+STATES[2])) - ( CONSTANTS[11]*STATES[2])/(CONSTANTS[12]+STATES[2])) - ( CONSTANTS[13]*pow(STATES[2], 8.00000))/(pow(CONSTANTS[14], 8.00000)+pow(STATES[2], 8.00000)))+ (STATES[4] - STATES[2])*(( CONSTANTS[15]*STATES[2])/(STATES[2]+CONSTANTS[16])); RATES[5] = ( CONSTANTS[21]*pow(STATES[2], CONSTANTS[24]))/(pow(CONSTANTS[22], CONSTANTS[24])+pow(STATES[2], CONSTANTS[24])) - CONSTANTS[23]*STATES[5]; RATES[6] = CONSTANTS[25]*STATES[5] - CONSTANTS[26]*STATES[6]; } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }