C C There are a total of 8 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 22 entries in the constant variable array. C C C VOI is time in component environment (second). C CONSTS(1) is C_ext_Na in component Concentrations (mM). C ALGBRC(1) is C_ext_H in component Concentrations (mM). C CONSTS(2) is C_ext_NH4 in component Concentrations (mM). C CONSTS(3) is C_int_Na in component Concentrations (mM). C CONSTS(4) is C_int_H in component Concentrations (mM). C CONSTS(5) is C_int_NH4 in component Concentrations (mM). C STATES(1) is pH_ext in component Concentrations (dimensionless). C CONSTS(6) is XTxP0_NHE3_Na in component NHE3_Parameters (nmol_per_s_per_cm2). C CONSTS(7) is XTxP0_NHE3_H in component NHE3_Parameters (nmol_per_s_per_cm2). C CONSTS(8) is XTxP0_NHE3_NH4 in component NHE3_Parameters (nmol_per_s_per_cm2). C CONSTS(9) is K_NHE3_Na in component NHE3_Parameters (mM). C CONSTS(10) is K_NHE3_H in component NHE3_Parameters (mM). C CONSTS(11) is K_NHE3_NH4 in component NHE3_Parameters (mM). C CONSTS(17) is XTxP_NHE_Na in component NHE3 (nmol_per_s_per_cm2). C CONSTS(18) is XTxP_NHE_H in component NHE3 (nmol_per_s_per_cm2). C CONSTS(19) is XTxP_NHE_NH4 in component NHE3 (nmol_per_s_per_cm2). C CONSTS(12) is alpha_ext_Na in component NHE3 (dimensionless). C ALGBRC(2) is beta_ext_H in component NHE3 (dimensionless). C CONSTS(13) is gamma_ext_NH4 in component NHE3 (dimensionless). C CONSTS(14) is alpha_int_Na in component NHE3 (dimensionless). C CONSTS(15) is beta_int_H in component NHE3 (dimensionless). C CONSTS(16) is gamma_int_NH4 in component NHE3 (dimensionless). C ALGBRC(3) is sum_NHE3 in component NHE3 (nmol_per_s_per_cm2). C ALGBRC(4) is J_NHE3_Na in component NHE3 (nmol_per_s_per_cm2). C ALGBRC(5) is J_NHE3_H in component NHE3 (nmol_per_s_per_cm2). C ALGBRC(6) is J_NHE3_NH4 in component NHE3 (nmol_per_s_per_cm2). C CONSTS(21) is J_NHE3_Na_Max in component NHE3 (nmol_per_s_per_cm2). C ALGBRC(8) is plot_b in component NHE3 (dimensionless). C ALGBRC(7) is plot_a in component NHE3 (dimensionless). C CONSTS(20) is K_H in component NHE3 (dimensionless). C RATES(1) is d/dt pH_ext in component Concentrations (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 0.1 CONSTS(2) = 0 CONSTS(3) = 0 CONSTS(4) = 1e-3 CONSTS(5) = 0 STATES(1) = 6 CONSTS(6) = 1.6e-3 CONSTS(7) = 0.48e-3 CONSTS(8) = 1.6e-3 CONSTS(9) = 30 CONSTS(10) = 72e-6 CONSTS(11) = 0.027e3 CONSTS(12) = CONSTS(1)/CONSTS(9) CONSTS(21) = 2.00000 CONSTS(13) = CONSTS(2)/CONSTS(11) CONSTS(14) = CONSTS(3)/CONSTS(9) CONSTS(15) = CONSTS(4)/CONSTS(10) CONSTS(16) = CONSTS(5)/CONSTS(11) CONSTS(17) = ( CONSTS(6)*2.00000*CONSTS(4))/(CONSTS(4)+1.00000e-06) CONSTS(18) = ( CONSTS(7)*2.00000*CONSTS(4))/(CONSTS(4)+1.00000e-06) CONSTS(19) = ( CONSTS(8)*2.00000*CONSTS(4))/(CONSTS(4)+1.00000e-06) CONSTS(20) = ( (1.00000+CONSTS(12))*CONSTS(15)+( (1.00000+CONSTS(15))*CONSTS(12)*CONSTS(17))/CONSTS(18))/(1.00000+ 2.00000*CONSTS(15)) CONSTS(21) = ( CONSTS(17)*CONSTS(18))/(CONSTS(17)+CONSTS(18)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(21) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1000.00*10.0000 ** - STATES(1) ALGBRC(2) = ALGBRC(1)/CONSTS(10) ALGBRC(3) = (1.00000+CONSTS(12)+ALGBRC(2)+CONSTS(13))*( CONSTS(17)*CONSTS(14)+ CONSTS(18)*CONSTS(15)+ CONSTS(19)*CONSTS(16))+ (1.00000+CONSTS(14)+CONSTS(15)+CONSTS(16))*( CONSTS(17)*CONSTS(12)+ CONSTS(18)*ALGBRC(2)+ CONSTS(19)*CONSTS(13)) ALGBRC(4) = (( CONSTS(17)*CONSTS(18))/ALGBRC(3))*( CONSTS(12)*CONSTS(15) - CONSTS(14)*ALGBRC(2))+ (( CONSTS(17)*CONSTS(19))/ALGBRC(3))*( CONSTS(12)*CONSTS(16) - CONSTS(14)*CONSTS(13)) ALGBRC(5) = (( CONSTS(17)*CONSTS(18))/ALGBRC(3))*( CONSTS(14)*ALGBRC(2) - CONSTS(12)*CONSTS(15))+ (( CONSTS(18)*CONSTS(19))/ALGBRC(3))*( ALGBRC(2)*CONSTS(16) - CONSTS(15)*CONSTS(13)) ALGBRC(6) = (( CONSTS(17)*CONSTS(19))/ALGBRC(3))*( CONSTS(14)*CONSTS(13) - CONSTS(12)*CONSTS(16))+ (( CONSTS(18)*CONSTS(19))/ALGBRC(3))*( CONSTS(13)*CONSTS(15) - ALGBRC(2)*CONSTS(16)) ALGBRC(7) = ALGBRC(4)/CONSTS(21) ALGBRC(8) = 1.00000/ALGBRC(7) RETURN END