Generated Code
The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
C C There are a total of 54 entries in the algebraic variable array. C There are a total of 21 entries in each of the rate and state variable arrays. C There are a total of 72 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is V in component membrane (millivolt). C CONSTS(1) is R in component membrane (joule_per_kilomole_kelvin). C CONSTS(2) is T in component membrane (kelvin). C CONSTS(3) is F in component membrane (coulomb_per_mole). C CONSTS(4) is Cm in component membrane (microF). C ALGBRC(30) is i_K1 in component time_independent_potassium_current (nanoA). C ALGBRC(46) is i_to in component transient_outward_current (nanoA). C ALGBRC(32) is i_Kr in component rapid_delayed_rectifier_potassium_current (nanoA). C ALGBRC(34) is i_Ks in component slow_delayed_rectifier_potassium_current (nanoA). C ALGBRC(39) is i_Ca_L_K_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(42) is i_Ca_L_K_ds in component L_type_Ca_channel (nanoA). C ALGBRC(47) is i_NaK in component sodium_potassium_pump (nanoA). C ALGBRC(35) is i_Na in component fast_sodium_current (nanoA). C ALGBRC(37) is i_b_Na in component sodium_background_current (nanoA). C ALGBRC(36) is i_p_Na in component persistent_sodium_current (nanoA). C ALGBRC(40) is i_Ca_L_Na_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(43) is i_Ca_L_Na_ds in component L_type_Ca_channel (nanoA). C ALGBRC(48) is i_NaCa_cyt in component sodium_calcium_exchanger (nanoA). C ALGBRC(49) is i_NaCa_ds in component sodium_calcium_exchanger (nanoA). C ALGBRC(38) is i_Ca_L_Ca_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(41) is i_Ca_L_Ca_ds in component L_type_Ca_channel (nanoA). C ALGBRC(45) is i_b_Ca in component calcium_background_current (nanoA). C ALGBRC(8) is i_Stim in component membrane (nanoA). C CONSTS(5) is stim_start in component membrane (second). C CONSTS(6) is stim_end in component membrane (second). C CONSTS(7) is stim_period in component membrane (second). C CONSTS(8) is stim_duration in component membrane (second). C CONSTS(9) is stim_amplitude in component membrane (nanoA). C ALGBRC(17) is E_Na in component reversal_potentials (millivolt). C ALGBRC(22) is E_K in component reversal_potentials (millivolt). C ALGBRC(24) is E_Ks in component reversal_potentials (millivolt). C ALGBRC(26) is E_Ca in component reversal_potentials (millivolt). C ALGBRC(28) is E_mh in component reversal_potentials (millivolt). C CONSTS(10) is P_kna in component reversal_potentials (dimensionless). C CONSTS(11) is K_o in component extracellular_potassium_concentration (millimolar). C CONSTS(12) is Na_o in component extracellular_sodium_concentration (millimolar). C STATES(2) is K_i in component intracellular_potassium_concentration (millimolar). C STATES(3) is Na_i in component intracellular_sodium_concentration (millimolar). C CONSTS(13) is Ca_o in component extracellular_calcium_concentration (millimolar). C STATES(4) is Ca_i in component intracellular_calcium_concentration (millimolar). C CONSTS(14) is K_mk1 in component time_independent_potassium_current (millimolar). C CONSTS(15) is g_K1 in component time_independent_potassium_current (microS). C CONSTS(66) is g_Kr in component rapid_delayed_rectifier_potassium_current (microS). C STATES(5) is xr in component rapid_delayed_rectifier_potassium_current_xr_gate (dimensionless). C ALGBRC(1) is xr_inf in component rapid_delayed_rectifier_potassium_current_xr_gate (dimensionless). C ALGBRC(10) is tau_xr in component rapid_delayed_rectifier_potassium_current_xr_gate (second). C CONSTS(67) is g_Ks in component slow_delayed_rectifier_potassium_current (microS). C STATES(6) is xs in component slow_delayed_rectifier_potassium_current_xs_gate (dimensionless). C ALGBRC(2) is xs_inf in component slow_delayed_rectifier_potassium_current_xs_gate (dimensionless). C ALGBRC(11) is tau_xs in component slow_delayed_rectifier_potassium_current_xs_gate (second). C CONSTS(68) is g_Na in component fast_sodium_current (microS). C CONSTS(16) is nachanneldensity in component fast_sodium_current (per_microF). C CONSTS(17) is gnachannel in component fast_sodium_current (microS). C STATES(7) is m in component fast_sodium_current_m_gate (dimensionless). C STATES(8) is h in component fast_sodium_current_h_gate (dimensionless). C CONSTS(18) is proton in component fast_sodium_current_h_gate (dimensionless). C ALGBRC(12) is alpha_m in component fast_sodium_current_m_gate (per_second). C ALGBRC(19) is beta_m in component fast_sodium_current_m_gate (per_second). C CONSTS(19) is delta_m in component fast_sodium_current_m_gate (millivolt). C ALGBRC(3) is E0_m in component fast_sodium_current_m_gate (millivolt). C ALGBRC(4) is alpha_h in component fast_sodium_current_h_gate (per_second). C ALGBRC(13) is beta_h in component fast_sodium_current_h_gate (per_second). C CONSTS(69) is shifth in component fast_sodium_current_h_gate (millivolt). C CONSTS(20) is g_pna in component persistent_sodium_current (microS). C CONSTS(21) is g_bna in component sodium_background_current (microS). C ALGBRC(44) is i_Ca_L in component L_type_Ca_channel (nanoA). C CONSTS(22) is P_Ca_L in component L_type_Ca_channel (nanoA_per_millimolar). C CONSTS(23) is P_CaK in component L_type_Ca_channel (dimensionless). C CONSTS(24) is P_CaNa in component L_type_Ca_channel (dimensionless). C STATES(9) is Ca_ds in component intracellular_calcium_concentration (millimolar). C STATES(10) is d in component L_type_Ca_channel_d_gate (dimensionless). C STATES(11) is f in component L_type_Ca_channel_f_gate (dimensionless). C STATES(12) is f2 in component L_type_Ca_channel_f2_gate (dimensionless). C STATES(13) is f2ds in component L_type_Ca_channel_f2ds_gate (dimensionless). C CONSTS(25) is Km_f2 in component L_type_Ca_channel (millimolar). C CONSTS(26) is Km_f2ds in component L_type_Ca_channel (millimolar). C CONSTS(27) is R_decay in component L_type_Ca_channel (per_second). C CONSTS(28) is FrICa in component L_type_Ca_channel (dimensionless). C ALGBRC(14) is alpha_d in component L_type_Ca_channel_d_gate (per_second). C ALGBRC(20) is beta_d in component L_type_Ca_channel_d_gate (per_second). C ALGBRC(5) is E0_d in component L_type_Ca_channel_d_gate (millivolt). C CONSTS(29) is speed_d in component L_type_Ca_channel_d_gate (dimensionless). C ALGBRC(15) is alpha_f in component L_type_Ca_channel_f_gate (per_second). C ALGBRC(21) is beta_f in component L_type_Ca_channel_f_gate (per_second). C CONSTS(30) is speed_f in component L_type_Ca_channel_f_gate (dimensionless). C CONSTS(31) is delta_f in component L_type_Ca_channel_f_gate (millivolt). C ALGBRC(6) is E0_f in component L_type_Ca_channel_f_gate (millivolt). C CONSTS(32) is g_bca in component calcium_background_current (microS). C CONSTS(33) is g_to in component transient_outward_current (microS). C CONSTS(34) is g_tos in component transient_outward_current (dimensionless). C STATES(14) is s in component transient_outward_current_s_gate (dimensionless). C STATES(15) is r in component transient_outward_current_r_gate (dimensionless). C ALGBRC(7) is alpha_s in component transient_outward_current_s_gate (per_second). C ALGBRC(16) is beta_s in component transient_outward_current_s_gate (per_second). C CONSTS(35) is i_NaK_max in component sodium_potassium_pump (nanoA). C CONSTS(36) is K_mK in component sodium_potassium_pump (millimolar). C CONSTS(37) is K_mNa in component sodium_potassium_pump (millimolar). C ALGBRC(51) is i_NaCa in component sodium_calcium_exchanger (nanoA). C CONSTS(38) is k_NaCa in component sodium_calcium_exchanger (nanoA). C CONSTS(39) is n_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(40) is d_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(41) is gamma in component sodium_calcium_exchanger (dimensionless). C CONSTS(42) is FRiNaCa in component sodium_calcium_exchanger (dimensionless). C ALGBRC(52) is i_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C CONSTS(70) is K_1 in component sarcoplasmic_reticulum_calcium_pump (dimensionless). C ALGBRC(50) is K_2 in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(43) is K_cyca in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(44) is K_xcs in component sarcoplasmic_reticulum_calcium_pump (dimensionless). C CONSTS(45) is K_srca in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(46) is alpha_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C CONSTS(47) is beta_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C STATES(16) is Ca_up in component intracellular_calcium_concentration (millimolar). C ALGBRC(53) is i_trans in component calcium_translocation (millimolar_per_second). C STATES(17) is Ca_rel in component intracellular_calcium_concentration (millimolar). C ALGBRC(54) is i_rel in component calcium_release (millimolar_per_second). C ALGBRC(9) is VoltDep in component calcium_release (dimensionless). C ALGBRC(25) is RegBindSite in component calcium_release (dimensionless). C ALGBRC(18) is CaiReg in component calcium_release (dimensionless). C ALGBRC(23) is CadsReg in component calcium_release (dimensionless). C ALGBRC(27) is ActRate in component calcium_release (per_second). C ALGBRC(29) is InactRate in component calcium_release (per_second). C CONSTS(48) is K_leak_rate in component calcium_release (per_second). C CONSTS(49) is K_m_rel in component calcium_release (per_second). C CONSTS(50) is K_m_Ca_cyt in component calcium_release (millimolar). C CONSTS(51) is K_m_Ca_ds in component calcium_release (millimolar). C ALGBRC(33) is PrecFrac in component calcium_release (dimensionless). C STATES(18) is ActFrac in component calcium_release (dimensionless). C STATES(19) is ProdFrac in component calcium_release (dimensionless). C ALGBRC(31) is SpeedRel in component calcium_release (dimensionless). C CONSTS(72) is V_i in component intracellular_calcium_concentration (micrometre3). C STATES(20) is Ca_Calmod in component intracellular_calcium_concentration (millimolar). C STATES(21) is Ca_Trop in component intracellular_calcium_concentration (millimolar). C CONSTS(52) is Calmod in component intracellular_calcium_concentration (millimolar). C CONSTS(53) is Trop in component intracellular_calcium_concentration (millimolar). C CONSTS(54) is alpha_Calmod in component intracellular_calcium_concentration (per_millimolar_second). C CONSTS(55) is beta_Calmod in component intracellular_calcium_concentration (per_second). C CONSTS(56) is alpha_Trop in component intracellular_calcium_concentration (per_millimolar_second). C CONSTS(57) is beta_Trop in component intracellular_calcium_concentration (per_second). C CONSTS(58) is radius in component intracellular_calcium_concentration (micrometre). C CONSTS(59) is length in component intracellular_calcium_concentration (micrometre). C CONSTS(65) is V_Cell in component intracellular_calcium_concentration (micrometre3). C CONSTS(71) is V_i_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(60) is V_ds_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(61) is V_rel_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(62) is V_e_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(63) is V_up_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(64) is Kdecay in component intracellular_calcium_concentration (per_second). C RATES(1) is d/dt V in component membrane (millivolt). C RATES(5) is d/dt xr in component rapid_delayed_rectifier_potassium_current_xr_gate (dimensionless). C RATES(6) is d/dt xs in component slow_delayed_rectifier_potassium_current_xs_gate (dimensionless). C RATES(7) is d/dt m in component fast_sodium_current_m_gate (dimensionless). C RATES(8) is d/dt h in component fast_sodium_current_h_gate (dimensionless). C RATES(10) is d/dt d in component L_type_Ca_channel_d_gate (dimensionless). C RATES(11) is d/dt f in component L_type_Ca_channel_f_gate (dimensionless). C RATES(12) is d/dt f2 in component L_type_Ca_channel_f2_gate (dimensionless). C RATES(13) is d/dt f2ds in component L_type_Ca_channel_f2ds_gate (dimensionless). C RATES(14) is d/dt s in component transient_outward_current_s_gate (dimensionless). C RATES(15) is d/dt r in component transient_outward_current_r_gate (dimensionless). C RATES(18) is d/dt ActFrac in component calcium_release (dimensionless). C RATES(19) is d/dt ProdFrac in component calcium_release (dimensionless). C RATES(3) is d/dt Na_i in component intracellular_sodium_concentration (millimolar). C RATES(2) is d/dt K_i in component intracellular_potassium_concentration (millimolar). C RATES(4) is d/dt Ca_i in component intracellular_calcium_concentration (millimolar). C RATES(20) is d/dt Ca_Calmod in component intracellular_calcium_concentration (millimolar). C RATES(21) is d/dt Ca_Trop in component intracellular_calcium_concentration (millimolar). C RATES(9) is d/dt Ca_ds in component intracellular_calcium_concentration (millimolar). C RATES(16) is d/dt Ca_up in component intracellular_calcium_concentration (millimolar). C RATES(17) is d/dt Ca_rel in component intracellular_calcium_concentration (millimolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = -89.1374183 CONSTS(1) = 8314.472 CONSTS(2) = 310 CONSTS(3) = 96485.3415 CONSTS(4) = 0.000121 CONSTS(5) = 0.1 CONSTS(6) = 9 CONSTS(7) = 1 CONSTS(8) = 0.003 CONSTS(9) = -2 CONSTS(10) = 0.03 CONSTS(11) = 4 CONSTS(12) = 140 STATES(2) = 138.7963753 STATES(3) = 5.6633707 CONSTS(13) = 2 STATES(4) = 5.44e-5 CONSTS(14) = 10 CONSTS(15) = 0.2 STATES(5) = 1.98e-5 STATES(6) = 0.0381477 CONSTS(16) = 1075 CONSTS(17) = 20 STATES(7) = 0.0026891 STATES(8) = 0.9873107 CONSTS(18) = 3.98e-5 CONSTS(19) = 1e-5 CONSTS(20) = 0.005 CONSTS(21) = 0.0006 CONSTS(22) = 0.11 CONSTS(23) = 0.002 CONSTS(24) = 0.01 STATES(9) = 0.0018991 STATES(10) = 1.44e-4 STATES(11) = 0.9999993 STATES(12) = 0.254433 STATES(13) = 0.9292189 CONSTS(25) = 100000 CONSTS(26) = 0.001 CONSTS(27) = 20 CONSTS(28) = 1 CONSTS(29) = 3 CONSTS(30) = 0.3 CONSTS(31) = 0.0001 CONSTS(32) = 0.00025 CONSTS(33) = 0.005 CONSTS(34) = 0 STATES(14) = 0.7352365 STATES(15) = 0 CONSTS(35) = 0.7 CONSTS(36) = 1 CONSTS(37) = 40 CONSTS(38) = 0.00012 CONSTS(39) = 3 CONSTS(40) = 0 CONSTS(41) = 0.5 CONSTS(42) = 0.001 CONSTS(43) = 0.0003 CONSTS(44) = 0.4 CONSTS(45) = 0.5 CONSTS(46) = 0.4 CONSTS(47) = 0.03 STATES(16) = 0.7625025 STATES(17) = 0.7368094 CONSTS(48) = 0.05 CONSTS(49) = 250 CONSTS(50) = 0.0005 CONSTS(51) = 0.01 STATES(18) = 0.0101647 STATES(19) = 0.9584464 STATES(20) = 0.0018544 STATES(21) = 0.0012852 CONSTS(52) = 0.02 CONSTS(53) = 0.05 CONSTS(54) = 100000 CONSTS(55) = 50 CONSTS(56) = 100000 CONSTS(57) = 200 CONSTS(58) = 12 CONSTS(59) = 74 CONSTS(60) = 0.1 CONSTS(61) = 0.1 CONSTS(62) = 0.4 CONSTS(63) = 0.01 CONSTS(64) = 10 CONSTS(65) = ( 3.14159*CONSTS(58)/1000.00 ** 2.00000*CONSTS(59))/1000.00 CONSTS(66) = CONSTS(4)*7.70000* (CONSTS(11)/5.40000) ** (1.0 / 2) CONSTS(67) = CONSTS(4)*26.6000 CONSTS(68) = ( CONSTS(16)*CONSTS(4)*CONSTS(17)*(1.26000/(1.00000+CONSTS(18)/( 1000.00*2.51190e-06))+0.340000))/1.58000 CONSTS(69) = 32.7000/(1.00000+(CONSTS(18)/1000.00)/2.51190e-06) - 32.1800 CONSTS(70) = ( CONSTS(43)*CONSTS(44))/CONSTS(45) CONSTS(71) = ((1.00000 - CONSTS(62)) - CONSTS(63)) - CONSTS(61) CONSTS(72) = CONSTS(65)*CONSTS(71) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(12) = 1.00000 - 1.00000*(STATES(4)/(CONSTS(25)+STATES(4))+STATES(12)) RATES(13) = CONSTS(27)*(1.00000 - (STATES(9)/(CONSTS(26)+STATES(9))+STATES(13))) RATES(15) = 333.000*(1.00000/(1.00000+EXP(- (STATES(1)+4.00000)/5.00000)) - STATES(15)) ALGBRC(1) = 1.00000/(1.00000+EXP(- (STATES(1)+21.5000)/7.50000)) ALGBRC(10) = 0.00100000/(( 0.00138000*(STATES(1)+14.2000))/(1.00000 - EXP( - 0.123000*(STATES(1)+14.2000)))+( 0.000610000*(STATES(1)+38.9000))/(EXP( 0.145000*(STATES(1)+38.9000)) - 1.00000)) RATES(5) = (ALGBRC(1) - STATES(5))/ALGBRC(10) ALGBRC(2) = 1.00000/(1.00000+EXP(- (STATES(1) - 1.50000)/16.7000)) ALGBRC(11) = 0.00100000/(( 7.19000e-05*(STATES(1)+30.0000))/(1.00000 - EXP( - 0.148000*(STATES(1)+30.0000)))+( 0.000131000*(STATES(1)+30.0000))/(EXP( 0.0687000*(STATES(1)+30.0000)) - 1.00000)) RATES(6) = (ALGBRC(2) - STATES(6))/ALGBRC(11) ALGBRC(4) = 20.0000*EXP( - 0.125000*((STATES(1)+75.0000) - CONSTS(69))) ALGBRC(13) = 2000.00/(1.00000+ 320.000*EXP( - 0.100000*((STATES(1)+75.0000) - CONSTS(69)))) RATES(8) = ALGBRC(4)*(1.00000 - STATES(8)) - ALGBRC(13)*STATES(8) ALGBRC(7) = 0.0330000*EXP(- STATES(1)/17.0000) ALGBRC(16) = 33.0000/(1.00000+EXP( - 0.125000*(STATES(1)+10.0000))) RATES(14) = ALGBRC(7)*(1.00000 - STATES(14)) - ALGBRC(16)*STATES(14) ALGBRC(3) = STATES(1)+41.0000 ALGBRC(12) = TERNRY(ABS(ALGBRC(3)).LT.CONSTS(19), 2000.00, ( 200.000*ALGBRC(3))/(1.00000 - EXP( - 0.100000*ALGBRC(3)))) ALGBRC(19) = 8000.00*EXP( - 0.0560000*(STATES(1)+66.0000)) RATES(7) = ALGBRC(12)*(1.00000 - STATES(7)) - ALGBRC(19)*STATES(7) ALGBRC(5) = (STATES(1)+24.0000) - 5.00000 ALGBRC(14) = TERNRY(ABS(ALGBRC(5)).LT.0.000100000, 120.000, ( 30.0000*ALGBRC(5))/(1.00000 - EXP(- ALGBRC(5)/7.20000))) ALGBRC(20) = TERNRY(ABS(ALGBRC(5)).LT.0.000100000, 120.000, ( 12.0000*ALGBRC(5))/(EXP(ALGBRC(5)/( 2.50000*7.20000)) - 1.00000)) RATES(10) = CONSTS(29)*( ALGBRC(14)*(1.00000 - STATES(10)) - ALGBRC(20)*STATES(10)) ALGBRC(6) = STATES(1)+34.0000 ALGBRC(15) = TERNRY(ABS(ALGBRC(6)).LT.CONSTS(31), 25.0000, ( 6.25000*ALGBRC(6))/(EXP(ALGBRC(6)/5.10000) - 1.00000)) ALGBRC(21) = 12.0000/(1.00000+EXP(( - 1.00000*(STATES(1)+34.0000))/5.10000)) RATES(11) = CONSTS(30)*( ALGBRC(15)*(1.00000 - STATES(11)) - ALGBRC(21)*STATES(11)) ALGBRC(18) = STATES(4)/(STATES(4)+CONSTS(50)) ALGBRC(23) = STATES(9)/(STATES(9)+CONSTS(51)) ALGBRC(25) = ALGBRC(18)+ (1.00000 - ALGBRC(18))*ALGBRC(23) ALGBRC(29) = 60.0000+ 500.000*ALGBRC(25) ** 2.00000 ALGBRC(31) = TERNRY(STATES(1).LT.- 50.0000, 5.00000, 1.00000) RATES(19) = STATES(18)*ALGBRC(31)*ALGBRC(29) - ALGBRC(31)*1.00000*STATES(19) ALGBRC(9) = EXP( 0.0800000*(STATES(1) - 40.0000)) ALGBRC(27) = 0.00000*ALGBRC(9)+ 500.000*ALGBRC(25) ** 2.00000 ALGBRC(33) = (1.00000 - STATES(18)) - STATES(19) RATES(18) = ALGBRC(33)*ALGBRC(31)*ALGBRC(27) - STATES(18)*ALGBRC(31)*ALGBRC(29) ALGBRC(41) = ((( CONSTS(28)*4.00000*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))))*( STATES(4)*EXP(( 100.000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(13)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))) RATES(9) = ( - 1.00000*ALGBRC(41))/( 2.00000*1.00000*CONSTS(60)*CONSTS(72)*CONSTS(3)) - STATES(9)*CONSTS(64) ALGBRC(22) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(11)/STATES(2)) ALGBRC(30) = ( (( CONSTS(15)*CONSTS(11))/(CONSTS(11)+CONSTS(14)))*(STATES(1) - ALGBRC(22)))/(1.00000+EXP(( ((STATES(1) - ALGBRC(22)) - 10.0000)*CONSTS(3)*1.50000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(46) = CONSTS(33)*(CONSTS(34)+ STATES(14)*(1.00000 - CONSTS(34)))*STATES(15)*(STATES(1) - ALGBRC(22)) ALGBRC(32) = (( CONSTS(66)*STATES(5)*1.00000)/(1.00000+EXP((STATES(1)+9.00000)/22.4000)))*(STATES(1) - ALGBRC(22)) ALGBRC(24) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(11)+ CONSTS(10)*CONSTS(12))/(STATES(2)+ CONSTS(10)*STATES(3))) ALGBRC(34) = CONSTS(67)*STATES(6) ** 2.00000*(STATES(1) - ALGBRC(24)) ALGBRC(39) = ((( (1.00000 - CONSTS(28))*CONSTS(23)*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(2)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(11)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(42) = ((( CONSTS(28)*CONSTS(23)*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(2)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(11)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(47) = ( (( CONSTS(35)*CONSTS(11))/(CONSTS(36)+CONSTS(11)))*STATES(3))/(CONSTS(37)+STATES(3)) RATES(2) = (- 1.00000/( 1.00000*CONSTS(72)*CONSTS(3)))*((ALGBRC(30)+ALGBRC(32)+ALGBRC(34)+ALGBRC(39)+ALGBRC(42)+ALGBRC(46)) - 2.00000*ALGBRC(47)) ALGBRC(28) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(12)+ 0.120000*CONSTS(11))/(STATES(3)+ 0.120000*STATES(2))) ALGBRC(35) = CONSTS(68)*STATES(7) ** 3.00000*STATES(8)*(STATES(1) - ALGBRC(28)) ALGBRC(17) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(12)/STATES(3)) ALGBRC(37) = CONSTS(21)*(STATES(1) - ALGBRC(17)) ALGBRC(36) = (( CONSTS(4)*1.00000e+06*CONSTS(20)*(STATES(1) - 51.5397))/(1.00000+EXP(- (STATES(1)+58.0111)/7.03320)))/1000.00 ALGBRC(40) = ((( (1.00000 - CONSTS(28))*CONSTS(24)*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(3)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(12)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(43) = ((( CONSTS(28)*CONSTS(24)*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(3)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(12)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(48) = ( (1.00000 - CONSTS(42))*CONSTS(38)*( EXP(( CONSTS(41)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(39)*CONSTS(13) - EXP(( (CONSTS(41) - 1.00000)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(39)*STATES(4)))/( (1.00000+ CONSTS(40)*( STATES(4)*CONSTS(12) ** CONSTS(39)+ CONSTS(13)*STATES(3) ** CONSTS(39)))*(1.00000+STATES(4)/0.00690000)) RATES(3) = (- 1.00000/( 1.00000*CONSTS(72)*CONSTS(3)))*(ALGBRC(35)+ALGBRC(36)+ALGBRC(37)+ 3.00000*ALGBRC(47)+ 3.00000*ALGBRC(48)+ALGBRC(40)+ALGBRC(43)) ALGBRC(49) = ( CONSTS(42)*CONSTS(38)*( EXP(( CONSTS(41)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(39)*CONSTS(13) - EXP(( (CONSTS(41) - 1.00000)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(39)*STATES(9)))/( (1.00000+ CONSTS(40)*( STATES(9)*CONSTS(12) ** CONSTS(39)+ CONSTS(13)*STATES(3) ** CONSTS(39)))*(1.00000+STATES(9)/0.00690000)) ALGBRC(38) = ((( (1.00000 - CONSTS(28))*4.00000*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))))*( STATES(4)*EXP(( 100.000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(13)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(26) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(13)/STATES(4)) ALGBRC(45) = CONSTS(32)*(STATES(1) - ALGBRC(26)) ALGBRC(8) = TERNRY(VOI.GE.CONSTS(5).AND.VOI.LE.CONSTS(6).AND.(VOI - CONSTS(5)) - INT((VOI - CONSTS(5))/CONSTS(7))*CONSTS(7).LE.CONSTS(8), CONSTS(9), 0.00000) RATES(1) = (- 1.00000/CONSTS(4))*(ALGBRC(8)+ALGBRC(30)+ALGBRC(46)+ALGBRC(32)+ALGBRC(34)+ALGBRC(47)+ALGBRC(35)+ALGBRC(37)+ALGBRC(36)+ALGBRC(40)+ALGBRC(43)+ALGBRC(48)+ALGBRC(49)+ALGBRC(38)+ALGBRC(41)+ALGBRC(39)+ALGBRC(42)+ALGBRC(45)) ALGBRC(50) = STATES(4)+ STATES(16)*CONSTS(70)+ CONSTS(43)*CONSTS(44)+CONSTS(43) ALGBRC(52) = (STATES(4)/ALGBRC(50))*CONSTS(46) - (( STATES(16)*CONSTS(70))/ALGBRC(50))*CONSTS(47) ALGBRC(53) = 50.0000*(STATES(16) - STATES(17)) RATES(16) = (CONSTS(71)/CONSTS(63))*ALGBRC(52) - ALGBRC(53) RATES(20) = CONSTS(54)*STATES(4)*(CONSTS(52) - STATES(20)) - CONSTS(55)*STATES(20) ALGBRC(54) = ( STATES(18)/(STATES(18)+0.250000) ** 2.00000*CONSTS(49)+CONSTS(48))*STATES(17) RATES(17) = (CONSTS(63)/CONSTS(61))*ALGBRC(53) - ALGBRC(54) RATES(21) = CONSTS(56)*STATES(4)*(CONSTS(53) - STATES(21)) - CONSTS(57)*STATES(21) RATES(4) = ((( (- 1.00000/( 2.00000*1.00000*CONSTS(72)*CONSTS(3)))*((ALGBRC(38)+ALGBRC(45)) - 2.00000*ALGBRC(48))+ STATES(9)*CONSTS(60)*CONSTS(64)+( ALGBRC(54)*CONSTS(61))/CONSTS(71)) - RATES(20)) - RATES(21)) - ALGBRC(52) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1.00000/(1.00000+EXP(- (STATES(1)+21.5000)/7.50000)) ALGBRC(10) = 0.00100000/(( 0.00138000*(STATES(1)+14.2000))/(1.00000 - EXP( - 0.123000*(STATES(1)+14.2000)))+( 0.000610000*(STATES(1)+38.9000))/(EXP( 0.145000*(STATES(1)+38.9000)) - 1.00000)) ALGBRC(2) = 1.00000/(1.00000+EXP(- (STATES(1) - 1.50000)/16.7000)) ALGBRC(11) = 0.00100000/(( 7.19000e-05*(STATES(1)+30.0000))/(1.00000 - EXP( - 0.148000*(STATES(1)+30.0000)))+( 0.000131000*(STATES(1)+30.0000))/(EXP( 0.0687000*(STATES(1)+30.0000)) - 1.00000)) ALGBRC(4) = 20.0000*EXP( - 0.125000*((STATES(1)+75.0000) - CONSTS(69))) ALGBRC(13) = 2000.00/(1.00000+ 320.000*EXP( - 0.100000*((STATES(1)+75.0000) - CONSTS(69)))) ALGBRC(7) = 0.0330000*EXP(- STATES(1)/17.0000) ALGBRC(16) = 33.0000/(1.00000+EXP( - 0.125000*(STATES(1)+10.0000))) ALGBRC(3) = STATES(1)+41.0000 ALGBRC(12) = TERNRY(ABS(ALGBRC(3)).LT.CONSTS(19), 2000.00, ( 200.000*ALGBRC(3))/(1.00000 - EXP( - 0.100000*ALGBRC(3)))) ALGBRC(19) = 8000.00*EXP( - 0.0560000*(STATES(1)+66.0000)) ALGBRC(5) = (STATES(1)+24.0000) - 5.00000 ALGBRC(14) = TERNRY(ABS(ALGBRC(5)).LT.0.000100000, 120.000, ( 30.0000*ALGBRC(5))/(1.00000 - EXP(- ALGBRC(5)/7.20000))) ALGBRC(20) = TERNRY(ABS(ALGBRC(5)).LT.0.000100000, 120.000, ( 12.0000*ALGBRC(5))/(EXP(ALGBRC(5)/( 2.50000*7.20000)) - 1.00000)) ALGBRC(6) = STATES(1)+34.0000 ALGBRC(15) = TERNRY(ABS(ALGBRC(6)).LT.CONSTS(31), 25.0000, ( 6.25000*ALGBRC(6))/(EXP(ALGBRC(6)/5.10000) - 1.00000)) ALGBRC(21) = 12.0000/(1.00000+EXP(( - 1.00000*(STATES(1)+34.0000))/5.10000)) ALGBRC(18) = STATES(4)/(STATES(4)+CONSTS(50)) ALGBRC(23) = STATES(9)/(STATES(9)+CONSTS(51)) ALGBRC(25) = ALGBRC(18)+ (1.00000 - ALGBRC(18))*ALGBRC(23) ALGBRC(29) = 60.0000+ 500.000*ALGBRC(25) ** 2.00000 ALGBRC(31) = TERNRY(STATES(1).LT.- 50.0000, 5.00000, 1.00000) ALGBRC(9) = EXP( 0.0800000*(STATES(1) - 40.0000)) ALGBRC(27) = 0.00000*ALGBRC(9)+ 500.000*ALGBRC(25) ** 2.00000 ALGBRC(33) = (1.00000 - STATES(18)) - STATES(19) ALGBRC(41) = ((( CONSTS(28)*4.00000*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))))*( STATES(4)*EXP(( 100.000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(13)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(22) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(11)/STATES(2)) ALGBRC(30) = ( (( CONSTS(15)*CONSTS(11))/(CONSTS(11)+CONSTS(14)))*(STATES(1) - ALGBRC(22)))/(1.00000+EXP(( ((STATES(1) - ALGBRC(22)) - 10.0000)*CONSTS(3)*1.50000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(46) = CONSTS(33)*(CONSTS(34)+ STATES(14)*(1.00000 - CONSTS(34)))*STATES(15)*(STATES(1) - ALGBRC(22)) ALGBRC(32) = (( CONSTS(66)*STATES(5)*1.00000)/(1.00000+EXP((STATES(1)+9.00000)/22.4000)))*(STATES(1) - ALGBRC(22)) ALGBRC(24) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(11)+ CONSTS(10)*CONSTS(12))/(STATES(2)+ CONSTS(10)*STATES(3))) ALGBRC(34) = CONSTS(67)*STATES(6) ** 2.00000*(STATES(1) - ALGBRC(24)) ALGBRC(39) = ((( (1.00000 - CONSTS(28))*CONSTS(23)*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(2)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(11)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(42) = ((( CONSTS(28)*CONSTS(23)*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(2)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(11)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(47) = ( (( CONSTS(35)*CONSTS(11))/(CONSTS(36)+CONSTS(11)))*STATES(3))/(CONSTS(37)+STATES(3)) ALGBRC(28) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(12)+ 0.120000*CONSTS(11))/(STATES(3)+ 0.120000*STATES(2))) ALGBRC(35) = CONSTS(68)*STATES(7) ** 3.00000*STATES(8)*(STATES(1) - ALGBRC(28)) ALGBRC(17) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(12)/STATES(3)) ALGBRC(37) = CONSTS(21)*(STATES(1) - ALGBRC(17)) ALGBRC(36) = (( CONSTS(4)*1.00000e+06*CONSTS(20)*(STATES(1) - 51.5397))/(1.00000+EXP(- (STATES(1)+58.0111)/7.03320)))/1000.00 ALGBRC(40) = ((( (1.00000 - CONSTS(28))*CONSTS(24)*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(3)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(12)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(43) = ((( CONSTS(28)*CONSTS(24)*CONSTS(22)*STATES(10)*STATES(11)*STATES(13)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))))*( STATES(3)*EXP(( 50.0000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(12)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))) ALGBRC(48) = ( (1.00000 - CONSTS(42))*CONSTS(38)*( EXP(( CONSTS(41)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(39)*CONSTS(13) - EXP(( (CONSTS(41) - 1.00000)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(39)*STATES(4)))/( (1.00000+ CONSTS(40)*( STATES(4)*CONSTS(12) ** CONSTS(39)+ CONSTS(13)*STATES(3) ** CONSTS(39)))*(1.00000+STATES(4)/0.00690000)) ALGBRC(49) = ( CONSTS(42)*CONSTS(38)*( EXP(( CONSTS(41)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(39)*CONSTS(13) - EXP(( (CONSTS(41) - 1.00000)*(CONSTS(39) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(39)*STATES(9)))/( (1.00000+ CONSTS(40)*( STATES(9)*CONSTS(12) ** CONSTS(39)+ CONSTS(13)*STATES(3) ** CONSTS(39)))*(1.00000+STATES(9)/0.00690000)) ALGBRC(38) = ((( (1.00000 - CONSTS(28))*4.00000*CONSTS(22)*STATES(10)*STATES(11)*STATES(12)*(STATES(1) - 50.0000)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))/(1.00000 - EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))))*( STATES(4)*EXP(( 100.000*CONSTS(3))/( CONSTS(1)*CONSTS(2))) - CONSTS(13)*EXP(( - (STATES(1) - 50.0000)*CONSTS(3)*2.00000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(26) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(13)/STATES(4)) ALGBRC(45) = CONSTS(32)*(STATES(1) - ALGBRC(26)) ALGBRC(8) = TERNRY(VOI.GE.CONSTS(5).AND.VOI.LE.CONSTS(6).AND.(VOI - CONSTS(5)) - INT((VOI - CONSTS(5))/CONSTS(7))*CONSTS(7).LE.CONSTS(8), CONSTS(9), 0.00000) ALGBRC(50) = STATES(4)+ STATES(16)*CONSTS(70)+ CONSTS(43)*CONSTS(44)+CONSTS(43) ALGBRC(52) = (STATES(4)/ALGBRC(50))*CONSTS(46) - (( STATES(16)*CONSTS(70))/ALGBRC(50))*CONSTS(47) ALGBRC(53) = 50.0000*(STATES(16) - STATES(17)) ALGBRC(54) = ( STATES(18)/(STATES(18)+0.250000) ** 2.00000*CONSTS(49)+CONSTS(48))*STATES(17) ALGBRC(44) = ALGBRC(38)+ALGBRC(39)+ALGBRC(40)+ALGBRC(41)+ALGBRC(42)+ALGBRC(43) ALGBRC(51) = ALGBRC(48)+ALGBRC(49) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END