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 13 entries in each of the rate and state variable arrays. There are a total of 24 entries in the constant variable array. */ /* * VOI is t in component environment (s). * CONSTANTS[0] is kf1 in component EGF_EGFRtoEGFEGFR (per_um_s). * CONSTANTS[1] is kb1 in component EGF_EGFRtoEGFEGFR (per_s). * CONSTANTS[2] is kf2 in component EGF_EGFRtoEGFEGFR (per_s). * CONSTANTS[3] is kb2 in component EGF_EGFRtoEGFEGFR (per_s). * STATES[0] is EGF in component EGF_EGFRtoEGFEGFR (um). * STATES[1] is EGFR in component EGF_EGFRtoEGFEGFR (um). * STATES[2] is EGF_EGFR in component EGF_EGFRtoEGFEGFR (um). * STATES[3] is EGF_EGFR_INTERNAL in component EGF_EGFRtoEGFEGFR (um). * CONSTANTS[4] is km3 in component SHCtoSHCStar (um). * CONSTANTS[5] is kf4 in component SHCtoSHCStar (per_s). * CONSTANTS[6] is kb4 in component SHCtoSHCStar (per_s). * CONSTANTS[7] is kf5 in component SHCtoSHCStar (per_um_s). * CONSTANTS[8] is kb5 in component SHCtoSHCStar (per_s). * CONSTANTS[9] is kf6 in component SHCtoSHCStar (per_um_s). * CONSTANTS[10] is kb6 in component SHCtoSHCStar (per_s). * CONSTANTS[11] is kf8 in component SHCtoSHCStar (per_s). * CONSTANTS[12] is kb8 in component SHCtoSHCStar (per_s). * CONSTANTS[13] is kf10 in component SHCtoSHCStar (per_um_s). * CONSTANTS[14] is kb10 in component SHCtoSHCStar (per_s). * CONSTANTS[15] is km7 in component SHCtoSHCStar (um). * CONSTANTS[16] is km9 in component SHCtoSHCStar (um). * CONSTANTS[17] is Vmax7 in component SHCtoSHCStar (per_s). * CONSTANTS[18] is Vmax3 in component SHCtoSHCStar (per_s). * CONSTANTS[19] is Vmax9 in component SHCtoSHCStar (per_s). * STATES[4] is SHC in component SHCtoSHCStar (um). * STATES[5] is SHCstar in component SHCtoSHCStar (um). * STATES[6] is SHCstar_SOS_GRB2 in component SHCtoSHCStar (um). * STATES[7] is SOS_GRB2 in component SHCtoSHCStar (um). * STATES[8] is SOS in component SHCtoSHCStar (um). * CONSTANTS[20] is GRB2 in component SHCtoSHCStar (um). * CONSTANTS[21] is MAPK in component SHCtoSHCStar (um). * STATES[9] is SOSstar in component SHCtoSHCStar (um). * STATES[10] is SOSstar_GRB2 in component SHCtoSHCStar (um). * CONSTANTS[22] is km7 in component GDPrasToGTPras (um). * CONSTANTS[23] is Vmax7 in component GDPrasToGTPras (per_s). * STATES[11] is GDP_ras in component GDPrasToGTPras (um). * STATES[12] is GTP_ras in component GDPrasToGTPras (um). * RATES[0] is d/dt EGF in component EGF_EGFRtoEGFEGFR (um). * RATES[1] is d/dt EGFR in component EGF_EGFRtoEGFEGFR (um). * RATES[2] is d/dt EGF_EGFR in component EGF_EGFRtoEGFEGFR (um). * RATES[3] is d/dt EGF_EGFR_INTERNAL in component EGF_EGFRtoEGFEGFR (um). * RATES[5] is d/dt SHCstar in component SHCtoSHCStar (um). * RATES[4] is d/dt SHC in component SHCtoSHCStar (um). * RATES[6] is d/dt SHCstar_SOS_GRB2 in component SHCtoSHCStar (um). * RATES[7] is d/dt SOS_GRB2 in component SHCtoSHCStar (um). * RATES[8] is d/dt SOS in component SHCtoSHCStar (um). * RATES[9] is d/dt SOSstar in component SHCtoSHCStar (um). * RATES[10] is d/dt SOSstar_GRB2 in component SHCtoSHCStar (um). * RATES[11] is d/dt GDP_ras in component GDPrasToGTPras (um). * RATES[12] is d/dt GTP_ras in component GDPrasToGTPras (um). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 0.000007; CONSTANTS[1] = 0.25; CONSTANTS[2] = 0.002; CONSTANTS[3] = 0.00033; STATES[0] = 0.16667; STATES[1] = 0.16667; STATES[2] = 0; STATES[3] = 0; CONSTANTS[4] = 0.83333333333; CONSTANTS[5] = 0.0016667; CONSTANTS[6] = 0; CONSTANTS[7] = 0.000000041667; CONSTANTS[8] = 0.0168; CONSTANTS[9] = 0.0000008333; CONSTANTS[10] = 0.1; CONSTANTS[11] = 0.001; CONSTANTS[12] = 0; CONSTANTS[13] = 0.000000041667; CONSTANTS[14] = 0.0168; CONSTANTS[15] = 0.40404; CONSTANTS[16] = 2.564166667; CONSTANTS[17] = 0.02; CONSTANTS[18] = 0.2; CONSTANTS[19] = 10; STATES[4] = 0.5; STATES[5] = 0; STATES[6] = 0; STATES[7] = 0; STATES[8] = 0.1; CONSTANTS[20] = 1; CONSTANTS[21] = 0.36; STATES[9] = 0; STATES[10] = 0; CONSTANTS[22] = 0.50505; CONSTANTS[23] = 0.02; STATES[11] = 1; STATES[12] = 0; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[0] = - CONSTANTS[0]*STATES[0]*STATES[1]+ CONSTANTS[1]*STATES[2]; RATES[1] = - CONSTANTS[0]*STATES[0]*STATES[1]+ CONSTANTS[1]*STATES[2]; RATES[2] = (( CONSTANTS[0]*STATES[0]*STATES[1] - CONSTANTS[1]*STATES[2]) - CONSTANTS[2]*STATES[2])+ CONSTANTS[3]*STATES[3]; RATES[3] = CONSTANTS[2]*STATES[2] - CONSTANTS[3]*STATES[3]; RATES[5] = (( STATES[2]*CONSTANTS[18]*STATES[4])/(CONSTANTS[4]+STATES[4]) - CONSTANTS[9]*STATES[5]*STATES[7])+ CONSTANTS[10]*STATES[6]; RATES[4] = ( CONSTANTS[5]*STATES[5] - CONSTANTS[6]*STATES[4]) - ( STATES[2]*CONSTANTS[18]*STATES[4])/(CONSTANTS[4]+STATES[4]); RATES[6] = CONSTANTS[9]*STATES[5]*STATES[7] - CONSTANTS[10]*STATES[6]; RATES[7] = (( - CONSTANTS[9]*STATES[5]*STATES[7]+ CONSTANTS[10]*STATES[6]) - CONSTANTS[8]*STATES[7])+ CONSTANTS[7]*STATES[8]*CONSTANTS[20]; RATES[8] = ( CONSTANTS[11]*STATES[9] - CONSTANTS[12]*STATES[8]) - ( CONSTANTS[21]*CONSTANTS[19]*STATES[8])/(CONSTANTS[16]+STATES[8]); RATES[9] = (( - CONSTANTS[11]*STATES[9]+ CONSTANTS[12]*STATES[8]+( CONSTANTS[21]*CONSTANTS[19]*STATES[8])/(CONSTANTS[16]+STATES[8])) - CONSTANTS[13]*STATES[9]*CONSTANTS[20])+ CONSTANTS[14]*STATES[10]; RATES[10] = CONSTANTS[13]*STATES[9]*CONSTANTS[20] - CONSTANTS[14]*STATES[10]; RATES[11] = ( - STATES[10]*CONSTANTS[23]*STATES[11])/(CONSTANTS[22]+STATES[11]); RATES[12] = ( STATES[10]*CONSTANTS[23]*STATES[11])/(CONSTANTS[22]+STATES[11]); } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }