C C There are a total of 2 entries in the algebraic variable array. C There are a total of 5 entries in each of the rate and state variable arrays. C There are a total of 26 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is R in component R (dimensionless). C CONSTS(20) is phi_1 in component reaction_rate_constants (first_order_rate_constant). C CONSTS(21) is phi_2 in component reaction_rate_constants (second_order_rate_constant). C CONSTS(22) is phi_2b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(1) is k_1b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(2) is l_2b in component reaction_rate_constants (first_order_rate_constant). C STATES(2) is I_1 in component I_1 (dimensionless). C STATES(3) is O in component O (dimensionless). C CONSTS(3) is p in component reaction_rate_constants (micromolar). C CONSTS(23) is phi_3 in component reaction_rate_constants (second_order_rate_constant). C CONSTS(24) is phi_4 in component reaction_rate_constants (first_order_rate_constant). C CONSTS(25) is phi_4b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(4) is k_3b in component reaction_rate_constants (first_order_rate_constant). C STATES(4) is A in component A (dimensionless). C ALGBRC(1) is S in component S (dimensionless). C STATES(5) is I_2 in component I_2 (dimensionless). C CONSTS(26) is phi_5 in component reaction_rate_constants (first_order_rate_constant). C ALGBRC(2) is open_probability in component open_probability (dimensionless). C CONSTS(5) is k_1a in component reaction_rate_constants (second_order_rate_constant). C CONSTS(6) is k_2a in component reaction_rate_constants (second_order_rate_constant). C CONSTS(7) is k_2b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(8) is k_3a in component reaction_rate_constants (second_order_rate_constant). C CONSTS(9) is k_4a in component reaction_rate_constants (second_order_rate_constant). C CONSTS(10) is k_4b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(11) is l_2a in component reaction_rate_constants (first_order_rate_constant). C CONSTS(12) is l_4a in component reaction_rate_constants (second_order_rate_constant). C CONSTS(13) is l_4b in component reaction_rate_constants (second_order_rate_constant). C CONSTS(14) is l_6a in component reaction_rate_constants (first_order_rate_constant). C CONSTS(15) is l_6b in component reaction_rate_constants (first_order_rate_constant). C CONSTS(16) is L_1 in component reaction_rate_constants (micromolar). C CONSTS(17) is L_3 in component reaction_rate_constants (micromolar). C CONSTS(18) is L_5 in component reaction_rate_constants (micromolar). C CONSTS(19) is c in component reaction_rate_constants (micromolar). C RATES(1) is d/dt R in component R (dimensionless). C RATES(3) is d/dt O in component O (dimensionless). C RATES(2) is d/dt I_1 in component I_1 (dimensionless). C RATES(5) is d/dt I_2 in component I_2 (dimensionless). C RATES(4) is d/dt A in component A (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1 CONSTS(1) = 0.04 CONSTS(2) = 0.8 STATES(2) = 0 STATES(3) = 0 CONSTS(3) = 10 CONSTS(4) = 29.8 STATES(4) = 0 STATES(5) = 0 CONSTS(5) = 0.64 CONSTS(6) = 37.4 CONSTS(7) = 1.4 CONSTS(8) = 0.11 CONSTS(9) = 4 CONSTS(10) = 0.54 CONSTS(11) = 1.7 CONSTS(12) = 1.7 CONSTS(13) = 2.5 CONSTS(14) = 4707 CONSTS(15) = 11.4 CONSTS(16) = 0.12 CONSTS(17) = 0.025 CONSTS(18) = 54.7 CONSTS(19) = 1 CONSTS(20) = ( ( CONSTS(5)*CONSTS(16)+CONSTS(11))*CONSTS(19))/(CONSTS(16)+ CONSTS(19)*(1.00000+CONSTS(16)/CONSTS(17))) CONSTS(21) = ( CONSTS(6)*CONSTS(17)+ CONSTS(12)*CONSTS(19))/(CONSTS(17)+ CONSTS(19)*(1.00000+CONSTS(17)/CONSTS(16))) CONSTS(22) = (CONSTS(7)+ CONSTS(13)*CONSTS(19))/(1.00000+CONSTS(19)/CONSTS(18)) CONSTS(23) = ( CONSTS(8)*CONSTS(18))/(CONSTS(19)+CONSTS(18)) CONSTS(24) = ( ( CONSTS(9)*CONSTS(18)+CONSTS(14))*CONSTS(19))/(CONSTS(19)+CONSTS(18)) CONSTS(25) = ( CONSTS(16)*(CONSTS(10)+CONSTS(15)))/(CONSTS(19)+CONSTS(16)) CONSTS(26) = ( ( CONSTS(5)*CONSTS(16)+CONSTS(11))*CONSTS(19))/(CONSTS(19)+CONSTS(16)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( CONSTS(22)*STATES(3)+ (CONSTS(1)+CONSTS(2))*STATES(2)) - ( CONSTS(21)*CONSTS(3)*STATES(1)+ CONSTS(20)*STATES(1)) RATES(2) = CONSTS(20)*STATES(1) - (CONSTS(1)+CONSTS(2))*STATES(2) RATES(5) = CONSTS(26)*STATES(4) - (CONSTS(1)+CONSTS(2))*STATES(5) RATES(4) = ( CONSTS(24)*STATES(3)+ (CONSTS(1)+CONSTS(2))*STATES(5)) - ( CONSTS(25)*STATES(4)+ CONSTS(26)*STATES(4)) ALGBRC(1) = 1.00000 - (STATES(1)+STATES(3)+STATES(4)+STATES(2)+STATES(5)) RATES(3) = ( CONSTS(21)*CONSTS(3)*STATES(1)+ CONSTS(25)*STATES(4)+ CONSTS(4)*ALGBRC(1)) - (CONSTS(22)+CONSTS(24)+ 1.00000*CONSTS(23))*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1.00000 - (STATES(1)+STATES(3)+STATES(4)+STATES(2)+STATES(5)) ALGBRC(2) = 0.100000*STATES(3)+ 0.900000*STATES(4) ** 4.00000 RETURN END