C C There are a total of 7 entries in the algebraic variable array. C There are a total of 5 entries in each of the rate and state variable arrays. C There are a total of 23 entries in the constant variable array. C C C VOI is t in component main (second). C STATES(1) is q_1 in component main (mole). C STATES(2) is q_2 in component main (mole). C STATES(3) is q_3 in component main (mole). C STATES(4) is q_4 in component main (mole). C STATES(5) is q_5 in component main (mole). C ALGBRC(1) is q_6 in component main (mole). C CONSTS(1) is q_tot in component main (mole). C ALGBRC(4) is v_1 in component main (mol_per_s). C ALGBRC(5) is v_2 in component main (mol_per_s). C ALGBRC(6) is v_3 in component main (mol_per_s). C ALGBRC(7) is v_4 in component main (mol_per_s). C CONSTS(2) is kappa_1 in component main (mol_per_s). C CONSTS(3) is kappa_2 in component main (mol_per_s). C CONSTS(4) is kappa_3 in component main (mol_per_s). C CONSTS(5) is kappa_4 in component main (mol_per_s). C CONSTS(6) is K_1 in component main (per_mol). C CONSTS(7) is K_2 in component main (per_mol). C CONSTS(8) is K_s in component main (per_mol). C CONSTS(9) is K_3 in component main (per_mol). C CONSTS(10) is K_4 in component main (per_mol). C CONSTS(11) is K_5 in component main (per_mol). C CONSTS(12) is K_6 in component main (per_mol). C CONSTS(13) is K_m in component main (per_mol). C CONSTS(14) is k_m in component main (mole). C CONSTS(15) is v_max in component main (mol_per_s). C CONSTS(16) is k_f_1 in component main (per_mol_per_s). C CONSTS(17) is k_r_1 in component main (per_s). C CONSTS(18) is k_f_2 in component main (per_s). C CONSTS(19) is k_r_2 in component main (per_mol_per_s). C CONSTS(20) is k_f_3 in component main (per_s). C CONSTS(21) is k_r_3 in component main (per_s). C CONSTS(22) is k_f_4 in component main (per_s). C CONSTS(23) is k_r_4 in component main (per_s). C ALGBRC(2) is v_SF in component main (mol_per_s). C ALGBRC(3) is v_MM in component main (mol_per_s). C RATES(1) is d/dt q_1 in component main (mole). C RATES(2) is d/dt q_2 in component main (mole). C RATES(3) is d/dt q_3 in component main (mole). C RATES(4) is d/dt q_4 in component main (mole). C RATES(5) is d/dt q_5 in component main (mole). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 100 STATES(2) = 0 STATES(3) = 0 STATES(4) = 0 STATES(5) = 0 CONSTS(1) = 1 CONSTS(2) = 100 CONSTS(3) = 100 CONSTS(4) = 1 CONSTS(5) = 0.1 CONSTS(6) = 0.1 CONSTS(7) = 0.1 CONSTS(8) = 0.1 CONSTS(9) = 1 CONSTS(10) = 1 CONSTS(11) = 1 CONSTS(12) = 1 CONSTS(13) = 1 CONSTS(14) = 2.00000/( CONSTS(8)*(1.00000+CONSTS(4)/CONSTS(5))) CONSTS(15) = ( CONSTS(1)*CONSTS(4)*CONSTS(13))/(1.00000+CONSTS(4)/CONSTS(5)) CONSTS(16) = CONSTS(2)*CONSTS(6)*CONSTS(12) CONSTS(17) = CONSTS(2)*CONSTS(9) CONSTS(18) = CONSTS(3)*CONSTS(10) CONSTS(19) = CONSTS(3)*CONSTS(7)*CONSTS(11) CONSTS(20) = CONSTS(4)*CONSTS(9) CONSTS(21) = CONSTS(4)*CONSTS(10) CONSTS(22) = CONSTS(5)*CONSTS(11) CONSTS(23) = CONSTS(5)*CONSTS(12) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = ((CONSTS(1) - STATES(3)) - STATES(4)) - STATES(5) ALGBRC(4) = CONSTS(16)*STATES(1)*ALGBRC(1) - CONSTS(17)*STATES(3) RATES(1) = - ALGBRC(4) ALGBRC(5) = CONSTS(18)*STATES(4) - CONSTS(19)*STATES(2)*STATES(5) RATES(2) = ALGBRC(5) - 1000.00*STATES(2) ALGBRC(6) = CONSTS(20)*STATES(3) - CONSTS(21)*STATES(4) RATES(3) = ALGBRC(4) - ALGBRC(6) RATES(4) = ALGBRC(6) - ALGBRC(5) ALGBRC(7) = CONSTS(22)*STATES(5) - CONSTS(23)*ALGBRC(1) RATES(5) = ALGBRC(5) - ALGBRC(7) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = ((CONSTS(1) - STATES(3)) - STATES(4)) - STATES(5) ALGBRC(4) = CONSTS(16)*STATES(1)*ALGBRC(1) - CONSTS(17)*STATES(3) ALGBRC(5) = CONSTS(18)*STATES(4) - CONSTS(19)*STATES(2)*STATES(5) ALGBRC(6) = CONSTS(20)*STATES(3) - CONSTS(21)*STATES(4) ALGBRC(7) = CONSTS(22)*STATES(5) - CONSTS(23)*ALGBRC(1) ALGBRC(2) = ( CONSTS(1)*CONSTS(4)*CONSTS(5)*CONSTS(13)*CONSTS(8)*(STATES(1) - STATES(2)))/( 2.00000*CONSTS(5)+ (CONSTS(4)+CONSTS(5))*CONSTS(8)*(STATES(1)+STATES(2))+ 2.00000*CONSTS(4)*CONSTS(8)*CONSTS(8)*STATES(1)*STATES(2)) ALGBRC(3) = ( CONSTS(15)*STATES(1))/(CONSTS(14)+STATES(1)) RETURN END