C C There are a total of 76 entries in the algebraic variable array. C There are a total of 20 entries in each of the rate and state variable arrays. C There are a total of 52 entries in the constant variable array. C C C VOI is time in component environment (millisecond). C STATES(1) is V in component membrane (millivolt). C CONSTS(1) is R in component membrane (joule_per_mole_kelvin). C CONSTS(2) is T in component membrane (kelvin). C CONSTS(3) is F in component membrane (coulomb_per_millimole). C CONSTS(4) is Cm in component membrane (microF). C CONSTS(5) is V_c in component membrane (micrometre3). C ALGBRC(52) is i_K1 in component inward_rectifier_potassium_current (picoA_per_picoF). C ALGBRC(59) is i_to in component transient_outward_current (picoA_per_picoF). C ALGBRC(61) is i_sus in component sustained_outward_current (picoA_per_picoF). C ALGBRC(53) is i_Kr in component rapid_time_dependent_potassium_current (picoA_per_picoF). C ALGBRC(54) is i_Ks in component slow_time_dependent_potassium_current (picoA_per_picoF). C ALGBRC(57) is i_CaL in component L_type_Ca_current (picoA_per_picoF). C ALGBRC(62) is i_NaK in component sodium_potassium_pump_current (picoA_per_picoF). C ALGBRC(55) is i_Na in component fast_sodium_current (picoA_per_picoF). C ALGBRC(56) is i_b_Na in component sodium_background_current (picoA_per_picoF). C ALGBRC(63) is i_NaCa in component sodium_calcium_exchanger_current (picoA_per_picoF). C ALGBRC(58) is i_b_Ca in component calcium_background_current (picoA_per_picoF). C ALGBRC(65) is i_p_K in component potassium_pump_current (picoA_per_picoF). C ALGBRC(64) is i_p_Ca in component calcium_pump_current (picoA_per_picoF). C ALGBRC(50) is i_f in component hyperpolarization_activated_current (picoA_per_picoF). C ALGBRC(14) is E_Na in component reversal_potentials (millivolt). C ALGBRC(28) is E_K in component reversal_potentials (millivolt). C ALGBRC(37) is E_Ks in component reversal_potentials (millivolt). C ALGBRC(46) is E_Ca in component reversal_potentials (millivolt). C CONSTS(6) is P_kna in component reversal_potentials (dimensionless). C CONSTS(7) is K_o in component potassium_dynamics (millimolar). C CONSTS(8) is Na_o in component sodium_dynamics (millimolar). C STATES(2) is K_i in component potassium_dynamics (millimolar). C STATES(3) is Na_i in component sodium_dynamics (millimolar). C CONSTS(9) is Ca_o in component calcium_dynamics (millimolar). C STATES(4) is Ca_i in component calcium_dynamics (millimolar). C ALGBRC(48) is i_f_Na in component hyperpolarization_activated_current (picoA_per_picoF). C ALGBRC(49) is i_f_K in component hyperpolarization_activated_current (picoA_per_picoF). C CONSTS(10) is g_f_Na in component hyperpolarization_activated_current (nanoS_per_picoF). C CONSTS(11) is g_f_K in component hyperpolarization_activated_current (nanoS_per_picoF). C STATES(5) is y in component hyperpolarization_activated_current_y_gate (dimensionless). C ALGBRC(1) is y_inf in component hyperpolarization_activated_current_y_gate (dimensionless). C ALGBRC(15) is alpha_y in component hyperpolarization_activated_current_y_gate (per_millisecond). C ALGBRC(29) is beta_y in component hyperpolarization_activated_current_y_gate (per_millisecond). C ALGBRC(38) is tau_y in component hyperpolarization_activated_current_y_gate (millisecond). C CONSTS(12) is g_K1 in component inward_rectifier_potassium_current (nanoS_per_picoF). C ALGBRC(51) is xK1_inf in component inward_rectifier_potassium_current (dimensionless). C CONSTS(13) is g_Kr in component rapid_time_dependent_potassium_current (nanoS_per_picoF). C STATES(6) is Xr1 in component rapid_time_dependent_potassium_current_Xr1_gate (dimensionless). C STATES(7) is Xr2 in component rapid_time_dependent_potassium_current_Xr2_gate (dimensionless). C ALGBRC(2) is xr1_inf in component rapid_time_dependent_potassium_current_Xr1_gate (dimensionless). C ALGBRC(16) is alpha_xr1 in component rapid_time_dependent_potassium_current_Xr1_gate (dimensionless). C ALGBRC(30) is beta_xr1 in component rapid_time_dependent_potassium_current_Xr1_gate (dimensionless). C ALGBRC(39) is tau_xr1 in component rapid_time_dependent_potassium_current_Xr1_gate (millisecond). C ALGBRC(3) is xr2_inf in component rapid_time_dependent_potassium_current_Xr2_gate (dimensionless). C ALGBRC(17) is alpha_xr2 in component rapid_time_dependent_potassium_current_Xr2_gate (dimensionless). C ALGBRC(31) is beta_xr2 in component rapid_time_dependent_potassium_current_Xr2_gate (dimensionless). C ALGBRC(40) is tau_xr2 in component rapid_time_dependent_potassium_current_Xr2_gate (millisecond). C CONSTS(14) is g_Ks in component slow_time_dependent_potassium_current (nanoS_per_picoF). C STATES(8) is Xs in component slow_time_dependent_potassium_current_Xs_gate (dimensionless). C ALGBRC(4) is xs_inf in component slow_time_dependent_potassium_current_Xs_gate (dimensionless). C ALGBRC(18) is alpha_xs in component slow_time_dependent_potassium_current_Xs_gate (dimensionless). C ALGBRC(32) is beta_xs in component slow_time_dependent_potassium_current_Xs_gate (dimensionless). C ALGBRC(41) is tau_xs in component slow_time_dependent_potassium_current_Xs_gate (millisecond). C CONSTS(15) is g_Na in component fast_sodium_current (nanoS_per_picoF). C STATES(9) is m in component fast_sodium_current_m_gate (dimensionless). C STATES(10) is h in component fast_sodium_current_h_gate (dimensionless). C STATES(11) is j in component fast_sodium_current_j_gate (dimensionless). C ALGBRC(5) is m_inf in component fast_sodium_current_m_gate (dimensionless). C ALGBRC(19) is alpha_m in component fast_sodium_current_m_gate (dimensionless). C ALGBRC(33) is beta_m in component fast_sodium_current_m_gate (dimensionless). C ALGBRC(42) is tau_m in component fast_sodium_current_m_gate (millisecond). C ALGBRC(6) is h_inf in component fast_sodium_current_h_gate (dimensionless). C ALGBRC(20) is alpha_h in component fast_sodium_current_h_gate (per_millisecond). C ALGBRC(34) is beta_h in component fast_sodium_current_h_gate (per_millisecond). C ALGBRC(43) is tau_h in component fast_sodium_current_h_gate (millisecond). C ALGBRC(7) is j_inf in component fast_sodium_current_j_gate (dimensionless). C ALGBRC(21) is alpha_j in component fast_sodium_current_j_gate (per_millisecond). C ALGBRC(35) is beta_j in component fast_sodium_current_j_gate (per_millisecond). C ALGBRC(44) is tau_j in component fast_sodium_current_j_gate (millisecond). C CONSTS(16) is g_bna in component sodium_background_current (nanoS_per_picoF). C CONSTS(17) is g_CaL in component L_type_Ca_current (litre_per_farad_second). C STATES(12) is Ca_ss in component calcium_dynamics (millimolar). C STATES(13) is d in component L_type_Ca_current_d_gate (dimensionless). C STATES(14) is f in component L_type_Ca_current_f_gate (dimensionless). C STATES(15) is f2 in component L_type_Ca_current_f2_gate (dimensionless). C STATES(16) is fCass in component L_type_Ca_current_fCass_gate (dimensionless). C ALGBRC(8) is d_inf in component L_type_Ca_current_d_gate (dimensionless). C ALGBRC(22) is alpha_d in component L_type_Ca_current_d_gate (dimensionless). C ALGBRC(36) is beta_d in component L_type_Ca_current_d_gate (dimensionless). C ALGBRC(45) is gamma_d in component L_type_Ca_current_d_gate (millisecond). C ALGBRC(47) is tau_d in component L_type_Ca_current_d_gate (millisecond). C ALGBRC(9) is f_inf in component L_type_Ca_current_f_gate (dimensionless). C ALGBRC(23) is tau_f in component L_type_Ca_current_f_gate (millisecond). C ALGBRC(10) is f2_inf in component L_type_Ca_current_f2_gate (dimensionless). C ALGBRC(24) is tau_f2 in component L_type_Ca_current_f2_gate (millisecond). C ALGBRC(11) is fCass_inf in component L_type_Ca_current_fCass_gate (dimensionless). C ALGBRC(25) is tau_fCass in component L_type_Ca_current_fCass_gate (millisecond). C CONSTS(18) is g_bca in component calcium_background_current (nanoS_per_picoF). C CONSTS(19) is g_to in component transient_outward_current (nanoS_per_picoF). C STATES(17) is s in component transient_outward_current_s_gate (dimensionless). C STATES(18) is r in component transient_outward_current_r_gate (dimensionless). C ALGBRC(12) is s_inf in component transient_outward_current_s_gate (dimensionless). C ALGBRC(26) is tau_s in component transient_outward_current_s_gate (millisecond). C ALGBRC(13) is r_inf in component transient_outward_current_r_gate (dimensionless). C ALGBRC(27) is tau_r in component transient_outward_current_r_gate (millisecond). C CONSTS(20) is g_sus in component sustained_outward_current (nanoS_per_picoF). C ALGBRC(60) is a in component sustained_outward_current (dimensionless). C CONSTS(21) is P_NaK in component sodium_potassium_pump_current (picoA_per_picoF). C CONSTS(22) is K_mk in component sodium_potassium_pump_current (millimolar). C CONSTS(23) is K_mNa in component sodium_potassium_pump_current (millimolar). C CONSTS(24) is K_NaCa in component sodium_calcium_exchanger_current (picoA_per_picoF). C CONSTS(25) is K_sat in component sodium_calcium_exchanger_current (dimensionless). C CONSTS(26) is alpha in component sodium_calcium_exchanger_current (dimensionless). C CONSTS(27) is gamma in component sodium_calcium_exchanger_current (dimensionless). C CONSTS(28) is Km_Ca in component sodium_calcium_exchanger_current (millimolar). C CONSTS(29) is Km_Nai in component sodium_calcium_exchanger_current (millimolar). C CONSTS(30) is g_pCa in component calcium_pump_current (picoA_per_picoF). C CONSTS(31) is K_pCa in component calcium_pump_current (millimolar). C CONSTS(32) is g_pK in component potassium_pump_current (nanoS_per_picoF). C STATES(19) is Ca_SR in component calcium_dynamics (millimolar). C ALGBRC(74) is i_rel in component calcium_dynamics (millimolar_per_millisecond). C ALGBRC(66) is i_up in component calcium_dynamics (millimolar_per_millisecond). C ALGBRC(67) is i_leak in component calcium_dynamics (millimolar_per_millisecond). C ALGBRC(68) is i_xfer in component calcium_dynamics (millimolar_per_millisecond). C ALGBRC(73) is O in component calcium_dynamics (dimensionless). C STATES(20) is R_prime in component calcium_dynamics (dimensionless). C ALGBRC(71) is k1 in component calcium_dynamics (per_millimolar2_per_millisecond). C ALGBRC(72) is k2 in component calcium_dynamics (per_millimolar_per_millisecond). C CONSTS(33) is k1_prime in component calcium_dynamics (per_millimolar2_per_millisecond). C CONSTS(34) is k2_prime in component calcium_dynamics (per_millimolar_per_millisecond). C CONSTS(35) is k3 in component calcium_dynamics (per_millisecond). C CONSTS(36) is k4 in component calcium_dynamics (per_millisecond). C CONSTS(37) is EC in component calcium_dynamics (millimolar). C CONSTS(38) is max_sr in component calcium_dynamics (dimensionless). C CONSTS(39) is min_sr in component calcium_dynamics (dimensionless). C ALGBRC(69) is kcasr in component calcium_dynamics (dimensionless). C CONSTS(40) is V_rel in component calcium_dynamics (per_millisecond). C CONSTS(41) is V_xfer in component calcium_dynamics (per_millisecond). C CONSTS(42) is K_up in component calcium_dynamics (millimolar). C CONSTS(43) is V_leak in component calcium_dynamics (per_millisecond). C CONSTS(44) is Vmax_up in component calcium_dynamics (millimolar_per_millisecond). C ALGBRC(70) is Ca_i_bufc in component calcium_dynamics (dimensionless). C ALGBRC(75) is Ca_sr_bufsr in component calcium_dynamics (dimensionless). C ALGBRC(76) is Ca_ss_bufss in component calcium_dynamics (dimensionless). C CONSTS(45) is Buf_c in component calcium_dynamics (millimolar). C CONSTS(46) is K_buf_c in component calcium_dynamics (millimolar). C CONSTS(47) is Buf_sr in component calcium_dynamics (millimolar). C CONSTS(48) is K_buf_sr in component calcium_dynamics (millimolar). C CONSTS(49) is Buf_ss in component calcium_dynamics (millimolar). C CONSTS(50) is K_buf_ss in component calcium_dynamics (millimolar). C CONSTS(51) is V_sr in component calcium_dynamics (micrometre3). C CONSTS(52) is V_ss in component calcium_dynamics (micrometre3). C RATES(1) is d/dt V in component membrane (millivolt). C RATES(5) is d/dt y in component hyperpolarization_activated_current_y_gate (dimensionless). C RATES(6) is d/dt Xr1 in component rapid_time_dependent_potassium_current_Xr1_gate (dimensionless). C RATES(7) is d/dt Xr2 in component rapid_time_dependent_potassium_current_Xr2_gate (dimensionless). C RATES(8) is d/dt Xs in component slow_time_dependent_potassium_current_Xs_gate (dimensionless). C RATES(9) is d/dt m in component fast_sodium_current_m_gate (dimensionless). C RATES(10) is d/dt h in component fast_sodium_current_h_gate (dimensionless). C RATES(11) is d/dt j in component fast_sodium_current_j_gate (dimensionless). C RATES(13) is d/dt d in component L_type_Ca_current_d_gate (dimensionless). C RATES(14) is d/dt f in component L_type_Ca_current_f_gate (dimensionless). C RATES(15) is d/dt f2 in component L_type_Ca_current_f2_gate (dimensionless). C RATES(16) is d/dt fCass in component L_type_Ca_current_fCass_gate (dimensionless). C RATES(17) is d/dt s in component transient_outward_current_s_gate (dimensionless). C RATES(18) is d/dt r in component transient_outward_current_r_gate (dimensionless). C RATES(20) is d/dt R_prime in component calcium_dynamics (dimensionless). C RATES(4) is d/dt Ca_i in component calcium_dynamics (millimolar). C RATES(19) is d/dt Ca_SR in component calcium_dynamics (millimolar). C RATES(12) is d/dt Ca_ss in component calcium_dynamics (millimolar). C RATES(3) is d/dt Na_i in component sodium_dynamics (millimolar). C RATES(2) is d/dt K_i in component potassium_dynamics (millimolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = -69.1370441635924 CONSTS(1) = 8314.472 CONSTS(2) = 310 CONSTS(3) = 96485.3415 CONSTS(4) = 0.185 CONSTS(5) = 0.016404 CONSTS(6) = 0.03 CONSTS(7) = 5.4 CONSTS(8) = 140 STATES(2) = 136.781894160227 STATES(3) = 8.80420286531673 CONSTS(9) = 2 STATES(4) = 0.000101878186157052 CONSTS(10) = 0.0145654 CONSTS(11) = 0.0234346 STATES(5) = 0.0457562667986602 CONSTS(12) = 0.065 CONSTS(13) = 0.0918 STATES(6) = 0.00550281999719088 STATES(7) = 0.313213286437995 CONSTS(14) = 0.2352 STATES(8) = 0.00953708522974789 CONSTS(15) = 130.5744 STATES(9) = 0.0417391656294997 STATES(10) = 0.190678733735145 STATES(11) = 0.238219836154029 CONSTS(16) = 0.00029 CONSTS(17) = 3.98e-5 STATES(12) = 0.000446818714055411 STATES(13) = 0.000287906256206415 STATES(14) = 0.989328560287987 STATES(15) = 0.995474890442185 STATES(16) = 0.999955429598213 CONSTS(18) = 0.000592 CONSTS(19) = 0.08184 STATES(17) = 0.96386101799501 STATES(18) = 0.00103618091196912 CONSTS(20) = 0.0227 CONSTS(21) = 2.724 CONSTS(22) = 1 CONSTS(23) = 40 CONSTS(24) = 1000 CONSTS(25) = 0.1 CONSTS(26) = 2.5 CONSTS(27) = 0.35 CONSTS(28) = 1.38 CONSTS(29) = 87.5 CONSTS(30) = 0.1238 CONSTS(31) = 0.0005 CONSTS(32) = 0.0146 STATES(19) = 3.10836886659417 STATES(20) = 0.991580051907845 CONSTS(33) = 0.15 CONSTS(34) = 0.045 CONSTS(35) = 0.06 CONSTS(36) = 0.005 CONSTS(37) = 1.5 CONSTS(38) = 2.5 CONSTS(39) = 1 CONSTS(40) = 0.102 CONSTS(41) = 0.0038 CONSTS(42) = 0.00025 CONSTS(43) = 0.00036 CONSTS(44) = 0.006375 CONSTS(45) = 0.2 CONSTS(46) = 0.001 CONSTS(47) = 10 CONSTS(48) = 0.3 CONSTS(49) = 0.4 CONSTS(50) = 0.00025 CONSTS(51) = 0.001094 CONSTS(52) = 5.468e-5 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(9) = 1.00000/(1.00000+EXP((STATES(1)+20.0000)/7.00000)) ALGBRC(23) = 1102.50*EXP(- STATES(1)+27.0000 ** 2.00000/225.000)+200.000/(1.00000+EXP((13.0000 - STATES(1))/10.0000))+180.000/(1.00000+EXP((STATES(1)+30.0000)/10.0000))+20.0000 RATES(14) = (ALGBRC(9) - STATES(14))/ALGBRC(23) ALGBRC(10) = 0.670000/(1.00000+EXP((STATES(1)+35.0000)/7.00000))+0.330000 ALGBRC(24) = 562.000*EXP(- STATES(1)+27.0000 ** 2.00000/240.000)+31.0000/(1.00000+EXP((25.0000 - STATES(1))/10.0000))+80.0000/(1.00000+EXP((STATES(1)+30.0000)/10.0000)) RATES(15) = (ALGBRC(10) - STATES(15))/ALGBRC(24) ALGBRC(11) = 0.600000/(1.00000+STATES(12)/0.0500000 ** 2.00000)+0.400000 ALGBRC(25) = 80.0000/(1.00000+STATES(12)/0.0500000 ** 2.00000)+2.00000 RATES(16) = (ALGBRC(11) - STATES(16))/ALGBRC(25) ALGBRC(12) = 1.00000/(1.00000+EXP((STATES(1)+27.0000)/13.0000)) ALGBRC(26) = 85.0000*EXP(- STATES(1)+25.0000 ** 2.00000/320.000)+5.00000/(1.00000+EXP((STATES(1) - 40.0000)/5.00000))+42.0000 RATES(17) = (ALGBRC(12) - STATES(17))/ALGBRC(26) ALGBRC(13) = 1.00000/(1.00000+EXP((20.0000 - STATES(1))/13.0000)) ALGBRC(27) = 10.4500*EXP(- STATES(1)+40.0000 ** 2.00000/1800.00)+7.30000 RATES(18) = (ALGBRC(13) - STATES(18))/ALGBRC(27) ALGBRC(1) = 1.00000/(1.00000+EXP((STATES(1)+80.6000)/6.80000)) ALGBRC(15) = 1.00000*EXP(- 2.90000 - 0.0400000*STATES(1)) ALGBRC(29) = 1.00000*EXP(3.60000+ 0.110000*STATES(1)) ALGBRC(38) = 4000.00/(ALGBRC(15)+ALGBRC(29)) RATES(5) = (ALGBRC(1) - STATES(5))/ALGBRC(38) ALGBRC(2) = 1.00000/(1.00000+EXP((- 26.0000 - STATES(1))/7.00000)) ALGBRC(16) = 450.000/(1.00000+EXP((- 45.0000 - STATES(1))/10.0000)) ALGBRC(30) = 6.00000/(1.00000+EXP((STATES(1)+30.0000)/11.5000)) ALGBRC(39) = 1.00000*ALGBRC(16)*ALGBRC(30) RATES(6) = (ALGBRC(2) - STATES(6))/ALGBRC(39) ALGBRC(3) = 1.00000/(1.00000+EXP((STATES(1)+88.0000)/24.0000)) ALGBRC(17) = 3.00000/(1.00000+EXP((- 60.0000 - STATES(1))/20.0000)) ALGBRC(31) = 1.12000/(1.00000+EXP((STATES(1) - 60.0000)/20.0000)) ALGBRC(40) = 1.00000*ALGBRC(17)*ALGBRC(31) RATES(7) = (ALGBRC(3) - STATES(7))/ALGBRC(40) ALGBRC(4) = 1.00000/(1.00000+EXP((- 5.00000 - STATES(1))/14.0000)) ALGBRC(18) = 1400.00/ (1.00000+EXP((5.00000 - STATES(1))/6.00000)) ** (1.0 / 2) ALGBRC(32) = 1.00000/(1.00000+EXP((STATES(1) - 35.0000)/15.0000)) ALGBRC(41) = 1.00000*ALGBRC(18)*ALGBRC(32)+80.0000 RATES(8) = (ALGBRC(4) - STATES(8))/ALGBRC(41) ALGBRC(5) = 1.00000/1.00000+EXP((- 56.8600 - STATES(1))/9.03000) ** 2.00000 ALGBRC(19) = 1.00000/(1.00000+EXP((- 60.0000 - STATES(1))/5.00000)) ALGBRC(33) = 0.100000/(1.00000+EXP((STATES(1)+35.0000)/5.00000))+0.100000/(1.00000+EXP((STATES(1) - 50.0000)/200.000)) ALGBRC(42) = 1.00000*ALGBRC(19)*ALGBRC(33) RATES(9) = (ALGBRC(5) - STATES(9))/ALGBRC(42) ALGBRC(6) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000 ALGBRC(20) = TERNRY(STATES(1).LT.- 40.0000, 0.0570000*EXP(- (STATES(1)+80.0000)/6.80000), 0.00000) ALGBRC(34) = TERNRY(STATES(1).LT.- 40.0000, 2.70000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.348500*STATES(1)), 0.770000/( 0.130000*(1.00000+EXP((STATES(1)+10.6600)/- 11.1000)))) ALGBRC(43) = 1.00000/(ALGBRC(20)+ALGBRC(34)) RATES(10) = (ALGBRC(6) - STATES(10))/ALGBRC(43) ALGBRC(7) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000 ALGBRC(21) = TERNRY(STATES(1).LT.- 40.0000, (( ( - 25428.0*EXP( 0.244400*STATES(1)) - 6.94800e-06*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/1.00000)/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))), 0.00000) ALGBRC(35) = TERNRY(STATES(1).LT.- 40.0000, ( 0.0242400*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))), ( 0.600000*EXP( 0.0570000*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000)))) ALGBRC(44) = 1.00000/(ALGBRC(21)+ALGBRC(35)) RATES(11) = (ALGBRC(7) - STATES(11))/ALGBRC(44) ALGBRC(8) = 1.00000/(1.00000+EXP((- 8.00000 - STATES(1))/7.50000)) ALGBRC(22) = 1.40000/(1.00000+EXP((- 35.0000 - STATES(1))/13.0000))+0.250000 ALGBRC(36) = 1.40000/(1.00000+EXP((STATES(1)+5.00000)/5.00000)) ALGBRC(45) = 1.00000/(1.00000+EXP((50.0000 - STATES(1))/20.0000)) ALGBRC(47) = 1.00000*ALGBRC(22)*ALGBRC(36)+ALGBRC(45) RATES(13) = (ALGBRC(8) - STATES(13))/ALGBRC(47) ALGBRC(62) = (( (( CONSTS(21)*CONSTS(7))/(CONSTS(7)+CONSTS(22)))*STATES(3))/(STATES(3)+CONSTS(23)))/(1.00000+ 0.124500*EXP(( - 0.100000*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))+ 0.0353000*EXP(( - STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(14) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(8)/STATES(3)) ALGBRC(55) = CONSTS(15)*STATES(9) ** 3.00000*STATES(10)*STATES(11)*(STATES(1) - ALGBRC(14)) ALGBRC(56) = CONSTS(16)*(STATES(1) - ALGBRC(14)) ALGBRC(63) = ( CONSTS(24)*( EXP(( CONSTS(27)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** 3.00000*CONSTS(9) - EXP(( (CONSTS(27) - 1.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(8) ** 3.00000*STATES(4)*CONSTS(26)))/( (CONSTS(29) ** 3.00000+CONSTS(8) ** 3.00000)*(CONSTS(28)+CONSTS(9))*(1.00000+ CONSTS(25)*EXP(( (CONSTS(27) - 1.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2))))) ALGBRC(48) = STATES(5)*CONSTS(10)*(STATES(1) - ALGBRC(14)) RATES(3) = (( - 1.00000*(ALGBRC(55)+ALGBRC(56)+ALGBRC(48)+ 3.00000*ALGBRC(62)+ 3.00000*ALGBRC(63)))/( 1.00000*CONSTS(5)*CONSTS(3)))*CONSTS(4) ALGBRC(28) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(7)/STATES(2)) ALGBRC(51) = 1.00000/(1.00000+EXP( 0.100000*(STATES(1)+75.4400))) ALGBRC(52) = CONSTS(12)*ALGBRC(51)*((STATES(1) - 8.00000) - ALGBRC(28)) ALGBRC(59) = CONSTS(19)*STATES(18)*STATES(17)*(STATES(1) - ALGBRC(28)) ALGBRC(60) = 1.00000/(1.00000+EXP((5.00000 - STATES(1))/17.0000)) ALGBRC(61) = CONSTS(20)*ALGBRC(60)*(STATES(1) - ALGBRC(28)) ALGBRC(53) = CONSTS(13)* (CONSTS(7)/5.40000) ** (1.0 / 2)*STATES(6)*STATES(7)*(STATES(1) - ALGBRC(28)) ALGBRC(37) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(7)+ CONSTS(6)*CONSTS(8))/(STATES(2)+ CONSTS(6)*STATES(3))) ALGBRC(54) = CONSTS(14)*STATES(8) ** 2.00000*(STATES(1) - ALGBRC(37)) ALGBRC(57) = ( (( CONSTS(17)*STATES(13)*STATES(14)*STATES(15)*STATES(16)*4.00000*(STATES(1) - 15.0000)*CONSTS(3) ** 2.00000)/( CONSTS(1)*CONSTS(2)))*( 0.250000*STATES(12)*EXP(( 2.00000*(STATES(1) - 15.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(9)))/(EXP(( 2.00000*(STATES(1) - 15.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000) ALGBRC(46) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(9)/STATES(4)) ALGBRC(58) = CONSTS(18)*(STATES(1) - ALGBRC(46)) ALGBRC(65) = ( CONSTS(32)*(STATES(1) - ALGBRC(28)))/(1.00000+EXP((25.0000 - STATES(1))/5.98000)) ALGBRC(64) = ( CONSTS(30)*STATES(4))/(STATES(4)+CONSTS(31)) ALGBRC(49) = STATES(5)*CONSTS(11)*(STATES(1) - ALGBRC(28)) ALGBRC(50) = ALGBRC(48)+ALGBRC(49) RATES(1) = (- 1.00000/1.00000)*(ALGBRC(52)+ALGBRC(59)+ALGBRC(61)+ALGBRC(53)+ALGBRC(54)+ALGBRC(57)+ALGBRC(62)+ALGBRC(55)+ALGBRC(56)+ALGBRC(63)+ALGBRC(58)+ALGBRC(65)+ALGBRC(64)+ALGBRC(50)) RATES(2) = (( - 1.00000*((ALGBRC(52)+ALGBRC(59)+ALGBRC(49)+ALGBRC(61)+ALGBRC(53)+ALGBRC(54)+ALGBRC(65)) - 2.00000*ALGBRC(62)))/( 1.00000*CONSTS(5)*CONSTS(3)))*CONSTS(4) ALGBRC(66) = CONSTS(44)/(1.00000+CONSTS(42) ** 2.00000/STATES(4) ** 2.00000) ALGBRC(67) = CONSTS(43)*(STATES(19) - STATES(4)) ALGBRC(68) = CONSTS(41)*(STATES(12) - STATES(4)) ALGBRC(70) = 1.00000/(1.00000+( CONSTS(45)*CONSTS(46))/STATES(4)+CONSTS(46) ** 2.00000) RATES(4) = ALGBRC(70)*((( (ALGBRC(67) - ALGBRC(66))*CONSTS(51))/CONSTS(5)+ALGBRC(68)) - ( 1.00000*((ALGBRC(58)+ALGBRC(64)) - 2.00000*ALGBRC(63))*CONSTS(4))/( 2.00000*1.00000*CONSTS(5)*CONSTS(3))) ALGBRC(69) = CONSTS(38) - (CONSTS(38) - CONSTS(39))/(1.00000+CONSTS(37)/STATES(19) ** 2.00000) ALGBRC(72) = CONSTS(34)*ALGBRC(69) RATES(20) = - ALGBRC(72)*STATES(12)*STATES(20)+ CONSTS(36)*(1.00000 - STATES(20)) ALGBRC(71) = CONSTS(33)/ALGBRC(69) ALGBRC(73) = ( ALGBRC(71)*STATES(12) ** 2.00000*STATES(20))/(CONSTS(35)+ ALGBRC(71)*STATES(12) ** 2.00000) ALGBRC(74) = CONSTS(40)*ALGBRC(73)*(STATES(19) - STATES(12)) ALGBRC(75) = 1.00000/(1.00000+( CONSTS(47)*CONSTS(48))/STATES(19)+CONSTS(48) ** 2.00000) RATES(19) = ALGBRC(75)*(ALGBRC(66) - (ALGBRC(74)+ALGBRC(67))) ALGBRC(76) = 1.00000/(1.00000+( CONSTS(49)*CONSTS(50))/STATES(12)+CONSTS(50) ** 2.00000) RATES(12) = ALGBRC(76)*((( - 1.00000*ALGBRC(57)*CONSTS(4))/( 2.00000*1.00000*CONSTS(52)*CONSTS(3))+( ALGBRC(74)*CONSTS(51))/CONSTS(52)) - ( ALGBRC(68)*CONSTS(5))/CONSTS(52)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(9) = 1.00000/(1.00000+EXP((STATES(1)+20.0000)/7.00000)) ALGBRC(23) = 1102.50*EXP(- STATES(1)+27.0000 ** 2.00000/225.000)+200.000/(1.00000+EXP((13.0000 - STATES(1))/10.0000))+180.000/(1.00000+EXP((STATES(1)+30.0000)/10.0000))+20.0000 ALGBRC(10) = 0.670000/(1.00000+EXP((STATES(1)+35.0000)/7.00000))+0.330000 ALGBRC(24) = 562.000*EXP(- STATES(1)+27.0000 ** 2.00000/240.000)+31.0000/(1.00000+EXP((25.0000 - STATES(1))/10.0000))+80.0000/(1.00000+EXP((STATES(1)+30.0000)/10.0000)) ALGBRC(11) = 0.600000/(1.00000+STATES(12)/0.0500000 ** 2.00000)+0.400000 ALGBRC(25) = 80.0000/(1.00000+STATES(12)/0.0500000 ** 2.00000)+2.00000 ALGBRC(12) = 1.00000/(1.00000+EXP((STATES(1)+27.0000)/13.0000)) ALGBRC(26) = 85.0000*EXP(- STATES(1)+25.0000 ** 2.00000/320.000)+5.00000/(1.00000+EXP((STATES(1) - 40.0000)/5.00000))+42.0000 ALGBRC(13) = 1.00000/(1.00000+EXP((20.0000 - STATES(1))/13.0000)) ALGBRC(27) = 10.4500*EXP(- STATES(1)+40.0000 ** 2.00000/1800.00)+7.30000 ALGBRC(1) = 1.00000/(1.00000+EXP((STATES(1)+80.6000)/6.80000)) ALGBRC(15) = 1.00000*EXP(- 2.90000 - 0.0400000*STATES(1)) ALGBRC(29) = 1.00000*EXP(3.60000+ 0.110000*STATES(1)) ALGBRC(38) = 4000.00/(ALGBRC(15)+ALGBRC(29)) ALGBRC(2) = 1.00000/(1.00000+EXP((- 26.0000 - STATES(1))/7.00000)) ALGBRC(16) = 450.000/(1.00000+EXP((- 45.0000 - STATES(1))/10.0000)) ALGBRC(30) = 6.00000/(1.00000+EXP((STATES(1)+30.0000)/11.5000)) ALGBRC(39) = 1.00000*ALGBRC(16)*ALGBRC(30) ALGBRC(3) = 1.00000/(1.00000+EXP((STATES(1)+88.0000)/24.0000)) ALGBRC(17) = 3.00000/(1.00000+EXP((- 60.0000 - STATES(1))/20.0000)) ALGBRC(31) = 1.12000/(1.00000+EXP((STATES(1) - 60.0000)/20.0000)) ALGBRC(40) = 1.00000*ALGBRC(17)*ALGBRC(31) ALGBRC(4) = 1.00000/(1.00000+EXP((- 5.00000 - STATES(1))/14.0000)) ALGBRC(18) = 1400.00/ (1.00000+EXP((5.00000 - STATES(1))/6.00000)) ** (1.0 / 2) ALGBRC(32) = 1.00000/(1.00000+EXP((STATES(1) - 35.0000)/15.0000)) ALGBRC(41) = 1.00000*ALGBRC(18)*ALGBRC(32)+80.0000 ALGBRC(5) = 1.00000/1.00000+EXP((- 56.8600 - STATES(1))/9.03000) ** 2.00000 ALGBRC(19) = 1.00000/(1.00000+EXP((- 60.0000 - STATES(1))/5.00000)) ALGBRC(33) = 0.100000/(1.00000+EXP((STATES(1)+35.0000)/5.00000))+0.100000/(1.00000+EXP((STATES(1) - 50.0000)/200.000)) ALGBRC(42) = 1.00000*ALGBRC(19)*ALGBRC(33) ALGBRC(6) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000 ALGBRC(20) = TERNRY(STATES(1).LT.- 40.0000, 0.0570000*EXP(- (STATES(1)+80.0000)/6.80000), 0.00000) ALGBRC(34) = TERNRY(STATES(1).LT.- 40.0000, 2.70000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.348500*STATES(1)), 0.770000/( 0.130000*(1.00000+EXP((STATES(1)+10.6600)/- 11.1000)))) ALGBRC(43) = 1.00000/(ALGBRC(20)+ALGBRC(34)) ALGBRC(7) = 1.00000/1.00000+EXP((STATES(1)+71.5500)/7.43000) ** 2.00000 ALGBRC(21) = TERNRY(STATES(1).LT.- 40.0000, (( ( - 25428.0*EXP( 0.244400*STATES(1)) - 6.94800e-06*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/1.00000)/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))), 0.00000) ALGBRC(35) = TERNRY(STATES(1).LT.- 40.0000, ( 0.0242400*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))), ( 0.600000*EXP( 0.0570000*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000)))) ALGBRC(44) = 1.00000/(ALGBRC(21)+ALGBRC(35)) ALGBRC(8) = 1.00000/(1.00000+EXP((- 8.00000 - STATES(1))/7.50000)) ALGBRC(22) = 1.40000/(1.00000+EXP((- 35.0000 - STATES(1))/13.0000))+0.250000 ALGBRC(36) = 1.40000/(1.00000+EXP((STATES(1)+5.00000)/5.00000)) ALGBRC(45) = 1.00000/(1.00000+EXP((50.0000 - STATES(1))/20.0000)) ALGBRC(47) = 1.00000*ALGBRC(22)*ALGBRC(36)+ALGBRC(45) ALGBRC(62) = (( (( CONSTS(21)*CONSTS(7))/(CONSTS(7)+CONSTS(22)))*STATES(3))/(STATES(3)+CONSTS(23)))/(1.00000+ 0.124500*EXP(( - 0.100000*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))+ 0.0353000*EXP(( - STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(14) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(8)/STATES(3)) ALGBRC(55) = CONSTS(15)*STATES(9) ** 3.00000*STATES(10)*STATES(11)*(STATES(1) - ALGBRC(14)) ALGBRC(56) = CONSTS(16)*(STATES(1) - ALGBRC(14)) ALGBRC(63) = ( CONSTS(24)*( EXP(( CONSTS(27)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** 3.00000*CONSTS(9) - EXP(( (CONSTS(27) - 1.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(8) ** 3.00000*STATES(4)*CONSTS(26)))/( (CONSTS(29) ** 3.00000+CONSTS(8) ** 3.00000)*(CONSTS(28)+CONSTS(9))*(1.00000+ CONSTS(25)*EXP(( (CONSTS(27) - 1.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2))))) ALGBRC(48) = STATES(5)*CONSTS(10)*(STATES(1) - ALGBRC(14)) ALGBRC(28) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(7)/STATES(2)) ALGBRC(51) = 1.00000/(1.00000+EXP( 0.100000*(STATES(1)+75.4400))) ALGBRC(52) = CONSTS(12)*ALGBRC(51)*((STATES(1) - 8.00000) - ALGBRC(28)) ALGBRC(59) = CONSTS(19)*STATES(18)*STATES(17)*(STATES(1) - ALGBRC(28)) ALGBRC(60) = 1.00000/(1.00000+EXP((5.00000 - STATES(1))/17.0000)) ALGBRC(61) = CONSTS(20)*ALGBRC(60)*(STATES(1) - ALGBRC(28)) ALGBRC(53) = CONSTS(13)* (CONSTS(7)/5.40000) ** (1.0 / 2)*STATES(6)*STATES(7)*(STATES(1) - ALGBRC(28)) ALGBRC(37) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(7)+ CONSTS(6)*CONSTS(8))/(STATES(2)+ CONSTS(6)*STATES(3))) ALGBRC(54) = CONSTS(14)*STATES(8) ** 2.00000*(STATES(1) - ALGBRC(37)) ALGBRC(57) = ( (( CONSTS(17)*STATES(13)*STATES(14)*STATES(15)*STATES(16)*4.00000*(STATES(1) - 15.0000)*CONSTS(3) ** 2.00000)/( CONSTS(1)*CONSTS(2)))*( 0.250000*STATES(12)*EXP(( 2.00000*(STATES(1) - 15.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(9)))/(EXP(( 2.00000*(STATES(1) - 15.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - 1.00000) ALGBRC(46) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(9)/STATES(4)) ALGBRC(58) = CONSTS(18)*(STATES(1) - ALGBRC(46)) ALGBRC(65) = ( CONSTS(32)*(STATES(1) - ALGBRC(28)))/(1.00000+EXP((25.0000 - STATES(1))/5.98000)) ALGBRC(64) = ( CONSTS(30)*STATES(4))/(STATES(4)+CONSTS(31)) ALGBRC(49) = STATES(5)*CONSTS(11)*(STATES(1) - ALGBRC(28)) ALGBRC(50) = ALGBRC(48)+ALGBRC(49) ALGBRC(66) = CONSTS(44)/(1.00000+CONSTS(42) ** 2.00000/STATES(4) ** 2.00000) ALGBRC(67) = CONSTS(43)*(STATES(19) - STATES(4)) ALGBRC(68) = CONSTS(41)*(STATES(12) - STATES(4)) ALGBRC(70) = 1.00000/(1.00000+( CONSTS(45)*CONSTS(46))/STATES(4)+CONSTS(46) ** 2.00000) ALGBRC(69) = CONSTS(38) - (CONSTS(38) - CONSTS(39))/(1.00000+CONSTS(37)/STATES(19) ** 2.00000) ALGBRC(72) = CONSTS(34)*ALGBRC(69) ALGBRC(71) = CONSTS(33)/ALGBRC(69) ALGBRC(73) = ( ALGBRC(71)*STATES(12) ** 2.00000*STATES(20))/(CONSTS(35)+ ALGBRC(71)*STATES(12) ** 2.00000) ALGBRC(74) = CONSTS(40)*ALGBRC(73)*(STATES(19) - STATES(12)) ALGBRC(75) = 1.00000/(1.00000+( CONSTS(47)*CONSTS(48))/STATES(19)+CONSTS(48) ** 2.00000) ALGBRC(76) = 1.00000/(1.00000+( CONSTS(49)*CONSTS(50))/STATES(12)+CONSTS(50) ** 2.00000) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END