C C There are a total of 1 entries in the algebraic variable array. C There are a total of 1 entries in each of the rate and state variable arrays. C There are a total of 6 entries in the constant variable array. C C C VOI is time in component environment (day). C STATES(1) is p in component serum_PSA_dynamics (ng_per_mm3). C ALGBRC(1) is Vc in component serum_PSA_dynamics (mm3). C CONSTS(1) is Vo in component serum_PSA_dynamics (mm3). C CONSTS(2) is Vh in component serum_PSA_dynamics (mm3). C CONSTS(3) is beta_h in component serum_PSA_dynamics (ng_per_mm3_per_day). C CONSTS(4) is beta_c in component serum_PSA_dynamics (ng_per_mm3_per_day). C CONSTS(5) is gamma in component serum_PSA_dynamics (per_day). C CONSTS(6) is rho in component serum_PSA_dynamics (per_day). C RATES(1) is d/dt p in component serum_PSA_dynamics (ng_per_mm3). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.0 CONSTS(1) = 20.0 CONSTS(2) = 0.0 CONSTS(3) = 0.0 CONSTS(4) = 1.7210 CONSTS(5) = 1.2896 CONSTS(6) = 0.0655 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(1)*EXP( CONSTS(6)*VOI) RATES(1) = ( 1.00000*CONSTS(3)*CONSTS(2)+ 1.00000*CONSTS(4)*ALGBRC(1)) - CONSTS(5)*STATES(1) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(1)*EXP( CONSTS(6)*VOI) RETURN END