/* There are a total of 0 entries in the algebraic variable array. There are a total of 18 entries in each of the rate and state variable arrays. There are a total of 37 entries in the constant variable array. */ /* * VOI is time in component environment (second). * CONSTANTS[0] is mostot in component total_concs (micromolar). * CONSTANTS[1] is e1tot in component total_concs (micromolar). * CONSTANTS[2] is e2tot in component total_concs (micromolar). * CONSTANTS[3] is mektot in component total_concs (micromolar). * CONSTANTS[4] is mekpasetot in component total_concs (micromolar). * CONSTANTS[5] is mapktot in component total_concs (micromolar). * CONSTANTS[6] is mapkpasetot in component total_concs (micromolar). * CONSTANTS[7] is a1 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[8] is a2 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[9] is a3 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[10] is a4 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[11] is a5 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[12] is a6 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[13] is a7 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[14] is a8 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[15] is a9 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[16] is a10 in component rate_constants (second_order_rate_constant_units). * CONSTANTS[17] is d1 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[18] is d2 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[19] is d3 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[20] is d4 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[21] is d5 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[22] is d6 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[23] is d7 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[24] is d8 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[25] is d9 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[26] is d10 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[27] is k1 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[28] is k2 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[29] is k3 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[30] is k4 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[31] is k5 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[32] is k6 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[33] is k7 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[34] is k8 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[35] is k9 in component rate_constants (first_order_rate_constant_units). * CONSTANTS[36] is k10 in component rate_constants (first_order_rate_constant_units). * STATES[0] is mos in component mos (micromolar). * STATES[1] is mosstar in component mosstar (micromolar). * STATES[2] is mose1 in component mose1 (micromolar). * STATES[3] is mosstare2 in component mosstare2 (micromolar). * STATES[4] is mekstarmosstar in component mekstarmosstar (micromolar). * STATES[5] is mekmosstar in component mekmosstar (micromolar). * STATES[6] is mekstar in component mekstar (micromolar). * STATES[7] is mekstarstar in component mekstarstar (micromolar). * STATES[8] is mekstarmekpase in component mekstarmekpase (micromolar). * STATES[9] is mekstarstarmekpase in component mekstarstarmekpase (micromolar). * STATES[10] is mapkmekstarstar in component mapkmekstarstar (micromolar). * STATES[11] is mapkstarmekstarstar in component mapkstarmekstarstar (micromolar). * STATES[12] is mek in component mek (micromolar). * STATES[13] is mapkstar in component mapkstar (micromolar). * STATES[14] is mapkstarstar in component mapkstarstar (micromolar). * STATES[15] is mapkstarmapkpase in component mapkstarmapkpase (micromolar). * STATES[16] is mapkstarstarmapkpase in component mapkstarstarmapkpase (micromolar). * STATES[17] is mapk in component mapk (micromolar). * RATES[0] is d/dt mos in component mos (micromolar). * RATES[2] is d/dt mose1 in component mose1 (micromolar). * RATES[1] is d/dt mosstar in component mosstar (micromolar). * RATES[3] is d/dt mosstare2 in component mosstare2 (micromolar). * RATES[12] is d/dt mek in component mek (micromolar). * RATES[5] is d/dt mekmosstar in component mekmosstar (micromolar). * RATES[6] is d/dt mekstar in component mekstar (micromolar). * RATES[8] is d/dt mekstarmekpase in component mekstarmekpase (micromolar). * RATES[4] is d/dt mekstarmosstar in component mekstarmosstar (micromolar). * RATES[7] is d/dt mekstarstar in component mekstarstar (micromolar). * RATES[9] is d/dt mekstarstarmekpase in component mekstarstarmekpase (micromolar). * RATES[17] is d/dt mapk in component mapk (micromolar). * RATES[10] is d/dt mapkmekstarstar in component mapkmekstarstar (micromolar). * RATES[13] is d/dt mapkstar in component mapkstar (micromolar). * RATES[11] is d/dt mapkstarmekstarstar in component mapkstarmekstarstar (micromolar). * RATES[14] is d/dt mapkstarstar in component mapkstarstar (micromolar). * RATES[15] is d/dt mapkstarmapkpase in component mapkstarmapkpase (micromolar). * RATES[16] is d/dt mapkstarstarmapkpase in component mapkstarstarmapkpase (micromolar). * There are a total of 0 condition variables. */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 0.003; CONSTANTS[1] = 0.0003; CONSTANTS[2] = 0.0003; CONSTANTS[3] = 1.2; CONSTANTS[4] = 0.0003; CONSTANTS[5] = 1.2; CONSTANTS[6] = 0.12; CONSTANTS[7] = 1000; CONSTANTS[8] = 1000; CONSTANTS[9] = 1000; CONSTANTS[10] = 1000; CONSTANTS[11] = 1000; CONSTANTS[12] = 1000; CONSTANTS[13] = 1000; CONSTANTS[14] = 1000; CONSTANTS[15] = 1000; CONSTANTS[16] = 1000; CONSTANTS[17] = 150; CONSTANTS[18] = 150; CONSTANTS[19] = 150; CONSTANTS[20] = 150; CONSTANTS[21] = 150; CONSTANTS[22] = 150; CONSTANTS[23] = 150; CONSTANTS[24] = 150; CONSTANTS[25] = 150; CONSTANTS[26] = 150; CONSTANTS[27] = 150; CONSTANTS[28] = 150; CONSTANTS[29] = 150; CONSTANTS[30] = 150; CONSTANTS[31] = 150; CONSTANTS[32] = 150; CONSTANTS[33] = 150; CONSTANTS[34] = 150; CONSTANTS[35] = 150; CONSTANTS[36] = 150; STATES[0] = 0.003; STATES[1] = 0; STATES[2] = 0; STATES[3] = 0; STATES[4] = 0; STATES[5] = 0; STATES[6] = 0; STATES[7] = 0; STATES[8] = 0; STATES[9] = 0; STATES[10] = 0; STATES[11] = 0; STATES[12] = 1.2; STATES[13] = 0; STATES[14] = 0; STATES[15] = 0; STATES[16] = 0; STATES[17] = 1.2; RATES[0] = 0.1001; RATES[2] = 0.1001; RATES[1] = 0.1001; RATES[3] = 0.1001; RATES[12] = 0.1001; RATES[5] = 0.1001; RATES[6] = 0.1001; RATES[8] = 0.1001; RATES[4] = 0.1001; RATES[7] = 0.1001; RATES[9] = 0.1001; RATES[17] = 0.1001; RATES[10] = 0.1001; RATES[13] = 0.1001; RATES[11] = 0.1001; RATES[14] = 0.1001; RATES[15] = 0.1001; RATES[16] = 0.1001; } void computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES, double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS) { resid[0] = RATES[0] - - CONSTANTS[7]*(((((CONSTANTS[0] - STATES[1]) - STATES[2]) - STATES[3]) - STATES[5]) - STATES[4])*(CONSTANTS[1] - STATES[2])+ CONSTANTS[17]*STATES[2]+ CONSTANTS[28]*STATES[3]; resid[1] = RATES[2] - CONSTANTS[7]*(((((CONSTANTS[0] - STATES[1]) - STATES[2]) - STATES[3]) - STATES[5]) - STATES[4])*(CONSTANTS[1] - STATES[2]) - (CONSTANTS[17]+CONSTANTS[27])*STATES[2]; resid[2] = RATES[1] - ((( - CONSTANTS[8]*STATES[1]*(CONSTANTS[2] - STATES[3])+ CONSTANTS[18]*STATES[3]+ CONSTANTS[27]*STATES[2]+ (CONSTANTS[29]+CONSTANTS[19])*STATES[5]) - CONSTANTS[9]*STATES[1]*((((((((CONSTANTS[3] - STATES[6]) - STATES[7]) - STATES[8]) - STATES[9]) - STATES[5]) - STATES[4]) - STATES[10]) - STATES[11]))+ (CONSTANTS[31]+CONSTANTS[21])*STATES[4]) - CONSTANTS[11]*STATES[6]*STATES[1]; resid[3] = RATES[3] - CONSTANTS[8]*STATES[1]*(CONSTANTS[2] - STATES[3]) - (CONSTANTS[18]+CONSTANTS[28])*STATES[3]; resid[4] = RATES[12] - - CONSTANTS[9]*((((((((CONSTANTS[3] - STATES[6]) - STATES[7]) - STATES[8]) - STATES[9]) - STATES[5]) - STATES[4]) - STATES[10]) - STATES[11])*STATES[1]+ CONSTANTS[19]*STATES[5]+ CONSTANTS[30]*STATES[8]; resid[5] = RATES[5] - CONSTANTS[9]*((((((((CONSTANTS[3] - STATES[6]) - STATES[7]) - STATES[8]) - STATES[9]) - STATES[5]) - STATES[4]) - STATES[10]) - STATES[11])*STATES[1] - (CONSTANTS[19]+CONSTANTS[29])*STATES[5]; resid[6] = RATES[6] - ( - CONSTANTS[10]*STATES[6]*((CONSTANTS[4] - STATES[8]) - STATES[9])+ CONSTANTS[20]*STATES[8]+ CONSTANTS[29]*STATES[5]+ CONSTANTS[32]*STATES[9]+ CONSTANTS[21]*STATES[4]) - CONSTANTS[11]*STATES[6]*STATES[1]; resid[7] = RATES[8] - CONSTANTS[10]*STATES[6]*((CONSTANTS[4] - STATES[8]) - STATES[9]) - (CONSTANTS[20]+CONSTANTS[30])*STATES[8]; resid[8] = RATES[4] - CONSTANTS[11]*STATES[6]*STATES[1] - (CONSTANTS[21]+CONSTANTS[31])*STATES[4]; resid[9] = RATES[7] - (((( CONSTANTS[31]*STATES[4] - CONSTANTS[12]*STATES[7]*((CONSTANTS[4] - STATES[8]) - STATES[9]))+ CONSTANTS[22]*STATES[9]) - CONSTANTS[13]*STATES[7]*((((((CONSTANTS[5] - STATES[13]) - STATES[14]) - STATES[15]) - STATES[16]) - STATES[10]) - STATES[11]))+ (CONSTANTS[23]+CONSTANTS[33])*STATES[10]+ (CONSTANTS[25]+CONSTANTS[35])*STATES[11]) - CONSTANTS[15]*STATES[13]*STATES[7]; resid[10] = RATES[9] - CONSTANTS[12]*STATES[7]*((CONSTANTS[4] - STATES[8]) - STATES[9]) - (CONSTANTS[22]+CONSTANTS[32])*STATES[9]; resid[11] = RATES[17] - - CONSTANTS[13]*((((((CONSTANTS[5] - STATES[13]) - STATES[14]) - STATES[15]) - STATES[16]) - STATES[10]) - STATES[11])*STATES[7]+ CONSTANTS[23]*STATES[10]+ CONSTANTS[34]*STATES[15]; resid[12] = RATES[10] - CONSTANTS[13]*((((((CONSTANTS[5] - STATES[13]) - STATES[14]) - STATES[15]) - STATES[16]) - STATES[10]) - STATES[11])*STATES[7] - (CONSTANTS[23]+CONSTANTS[33])*STATES[10]; resid[13] = RATES[13] - ((( CONSTANTS[33]*STATES[10] - CONSTANTS[14]*STATES[13]*((CONSTANTS[6] - STATES[15]) - STATES[16]))+ CONSTANTS[24]*STATES[15]) - CONSTANTS[15]*STATES[13]*STATES[7])+ CONSTANTS[25]*STATES[11]+ CONSTANTS[36]*STATES[16]; resid[14] = RATES[11] - CONSTANTS[15]*STATES[13]*STATES[7] - (CONSTANTS[25]+CONSTANTS[35])*STATES[11]; resid[15] = RATES[14] - - CONSTANTS[16]*STATES[14]*((CONSTANTS[6] - STATES[15]) - STATES[16])+ CONSTANTS[26]*STATES[16]+ CONSTANTS[35]*STATES[11]; resid[16] = RATES[15] - CONSTANTS[14]*STATES[13]*((CONSTANTS[6] - STATES[15]) - STATES[16]) - (CONSTANTS[24]+CONSTANTS[34])*STATES[15]; resid[17] = RATES[16] - CONSTANTS[16]*STATES[14]*((CONSTANTS[6] - STATES[15]) - STATES[16]) - (CONSTANTS[26]+CONSTANTS[36])*STATES[16]; } 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) { SI[0] = 1.0; SI[1] = 1.0; SI[2] = 1.0; SI[3] = 1.0; SI[4] = 1.0; SI[5] = 1.0; SI[6] = 1.0; SI[7] = 1.0; SI[8] = 1.0; SI[9] = 1.0; SI[10] = 1.0; SI[11] = 1.0; SI[12] = 1.0; SI[13] = 1.0; SI[14] = 1.0; SI[15] = 1.0; SI[16] = 1.0; SI[17] = 1.0; } void computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES, double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS) { }