C C There are a total of 4 entries in the algebraic variable array. C There are a total of 3 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 (minute). C STATES(1) is Pha in component Pha (dimensionless). C ALGBRC(1) is V_1 in component V_1 (dimensionless). C STATES(2) is Z in component Z (dimensionless). C ALGBRC(3) is K_1 in component K_1 (dimensionless). C CONSTS(1) is V_M2 in component Pha (per_minute). C CONSTS(2) is alpha in component Pha (dimensionless). C CONSTS(3) is Glc in component Pha (micromolar). C CONSTS(4) is K_2 in component Pha (dimensionless). C CONSTS(5) is K_a1 in component Pha (micromolar). C CONSTS(6) is K_a2 in component Pha (micromolar). C CONSTS(7) is V_M1 in component V_1 (per_minute). C CONSTS(8) is gamma in component V_1 (dimensionless). C CONSTS(9) is K_a5 in component V_1 (micromolar). C CONSTS(10) is K_11 in component K_1 (dimensionless). C CONSTS(11) is K_a6 in component K_1 (micromolar). C CONSTS(26) is V_in in component V_in (dimensionless). C ALGBRC(2) is V_2i in component V_2i (dimensionless). C ALGBRC(4) is V_3i in component V_3i (dimensionless). C CONSTS(12) is k_f in component Z (per_minute). C STATES(3) is Y in component Y (dimensionless). C CONSTS(13) is k in component Z (per_minute). C CONSTS(14) is k_f in component Y (per_minute). C CONSTS(15) is v_0 in component V_in (micromolar_per_minute). C CONSTS(16) is v_1 in component V_in (micromolar_per_minute). C CONSTS(17) is beta in component V_in (dimensionless). C CONSTS(18) is v_M2i in component V_2i (micromolar_per_minute). C CONSTS(19) is n in component V_2i (dimensionless). C CONSTS(20) is K_2i in component V_2i (micromolar). C CONSTS(21) is v_M3i in component V_3i (micromolar_per_minute). C CONSTS(22) is p in component V_3i (dimensionless). C CONSTS(23) is m in component V_3i (dimensionless). C CONSTS(24) is K_Ri in component V_3i (micromolar). C CONSTS(25) is K_Ai in component V_3i (micromolar). C RATES(1) is d/dt Pha in component Pha (dimensionless). C RATES(2) is d/dt Z in component Z (dimensionless). C RATES(3) is d/dt Y in component Y (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.098 STATES(2) = 0.000179 CONSTS(1) = 0.6 CONSTS(2) = 9 CONSTS(3) = 10000 CONSTS(4) = 0.2 CONSTS(5) = 10000 CONSTS(6) = 10000 CONSTS(7) = 1.5 CONSTS(8) = 9 CONSTS(9) = 0.5 CONSTS(10) = 0.1 CONSTS(11) = 0.5 CONSTS(12) = 0.7 STATES(3) = 0.00122 CONSTS(13) = 10 CONSTS(14) = 0.7 CONSTS(15) = 1 CONSTS(16) = 5.7 CONSTS(17) = 0.3 CONSTS(18) = 30 CONSTS(19) = 2 CONSTS(20) = 0.5 CONSTS(21) = 325 CONSTS(22) = 4 CONSTS(23) = 4 CONSTS(24) = 1.7 CONSTS(25) = 0.46 CONSTS(26) = CONSTS(15)+ CONSTS(16)*CONSTS(17) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(7)*(1.00000+ CONSTS(8)*(STATES(2) ** 4.00000/CONSTS(9) ** 4.00000+STATES(2) ** 4.00000)) ALGBRC(3) = CONSTS(10)/(1.00000+STATES(2) ** 4.00000/CONSTS(11) ** 4.00000) RATES(1) = ALGBRC(1)*STATES(2)*((1.00000 - STATES(1))/(( ALGBRC(3)*STATES(2)+1.00000) - STATES(1))) - ( CONSTS(1)*(1.00000+( CONSTS(2)*CONSTS(3))/(CONSTS(5)+CONSTS(3)))*STATES(1))/(CONSTS(4)/(1.00000+CONSTS(3)/CONSTS(6))+STATES(1)) ALGBRC(2) = CONSTS(18)*(STATES(2) ** CONSTS(19)/(CONSTS(20) ** CONSTS(19)+STATES(2) ** CONSTS(19))) ALGBRC(4) = CONSTS(21)*(STATES(3) ** CONSTS(23)/CONSTS(24) ** CONSTS(23)+STATES(3) ** CONSTS(19))*(STATES(2) ** CONSTS(22)/(CONSTS(25) ** CONSTS(22)+STATES(2) ** CONSTS(22))) RATES(2) = ((CONSTS(26) - ALGBRC(2))+ALGBRC(4)+ CONSTS(12)*STATES(3)) - CONSTS(13)*STATES(2) RATES(3) = (ALGBRC(2) - ALGBRC(4)) - CONSTS(14)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(7)*(1.00000+ CONSTS(8)*(STATES(2) ** 4.00000/CONSTS(9) ** 4.00000+STATES(2) ** 4.00000)) ALGBRC(3) = CONSTS(10)/(1.00000+STATES(2) ** 4.00000/CONSTS(11) ** 4.00000) ALGBRC(2) = CONSTS(18)*(STATES(2) ** CONSTS(19)/(CONSTS(20) ** CONSTS(19)+STATES(2) ** CONSTS(19))) ALGBRC(4) = CONSTS(21)*(STATES(3) ** CONSTS(23)/CONSTS(24) ** CONSTS(23)+STATES(3) ** CONSTS(19))*(STATES(2) ** CONSTS(22)/(CONSTS(25) ** CONSTS(22)+STATES(2) ** CONSTS(22))) RETURN END