C C There are a total of 3 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 10 entries in the constant variable array. C C C VOI is time in component environment (second). C CONSTS(1) is V_m in component concentrations (volt). C STATES(1) is Na_int in component concentrations (mM). C CONSTS(2) is Na_ext in component concentrations (mM). C CONSTS(3) is HCO3_int in component concentrations (mM). C CONSTS(4) is HCO3_ext in component concentrations (mM). C ALGBRC(2) is J_NBC_Na in component NBC (mM_per_s). C ALGBRC(3) is J_NBC_HCO3 in component NBC (mM_per_s). C CONSTS(5) is g_NBC in component NBC (mS_per_cm2). C CONSTS(6) is F in component NBC (coulomb_per_mmole). C CONSTS(7) is R in component NBC (joule_per_mmole_kelvin). C CONSTS(8) is T in component NBC (kelvin). C CONSTS(9) is n in component NBC (dimensionless). C ALGBRC(1) is E_NBC in component NBC (volt). C RATES(1) is d/dt Na_int in component concentrations (mM). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = -0.032 STATES(1) = 15.0 CONSTS(2) = 146.0 CONSTS(3) = 9.0 CONSTS(4) = 15.0 CONSTS(5) = 0.08 CONSTS(6) = 96.5 CONSTS(7) = 0.008315 CONSTS(8) = 300 CONSTS(9) = 2 CONSTS(9) = 1.00000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(9) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = (( CONSTS(7)*CONSTS(8))/( (1.00000 - CONSTS(9))*CONSTS(6)))*log( (CONSTS(2)/STATES(1))*CONSTS(4)/CONSTS(3) ** 2.00000) ALGBRC(2) = ( CONSTS(5)*(ALGBRC(1) - CONSTS(1)))/CONSTS(6) ALGBRC(3) = 3.00000*ALGBRC(2) RETURN END