/* There are a total of 19 entries in the algebraic variable array. There are a total of 9 entries in each of the rate and state variable arrays. There are a total of 30 entries in the constant variable array. */ /* * VOI is time in component environment (second). * STATES[0] is NO in component NO (micromolar). * STATES[1] is O_2m in component O_2m (micromolar). * CONSTANTS[0] is O_2 in component NO (micromolar). * STATES[2] is NO_2 in component NO (micromolar). * STATES[3] is N2O3 in component N2O3 (micromolar). * STATES[4] is GSNO in component GSNO (micromolar). * STATES[5] is CcOX in component NO (micromolar). * STATES[6] is FeLn in component FeLn (micromolar). * CONSTANTS[28] is r_1NO in component NO (flux). * ALGEBRAIC[0] is r_4NO in component NO (flux). * ALGEBRAIC[1] is r_12aNO in component NO (flux). * ALGEBRAIC[2] is r_12bNOp in component NO (flux). * ALGEBRAIC[3] is r_12bNOm in component NO (flux). * ALGEBRAIC[4] is r_14NO in component NO (flux). * ALGEBRAIC[5] is r_15NO in component NO (flux). * ALGEBRAIC[6] is r_16NO in component NO (flux). * CONSTANTS[1] is k_1NO in component model_constant (flux). * CONSTANTS[2] is k_4NO in component model_constant (second_order_rate_constant). * CONSTANTS[3] is k_12aNO in component model_constant (rate2). * CONSTANTS[4] is k_12bNOp in component model_constant (second_order_rate_constant). * CONSTANTS[5] is k_12bNOm in component model_constant (first_order_rate_constant). * CONSTANTS[6] is k_14NO in component model_constant (first_order_rate_constant). * CONSTANTS[7] is k_15NO in component model_constant (second_order_rate_constant). * CONSTANTS[8] is k_16NO in component model_constant (second_order_rate_constant). * CONSTANTS[9] is SOD in component O_2m (micromolar). * CONSTANTS[29] is r_2NO in component O_2m (flux). * ALGEBRAIC[7] is r_5NO in component O_2m (flux). * ALGEBRAIC[8] is r_10NO in component O_2m (flux). * CONSTANTS[10] is k_2NO in component model_constant (flux). * CONSTANTS[11] is k_5NO in component model_constant (second_order_rate_constant). * CONSTANTS[12] is k_10NO in component model_constant (rate2). * STATES[7] is ONOO_m in component ONOO_m (micromolar). * STATES[8] is GSH in component GSH (micromolar). * CONSTANTS[13] is GPX in component ONOO_m (micromolar). * CONSTANTS[14] is CO_2 in component ONOO_m (micromolar). * CONSTANTS[15] is Cyt_c in component ONOO_m (micromolar). * ALGEBRAIC[9] is r_6NO in component ONOO_m (flux). * ALGEBRAIC[10] is r_7NO in component ONOO_m (flux). * ALGEBRAIC[11] is r_8NO in component ONOO_m (flux). * ALGEBRAIC[12] is r_9NO in component ONOO_m (flux). * CONSTANTS[16] is k_6NO in component model_constant (second_order_rate_constant). * CONSTANTS[17] is k_7NO in component model_constant (second_order_rate_constant). * CONSTANTS[18] is k_8NO in component model_constant (second_order_rate_constant). * CONSTANTS[19] is k_9NO in component model_constant (second_order_rate_constant). * ALGEBRAIC[14] is GSSG in component GSH (micromolar). * ALGEBRAIC[13] is FeLnNO in component GSH (micromolar). * CONSTANTS[20] is FeLn_0 in component model_constant (micromolar). * CONSTANTS[21] is GSH_0 in component model_constant (micromolar). * ALGEBRAIC[15] is r_11NO in component GSH (flux). * ALGEBRAIC[16] is r_m in component GSH (flux). * ALGEBRAIC[17] is r_17NO in component GSH (flux). * CONSTANTS[22] is k_11NO in component model_constant (second_order_rate_constant). * CONSTANTS[23] is v_m in component model_constant (flux). * CONSTANTS[24] is k_m in component model_constant (micromolar). * CONSTANTS[25] is k_17NO in component model_constant (second_order_rate_constant). * ALGEBRAIC[18] is r_13NO in component N2O3 (flux). * CONSTANTS[26] is k_13NO in component model_constant (first_order_rate_constant). * CONSTANTS[27] is k_17bNO in component model_constant (second_order_rate_constant). * RATES[0] is d/dt NO in component NO (micromolar). * RATES[5] is d/dt CcOX in component NO (micromolar). * RATES[2] is d/dt NO_2 in component NO (micromolar). * RATES[1] is d/dt O_2m in component O_2m (micromolar). * RATES[7] is d/dt ONOO_m in component ONOO_m (micromolar). * RATES[8] is d/dt GSH in component GSH (micromolar). * RATES[4] is d/dt GSNO in component GSNO (micromolar). * RATES[3] is d/dt N2O3 in component N2O3 (micromolar). * RATES[6] is d/dt FeLn in component FeLn (micromolar). * There are a total of 0 condition variables. */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { STATES[0] = 0; STATES[1] = 0; CONSTANTS[0] = 35; STATES[2] = 0; STATES[3] = 0; STATES[4] = 0; STATES[5] = 0.1; STATES[6] = 0.05; CONSTANTS[1] = 1; CONSTANTS[2] = 6700; CONSTANTS[3] = 0.000006; CONSTANTS[4] = 1100; CONSTANTS[5] = 81000; CONSTANTS[6] = 0.0002; CONSTANTS[7] = 100; CONSTANTS[8] = 1.21; CONSTANTS[9] = 10; CONSTANTS[10] = 0.1; CONSTANTS[11] = 2400; CONSTANTS[12] = 0.0006; STATES[7] = 0; STATES[8] = 10000; CONSTANTS[13] = 5.8; CONSTANTS[14] = 1000; CONSTANTS[15] = 400; CONSTANTS[16] = 0.00135; CONSTANTS[17] = 2; CONSTANTS[18] = 0.058; CONSTANTS[19] = 0.025; CONSTANTS[20] = 0.05; CONSTANTS[21] = 10000; CONSTANTS[22] = 66; CONSTANTS[23] = 320; CONSTANTS[24] = 50; CONSTANTS[25] = 66; CONSTANTS[26] = 1600; CONSTANTS[27] = 0.0002; CONSTANTS[28] = CONSTANTS[1]; CONSTANTS[29] = CONSTANTS[10]; RATES[0] = 0.1001; RATES[5] = 0.1001; RATES[2] = 0.1001; RATES[1] = 0.1001; RATES[7] = 0.1001; RATES[8] = 0.1001; RATES[4] = 0.1001; RATES[3] = 0.1001; RATES[6] = 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[28] - ALGEBRAIC[0]) - 2.00000*ALGEBRAIC[1]) - ALGEBRAIC[2])+ALGEBRAIC[3]+ALGEBRAIC[4]) - ALGEBRAIC[5]) - ALGEBRAIC[6]; resid[1] = RATES[5] - - ALGEBRAIC[5]; resid[2] = RATES[2] - ( 2.00000*ALGEBRAIC[1] - ALGEBRAIC[2])+ALGEBRAIC[3]; resid[3] = RATES[1] - ((CONSTANTS[29] - ALGEBRAIC[0]) - ALGEBRAIC[7]) - ALGEBRAIC[8]; resid[4] = RATES[7] - (((ALGEBRAIC[0] - ALGEBRAIC[9]) - ALGEBRAIC[10]) - ALGEBRAIC[11]) - ALGEBRAIC[12]; resid[5] = RATES[8] - ((- ALGEBRAIC[9] - ALGEBRAIC[15])+ 2.00000*ALGEBRAIC[16]) - ALGEBRAIC[17]; resid[6] = RATES[4] - (((ALGEBRAIC[9] - 2.00000*ALGEBRAIC[8])+ALGEBRAIC[15]) - ALGEBRAIC[4])+ALGEBRAIC[17]; resid[7] = RATES[3] - ((- ALGEBRAIC[15]+ALGEBRAIC[2]) - ALGEBRAIC[3]) - ALGEBRAIC[18]; resid[8] = RATES[6] - - ALGEBRAIC[6]+ALGEBRAIC[17]; } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { } void computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { ALGEBRAIC[0] = CONSTANTS[2]*STATES[0]*STATES[1]; ALGEBRAIC[1] = CONSTANTS[3]*pow(STATES[0], 2.00000)*CONSTANTS[0]; ALGEBRAIC[2] = CONSTANTS[4]*STATES[2]*STATES[0]; ALGEBRAIC[3] = CONSTANTS[5]*STATES[3]; ALGEBRAIC[4] = CONSTANTS[6]*STATES[4]; ALGEBRAIC[5] = CONSTANTS[7]*STATES[5]*STATES[0]; ALGEBRAIC[6] = CONSTANTS[8]*STATES[6]*STATES[0]; ALGEBRAIC[7] = CONSTANTS[11]*CONSTANTS[9]*STATES[1]; ALGEBRAIC[8] = CONSTANTS[12]*pow(STATES[4], 2.00000)*STATES[1]; ALGEBRAIC[9] = CONSTANTS[16]*STATES[7]*STATES[8]; ALGEBRAIC[10] = CONSTANTS[17]*STATES[7]*CONSTANTS[13]; ALGEBRAIC[11] = CONSTANTS[18]*STATES[7]*CONSTANTS[14]; ALGEBRAIC[12] = CONSTANTS[19]*STATES[7]*CONSTANTS[15]; ALGEBRAIC[15] = CONSTANTS[22]*STATES[3]*STATES[8]; ALGEBRAIC[14] = ((CONSTANTS[21] - STATES[8]) - STATES[4])/2.00000; ALGEBRAIC[16] = ( CONSTANTS[23]*ALGEBRAIC[14])/(CONSTANTS[24]+ALGEBRAIC[14]); ALGEBRAIC[13] = CONSTANTS[20] - STATES[6]; ALGEBRAIC[17] = CONSTANTS[25]*ALGEBRAIC[13]*STATES[8]; ALGEBRAIC[18] = CONSTANTS[26]*STATES[3]; } 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; } void computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES, double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS) { }