C C There are a total of 1 entries in the algebraic variable array. C There are a total of 4 entries in each of the rate and state variable arrays. C There are a total of 4 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is x1 in component insulin (nanomolar). C ALGBRC(1) is scatchard in component insulin (dimensionless). C CONSTS(1) is k1 in component rate_constants (second_order_rate_constant). C CONSTS(2) is k1_ in component rate_constants (first_order_rate_constant). C CONSTS(3) is k2_ in component rate_constants (first_order_rate_constant). C STATES(2) is x2 in component unbound_receptor (nanomolar). C STATES(3) is x3 in component single_bound_receptor (nanomolar). C STATES(4) is x4 in component double_bound_receptor (nanomolar). C CONSTS(4) is k2 in component rate_constants (second_order_rate_constant). C RATES(1) is d/dt x1 in component insulin (nanomolar). C RATES(2) is d/dt x2 in component unbound_receptor (nanomolar). C RATES(3) is d/dt x3 in component single_bound_receptor (nanomolar). C RATES(4) is d/dt x4 in component double_bound_receptor (nanomolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1000 CONSTS(1) = 1000000 CONSTS(2) = 0.0004 CONSTS(3) = 0.04 STATES(2) = 0.1 STATES(3) = 0.0 STATES(4) = 0.0 CONSTS(4) = 1000000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = (( CONSTS(2)*STATES(3) - CONSTS(1)*STATES(1)*STATES(2))+ CONSTS(3)*STATES(4)) - CONSTS(4)*STATES(1)*STATES(3) RATES(2) = CONSTS(2)*STATES(3) - CONSTS(1)*STATES(1)*STATES(2) RATES(3) = (( CONSTS(1)*STATES(1)*STATES(2) - CONSTS(2)*STATES(3))+ CONSTS(3)*STATES(4)) - CONSTS(4)*STATES(1)*STATES(3) RATES(4) = CONSTS(4)*STATES(1)*STATES(3) - CONSTS(3)*STATES(4) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = (STATES(3)+STATES(4))/STATES(1) RETURN END