C C There are a total of 0 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 11 entries in the constant variable array. C C C VOI is time in component environment (minute). C STATES(1) is cortisol in component cortisol (mcg_ml). C CONSTS(1) is k1 in component cortisol (first_order_rate_constant). C CONSTS(2) is k2 in component cortisol (flux). C CONSTS(3) is k3 in component cortisol (first_order_rate_constant). C STATES(2) is ACTH in component ACTH (mcg_ml). C CONSTS(4) is k4 in component ACTH (first_order_rate_constant). C CONSTS(5) is k5 in component ACTH (flux). C CONSTS(6) is k6 in component ACTH (first_order_rate_constant). C CONSTS(7) is Kd in component ACTH (mcg_ml). C CONSTS(8) is Imax in component ACTH (dimensionless). C STATES(3) is CRH in component CRH (mcg_ml). C CONSTS(9) is k7 in component CRH (flux). C CONSTS(10) is k8 in component CRH (first_order_rate_constant). C CONSTS(11) is pulse in component CRH (flux). C RATES(1) is d/dt cortisol in component cortisol (mcg_ml). C RATES(2) is d/dt ACTH in component ACTH (mcg_ml). C RATES(3) is d/dt CRH in component CRH (mcg_ml). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.0 CONSTS(1) = 5E5 CONSTS(2) = 0.01 CONSTS(3) = 0.01 STATES(2) = 0.0 CONSTS(4) = 10.0 CONSTS(5) = 4E-3 CONSTS(6) = 0.035 CONSTS(7) = 0.004 CONSTS(8) = 0.99 STATES(3) = 50.0 CONSTS(9) = 1E-6 CONSTS(10) = 0.01 CONSTS(11) = 50.0 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( CONSTS(1)*STATES(2)+CONSTS(2)) - CONSTS(3)*STATES(1) RATES(2) = ( CONSTS(4)*STATES(3)+CONSTS(5)) - ( CONSTS(6)*STATES(2)+ ( CONSTS(4)*STATES(3)+CONSTS(5))*(( CONSTS(8)*STATES(1))/(CONSTS(7)+STATES(1)))) RATES(3) = (CONSTS(11)+CONSTS(9)) - CONSTS(10)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END