C C There are a total of 0 entries in the algebraic variable array. C There are a total of 8 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 (second). C STATES(1) is R in component R (molar). C CONSTS(1) is L in component L (molar). C STATES(2) is LR in component LR (molar). C STATES(3) is R_star in component R_star (molar). C CONSTS(2) is kf in component model_parameters (second_order_rate_constant). C CONSTS(3) is kr in component model_parameters (first_order_rate_constant). C CONSTS(4) is kfR in component model_parameters (first_order_rate_constant). C CONSTS(5) is Kact in component model_parameters (dimensionless). C STATES(4) is LR_star in component LR_star (molar). C CONSTS(6) is alpha in component model_parameters (dimensionless). C CONSTS(7) is kds in component model_parameters (first_order_rate_constant). C STATES(5) is LR_ds in component LR_ds (molar). C STATES(6) is R_ds in component R_ds (molar). C CONSTS(8) is kf2 in component model_parameters (second_order_rate_constant). C CONSTS(9) is kr2 in component model_parameters (first_order_rate_constant). C STATES(7) is G_star in component G_star (molar). C STATES(8) is G in component G (molar). C CONSTS(10) is ka in component model_parameters (second_order_rate_constant). C CONSTS(11) is ki in component model_parameters (first_order_rate_constant). C RATES(1) is d/dt R in component R (molar). C RATES(3) is d/dt R_star in component R_star (molar). C RATES(2) is d/dt LR in component LR (molar). C RATES(4) is d/dt LR_star in component LR_star (molar). C RATES(5) is d/dt LR_ds in component LR_ds (molar). C RATES(6) is d/dt R_ds in component R_ds (molar). C RATES(7) is d/dt G_star in component G_star (molar). C RATES(8) is d/dt G in component G (molar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.01 CONSTS(1) = 1E-12 STATES(2) = 0.01 STATES(3) = 0.01 CONSTS(2) = 8.4E7 CONSTS(3) = 0.37 CONSTS(4) = 10 CONSTS(5) = 1E-4 STATES(4) = 0.01 CONSTS(6) = 1E1 CONSTS(7) = 1E-4 STATES(5) = 0.01 STATES(6) = 0.01 CONSTS(8) = 8.4E7 CONSTS(9) = 4.6E-3 STATES(7) = 0.01 STATES(8) = 0.01 CONSTS(10) = 1E-7 CONSTS(11) = 2E-1 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( CONSTS(3)*STATES(2)+ (CONSTS(4)/CONSTS(5))*STATES(3)) - ( CONSTS(2)*CONSTS(1)*STATES(1)+ CONSTS(4)*STATES(1)) RATES(3) = ( CONSTS(3)*STATES(4)+ CONSTS(4)*STATES(1)) - ( CONSTS(6)*CONSTS(2)*CONSTS(1)*STATES(3)+ (CONSTS(4)/CONSTS(5))*STATES(3)) RATES(2) = ( CONSTS(2)*CONSTS(1)*STATES(1)+ (CONSTS(4)/( CONSTS(6)*CONSTS(5)))*STATES(4)) - ( CONSTS(3)*STATES(2)+ CONSTS(4)*STATES(2)) RATES(4) = ( CONSTS(4)*STATES(2)+ CONSTS(6)*CONSTS(2)*CONSTS(1)*STATES(3)) - ( (CONSTS(4)/( CONSTS(6)*CONSTS(5)))*STATES(4)+ CONSTS(7)*STATES(4)+ CONSTS(3)*STATES(4)) RATES(5) = ( CONSTS(7)*STATES(4)+ CONSTS(8)*CONSTS(1)*STATES(6)) - CONSTS(9)*STATES(5) RATES(6) = CONSTS(9)*STATES(5) - CONSTS(8)*CONSTS(1)*STATES(6) RATES(7) = CONSTS(10)*STATES(8)*(STATES(4)+STATES(3)) - CONSTS(11)*STATES(7) RATES(8) = CONSTS(11)*STATES(7) - CONSTS(10)*STATES(8)*(STATES(4)+STATES(3)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END