C C There are a total of 3 entries in the algebraic variable array. C There are a total of 2 entries in each of the rate and state variable arrays. C There are a total of 14 entries in the constant variable array. C C C VOI is time in component environment (min). C STATES(1) is Z in component flux (uM). C STATES(2) is Y in component flux (uM). C CONSTS(1) is v0 in component flux (uM_per_min). C CONSTS(2) is v1 in component flux (uM_per_min). C ALGBRC(1) is v2 in component flux (uM_per_min). C ALGBRC(2) is v3 in component flux (uM_per_min). C ALGBRC(3) is Beta in component flux (dimensionless). C CONSTS(3) is k_f in component flux (per_min). C CONSTS(4) is k in component flux (per_min). C CONSTS(5) is V_M2 in component flux (uM_per_min). C CONSTS(6) is V_M3 in component flux (uM_per_min). C CONSTS(7) is K_2 in component flux (uM). C CONSTS(8) is K_A in component flux (uM). C CONSTS(9) is K_R in component flux (uM). C CONSTS(10) is m in component flux (dimensionless). C CONSTS(11) is p in component flux (dimensionless). C CONSTS(12) is n in component flux (dimensionless). C CONSTS(13) is t_c in component flux (min). C CONSTS(14) is Beta_f in component flux (dimensionless). C RATES(1) is d/dt Z in component flux (uM). C RATES(2) is d/dt Y in component flux (uM). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.2 STATES(2) = 0.2 CONSTS(1) = 2.7 CONSTS(2) = 4 CONSTS(3) = 1 CONSTS(4) = 10 CONSTS(5) = 65 CONSTS(6) = 500 CONSTS(7) = 1 CONSTS(8) = 0.9 CONSTS(9) = 2 CONSTS(10) = 2 CONSTS(11) = 4 CONSTS(12) = 2 CONSTS(13) = 0.8 CONSTS(14) = 0.15 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(5)*(STATES(1) ** CONSTS(12)/(CONSTS(7) ** CONSTS(12)+STATES(1) ** CONSTS(12))) ALGBRC(2) = CONSTS(6)*(STATES(2) ** CONSTS(10)/(CONSTS(9) ** CONSTS(10)+STATES(2) ** CONSTS(10)))*(STATES(1) ** CONSTS(11)/(CONSTS(8) ** CONSTS(11)+STATES(1) ** CONSTS(11))) RATES(2) = (ALGBRC(1) - ALGBRC(2)) - CONSTS(3)*STATES(2) ALGBRC(3) = CONSTS(14)*(1.00000 - EXP(- VOI/CONSTS(13))) RATES(1) = (((CONSTS(1)+ CONSTS(2)*ALGBRC(3)) - ALGBRC(1))+ALGBRC(2)+ CONSTS(3)*STATES(2)) - CONSTS(4)*STATES(1) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(5)*(STATES(1) ** CONSTS(12)/(CONSTS(7) ** CONSTS(12)+STATES(1) ** CONSTS(12))) ALGBRC(2) = CONSTS(6)*(STATES(2) ** CONSTS(10)/(CONSTS(9) ** CONSTS(10)+STATES(2) ** CONSTS(10)))*(STATES(1) ** CONSTS(11)/(CONSTS(8) ** CONSTS(11)+STATES(1) ** CONSTS(11))) ALGBRC(3) = CONSTS(14)*(1.00000 - EXP(- VOI/CONSTS(13))) RETURN END