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 12 entries in the constant variable array. C C C VOI is time in component environment (day). C STATES(1) is Tn in component Tn (cells_per_microlitre). C CONSTS(1) is sn in component Tn (flux). C CONSTS(2) is dn in component Tn (first_order_rate_constant). C CONSTS(3) is kn in component model_parameters (first_order_rate_constant). C CONSTS(4) is eta in component model_parameters (cells_per_microlitre). C STATES(2) is C in component C (cells_per_microlitre). C STATES(3) is Te in component Te (cells_per_microlitre). C CONSTS(5) is alpha_n in component Te (dimensionless). C CONSTS(6) is alpha_e in component Te (first_order_rate_constant). C CONSTS(7) is de in component Te (first_order_rate_constant). C CONSTS(8) is gamma_e in component Te (microlitre_per_cells_day). C CONSTS(9) is Cmax in component C (cells_per_microlitre). C CONSTS(10) is rc in component C (first_order_rate_constant). C CONSTS(11) is dc in component C (first_order_rate_constant). C CONSTS(12) is gamma_c in component C (microlitre_per_cells_day). C RATES(1) is d/dt Tn in component Tn (cells_per_microlitre). C RATES(3) is d/dt Te in component Te (cells_per_microlitre). C RATES(2) is d/dt C in component C (cells_per_microlitre). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1510.0 CONSTS(1) = 0.071 CONSTS(2) = 0.050 CONSTS(3) = 0.063 CONSTS(4) = 43.0 STATES(2) = 9600.0 STATES(3) = 20.0 CONSTS(5) = 0.56 CONSTS(6) = 0.53 CONSTS(7) = 0.12 CONSTS(8) = 0.0077 CONSTS(9) = 190000 CONSTS(10) = 0.23 CONSTS(11) = 0.68 CONSTS(12) = 0.047 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(1) - ( CONSTS(2)*STATES(1)+ CONSTS(3)*STATES(1)*(STATES(2)/(STATES(2)+CONSTS(4)))) RATES(3) = ( CONSTS(5)*CONSTS(3)*STATES(1)*(STATES(2)/(STATES(2)+CONSTS(4)))+ CONSTS(6)*STATES(3)*(STATES(2)/(STATES(2)+CONSTS(4)))) - ( CONSTS(7)*STATES(3)+ CONSTS(8)*STATES(2)*STATES(3)) RATES(2) = CONSTS(10)*STATES(2)*log(CONSTS(9)/STATES(2)) - ( CONSTS(11)*STATES(2)+ CONSTS(12)*STATES(2)*STATES(3)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END