C C There are a total of 0 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 5 entries in the constant variable array. C C C VOI is time in component environment (millisecond). C STATES(1) is R in component R (dimensionless). C CONSTS(1) is ki in component reaction_constants (second_order_rate_constant). C CONSTS(2) is ko in component reaction_constants (third_order_rate_constant). C CONSTS(3) is kim in component reaction_constants (first_order_rate_constant). C CONSTS(4) is kom in component reaction_constants (first_order_rate_constant). C STATES(2) is RI in component RI (dimensionless). C STATES(3) is O in component O (dimensionless). C CONSTS(5) is Ca in component reaction_constants (millimolar). C STATES(4) is I in component I (dimensionless). C RATES(1) is d/dt R in component R (dimensionless). C RATES(3) is d/dt O in component O (dimensionless). C RATES(4) is d/dt I in component I (dimensionless). C RATES(2) is d/dt RI in component RI (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1 CONSTS(1) = 0.5 CONSTS(2) = 35 CONSTS(3) = 0.005 CONSTS(4) = 0.06 STATES(2) = 1 STATES(3) = 1 CONSTS(5) = 0.0001 STATES(4) = 1 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( CONSTS(4)*STATES(3)+ CONSTS(3)*STATES(2)) - ( CONSTS(2)*CONSTS(5) ** 2.00000*STATES(1)+ CONSTS(1)*CONSTS(5)*STATES(1)) RATES(3) = ( CONSTS(3)*STATES(4)+ CONSTS(2)*CONSTS(5) ** 2.00000*STATES(1)) - ( CONSTS(4)*STATES(3)+ CONSTS(1)*CONSTS(5)*STATES(3)) RATES(4) = ( CONSTS(1)*CONSTS(5)*STATES(3)+ CONSTS(2)*CONSTS(5) ** 2.00000*STATES(2)) - ( CONSTS(3)*STATES(4)+ CONSTS(4)*STATES(4)) RATES(2) = ( CONSTS(1)*CONSTS(5)*STATES(1)+ CONSTS(4)*STATES(4)) - ( CONSTS(3)*STATES(2)+ CONSTS(2)*CONSTS(5) ** 2.00000*STATES(2)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END