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 60 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 69 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(29) is i_K1 in component time_independent_potassium_current (nanoA). C ALGBRC(52) is i_to in component transient_outward_current (nanoA). C ALGBRC(31) is i_Kr in component rapid_delayed_rectifier_potassium_current (nanoA). C ALGBRC(33) is i_Ks in component slow_delayed_rectifier_potassium_current (nanoA). C ALGBRC(43) is i_Ca_L_K_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(48) is i_Ca_L_K_ds in component L_type_Ca_channel (nanoA). C ALGBRC(53) is i_NaK in component sodium_potassium_pump (nanoA). C ALGBRC(34) is i_Na in component fast_sodium_current (nanoA). C ALGBRC(36) is i_b_Na in component sodium_background_current (nanoA). C ALGBRC(35) is i_p_Na in component persistent_sodium_current (nanoA). C ALGBRC(44) is i_Ca_L_Na_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(49) is i_Ca_L_Na_ds in component L_type_Ca_channel (nanoA). C ALGBRC(54) is i_NaCa_cyt in component sodium_calcium_exchanger (nanoA). C ALGBRC(55) is i_NaCa_ds in component sodium_calcium_exchanger (nanoA). C ALGBRC(42) is i_Ca_L_Ca_cyt in component L_type_Ca_channel (nanoA). C ALGBRC(47) is i_Ca_L_Ca_ds in component L_type_Ca_channel (nanoA). C ALGBRC(51) is i_b_Ca in component calcium_background_current (nanoA). C ALGBRC(7) 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(16) is E_Na in component reversal_potentials (millivolt). C ALGBRC(21) is E_K in component reversal_potentials (millivolt). C ALGBRC(23) is E_Ks in component reversal_potentials (millivolt). C ALGBRC(25) is E_Ca in component reversal_potentials (millivolt). C ALGBRC(27) 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(16) is g_Kr1 in component rapid_delayed_rectifier_potassium_current (microS). C CONSTS(17) is g_Kr2 in component rapid_delayed_rectifier_potassium_current (microS). C STATES(5) is xr1 in component rapid_delayed_rectifier_potassium_current_xr1_gate (dimensionless). C STATES(6) is xr2 in component rapid_delayed_rectifier_potassium_current_xr2_gate (dimensionless). C ALGBRC(1) is alpha_xr1 in component rapid_delayed_rectifier_potassium_current_xr1_gate (per_second). C ALGBRC(10) is beta_xr1 in component rapid_delayed_rectifier_potassium_current_xr1_gate (per_second). C ALGBRC(2) is alpha_xr2 in component rapid_delayed_rectifier_potassium_current_xr2_gate (per_second). C ALGBRC(11) is beta_xr2 in component rapid_delayed_rectifier_potassium_current_xr2_gate (per_second). C CONSTS(18) is g_Ks in component slow_delayed_rectifier_potassium_current (microS). C STATES(7) is xs in component slow_delayed_rectifier_potassium_current_xs_gate (dimensionless). C ALGBRC(3) is alpha_xs in component slow_delayed_rectifier_potassium_current_xs_gate (per_second). C ALGBRC(12) is beta_xs in component slow_delayed_rectifier_potassium_current_xs_gate (per_second). C CONSTS(19) is g_Na in component fast_sodium_current (microS). C STATES(8) is m in component fast_sodium_current_m_gate (dimensionless). C STATES(9) is h in component fast_sodium_current_h_gate (dimensionless). C ALGBRC(13) 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(20) is delta_m in component fast_sodium_current_m_gate (millivolt). C ALGBRC(4) is E0_m in component fast_sodium_current_m_gate (millivolt). C ALGBRC(5) is alpha_h in component fast_sodium_current_h_gate (per_second). C ALGBRC(14) is beta_h in component fast_sodium_current_h_gate (per_second). C CONSTS(21) is shift_h in component fast_sodium_current_h_gate (millivolt). C CONSTS(22) is g_pna in component persistent_sodium_current (microS). C CONSTS(23) is g_bna in component sodium_background_current (microS). C ALGBRC(50) is i_Ca_L in component L_type_Ca_channel (nanoA). C CONSTS(24) is P_Ca_L in component L_type_Ca_channel (nanoA_per_millimolar). C CONSTS(25) is P_CaK in component L_type_Ca_channel (dimensionless). C CONSTS(26) is P_CaNa in component L_type_Ca_channel (dimensionless). C STATES(10) is Ca_ds in component intracellular_calcium_concentration (millimolar). C STATES(11) is d in component L_type_Ca_channel_d_gate (dimensionless). C ALGBRC(41) is CaChoncyt in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(46) is CaChonds in component L_type_Ca_channel_f_gate (dimensionless). C CONSTS(27) is KCaChoff in component L_type_Ca_channel (millimolar). C CONSTS(28) is Kmdsinact in component L_type_Ca_channel (millimolar). C CONSTS(29) is FrICa in component L_type_Ca_channel (dimensionless). C ALGBRC(15) 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(6) is E0_d in component L_type_Ca_channel_d_gate (millivolt). C CONSTS(30) is speed_d in component L_type_Ca_channel_d_gate (dimensionless). C STATES(12) is f in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(40) is CaChoffcyt in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(45) is CaChoffds in component L_type_Ca_channel_f_gate (dimensionless). C ALGBRC(38) is alpha_f in component L_type_Ca_channel_f_gate (per_second). C ALGBRC(39) is beta_f in component L_type_Ca_channel_f_gate (per_second). C CONSTS(31) is speed_f in component L_type_Ca_channel_f_gate (dimensionless). C CONSTS(32) is delta_f in component L_type_Ca_channel_f_gate (millivolt). C ALGBRC(37) is E0_f in component L_type_Ca_channel_f_gate (millivolt). C CONSTS(33) is g_bca in component calcium_background_current (microS). C CONSTS(34) is g_to in component transient_outward_current (microS). C CONSTS(35) is g_tos in component transient_outward_current (dimensionless). C STATES(13) is s in component transient_outward_current_s_gate (dimensionless). C STATES(14) is r in component transient_outward_current_r_gate (dimensionless). C ALGBRC(8) is alpha_s in component transient_outward_current_s_gate (per_second). C ALGBRC(17) is beta_s in component transient_outward_current_s_gate (per_second). C CONSTS(36) is i_NaK_max in component sodium_potassium_pump (nanoA). C CONSTS(37) is K_mK in component sodium_potassium_pump (millimolar). C CONSTS(38) is K_mNa in component sodium_potassium_pump (millimolar). C ALGBRC(56) is i_NaCa in component sodium_calcium_exchanger (nanoA). C CONSTS(39) is k_NaCa in component sodium_calcium_exchanger (nanoA). C CONSTS(40) is n_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(41) is d_NaCa in component sodium_calcium_exchanger (dimensionless). C CONSTS(42) is gamma in component sodium_calcium_exchanger (dimensionless). C CONSTS(43) is FRiNaCa in component sodium_calcium_exchanger (dimensionless). C ALGBRC(58) is i_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C CONSTS(67) is K_1 in component sarcoplasmic_reticulum_calcium_pump (dimensionless). C ALGBRC(57) is K_2 in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(44) is K_cyca in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(45) is K_xcs in component sarcoplasmic_reticulum_calcium_pump (dimensionless). C CONSTS(46) is K_srca in component sarcoplasmic_reticulum_calcium_pump (millimolar). C CONSTS(47) is alpha_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C CONSTS(48) is beta_up in component sarcoplasmic_reticulum_calcium_pump (millimolar_per_second). C STATES(15) is Ca_up in component intracellular_calcium_concentration (millimolar). C ALGBRC(59) is i_trans in component calcium_translocation (millimolar_per_second). C STATES(16) is Ca_rel in component intracellular_calcium_concentration (millimolar). C ALGBRC(60) is i_rel in component calcium_release (millimolar_per_second). C ALGBRC(9) is VoltDep in component calcium_release (dimensionless). C ALGBRC(24) is RegBindSite in component calcium_release (dimensionless). C ALGBRC(18) is CaiReg in component calcium_release (dimensionless). C ALGBRC(22) is CadsReg in component calcium_release (dimensionless). C ALGBRC(26) is ActRate in component calcium_release (per_second). C ALGBRC(28) is InactRate in component calcium_release (per_second). C CONSTS(49) is K_leak_rate in component calcium_release (per_second). C CONSTS(50) is K_m_rel in component calcium_release (per_second). C CONSTS(51) is K_m_Ca_cyt in component calcium_release (millimolar). C CONSTS(52) is K_m_Ca_ds in component calcium_release (millimolar). C ALGBRC(32) is PrecFrac in component calcium_release (dimensionless). C STATES(17) is ActFrac in component calcium_release (dimensionless). C STATES(18) is ProdFrac in component calcium_release (dimensionless). C ALGBRC(30) is SpeedRel in component calcium_release (dimensionless). C CONSTS(69) is V_i in component intracellular_calcium_concentration (micrometre3). C STATES(19) is Ca_Calmod in component intracellular_calcium_concentration (millimolar). C STATES(20) is Ca_Trop in component intracellular_calcium_concentration (millimolar). C CONSTS(53) is Calmod in component intracellular_calcium_concentration (millimolar). C CONSTS(54) is Trop in component intracellular_calcium_concentration (millimolar). C CONSTS(55) is alpha_Calmod in component intracellular_calcium_concentration (per_millimolar_second). C CONSTS(56) is beta_Calmod in component intracellular_calcium_concentration (per_second). C CONSTS(57) is alpha_Trop in component intracellular_calcium_concentration (per_millimolar_second). C CONSTS(58) is beta_Trop in component intracellular_calcium_concentration (per_second). C CONSTS(59) is radius in component intracellular_calcium_concentration (micrometre). C CONSTS(60) is length in component intracellular_calcium_concentration (micrometre). C CONSTS(66) is V_Cell in component intracellular_calcium_concentration (micrometre3). C CONSTS(68) is V_i_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(61) is V_ds_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(62) is V_rel_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(63) is V_e_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(64) is V_up_ratio in component intracellular_calcium_concentration (dimensionless). C CONSTS(65) 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 xr1 in component rapid_delayed_rectifier_potassium_current_xr1_gate (dimensionless). C RATES(6) is d/dt xr2 in component rapid_delayed_rectifier_potassium_current_xr2_gate (dimensionless). C RATES(7) is d/dt xs in component slow_delayed_rectifier_potassium_current_xs_gate (dimensionless). C RATES(8) is d/dt m in component fast_sodium_current_m_gate (dimensionless). C RATES(9) is d/dt h in component fast_sodium_current_h_gate (dimensionless). C RATES(11) is d/dt d in component L_type_Ca_channel_d_gate (dimensionless). C RATES(12) is d/dt f in component L_type_Ca_channel_f_gate (dimensionless). C RATES(13) is d/dt s in component transient_outward_current_s_gate (dimensionless). C RATES(14) is d/dt r in component transient_outward_current_r_gate (dimensionless). C RATES(17) is d/dt ActFrac in component calcium_release (dimensionless). C RATES(18) 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(19) is d/dt Ca_Calmod in component intracellular_calcium_concentration (millimolar). C RATES(20) is d/dt Ca_Trop in component intracellular_calcium_concentration (millimolar). C RATES(10) is d/dt Ca_ds in component intracellular_calcium_concentration (millimolar). C RATES(15) is d/dt Ca_up in component intracellular_calcium_concentration (millimolar). C RATES(16) is d/dt Ca_rel in component intracellular_calcium_concentration (millimolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = -93.0550060340878 CONSTS(1) = 8314.472 CONSTS(2) = 310 CONSTS(3) = 96485.3415 CONSTS(4) = 9.5e-5 CONSTS(5) = 0.1 CONSTS(6) = 600 CONSTS(7) = 1 CONSTS(8) = 0.002 CONSTS(9) = -6 CONSTS(10) = 0.03 CONSTS(11) = 4 CONSTS(12) = 140 STATES(2) = 138.49601832864 STATES(3) = 5.68929064089788 CONSTS(13) = 2 STATES(4) = 5.60867201979414e-6 CONSTS(14) = 10 CONSTS(15) = 0.5 CONSTS(16) = 0.0028 CONSTS(17) = 0.0017 STATES(5) = 9.88715446781661e-6 STATES(6) = 2.15138346929839e-7 CONSTS(18) = 0.0016 STATES(7) = 6.72192033116639e-7 CONSTS(19) = 0.5 STATES(8) = 0.00157541794600382 STATES(9) = 0.99465397024286 CONSTS(20) = 1e-5 CONSTS(21) = 0 CONSTS(22) = 0.0027 CONSTS(23) = 0.0006 CONSTS(24) = 1 CONSTS(25) = 0.002 CONSTS(26) = 0.01 STATES(10) = 2.15623822848619e-7 STATES(11) = 2.27643784381792e-8 CONSTS(27) = 0.01 CONSTS(28) = 0.001 CONSTS(29) = 0.7 CONSTS(30) = 3 STATES(12) = 4.03082807230434e-9 CONSTS(31) = 0.3 CONSTS(32) = 0.0001 CONSTS(33) = 0.00025 CONSTS(34) = 0.005 CONSTS(35) = 0 STATES(13) = 0.999870016703514 STATES(14) = 1.8398417043009e-8 CONSTS(36) = 0.7 CONSTS(37) = 1 CONSTS(38) = 40 CONSTS(39) = 0.0005 CONSTS(40) = 3 CONSTS(41) = 0 CONSTS(42) = 0.2 CONSTS(43) = 0.001 CONSTS(44) = 0.0003 CONSTS(45) = 0.4 CONSTS(46) = 0.5 CONSTS(47) = 0.4 CONSTS(48) = 0.03 STATES(15) = 0.187470810108547 STATES(16) = 0.185609773872992 CONSTS(49) = 0.05 CONSTS(50) = 250 CONSTS(51) = 0.0005 CONSTS(52) = 0.01 STATES(17) = 0.000183030061767109 STATES(18) = 0.0109931117325847 STATES(19) = 0.000221858224298955 STATES(20) = 0.00013982468565579 CONSTS(53) = 0.02 CONSTS(54) = 0.05 CONSTS(55) = 100000 CONSTS(56) = 50 CONSTS(57) = 100000 CONSTS(58) = 200 CONSTS(59) = 12 CONSTS(60) = 74 CONSTS(61) = 0.1 CONSTS(62) = 0.1 CONSTS(63) = 0.4 CONSTS(64) = 0.01 CONSTS(65) = 10 CONSTS(66) = ( 3.14159*CONSTS(59)/1000.00 ** 2.00000*CONSTS(60))/1000.00 CONSTS(67) = ( CONSTS(44)*CONSTS(45))/CONSTS(46) CONSTS(68) = ((1.00000 - CONSTS(63)) - CONSTS(64)) - CONSTS(62) CONSTS(69) = CONSTS(66)*CONSTS(68) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(14) = 333.000*(1.00000/(1.00000+EXP(- (STATES(1)+4.00000)/5.00000)) - STATES(14)) ALGBRC(1) = 50.0000/(1.00000+EXP(- (STATES(1) - 5.00000)/9.00000)) ALGBRC(10) = 0.0500000*EXP(- (STATES(1) - 20.0000)/15.0000) RATES(5) = ALGBRC(1)*(1.00000 - STATES(5)) - ALGBRC(10)*STATES(5) ALGBRC(2) = 50.0000/(1.00000+EXP(- (STATES(1) - 5.00000)/9.00000)) ALGBRC(11) = 0.400000*EXP(- (STATES(1)+30.0000)/30.0000 ** 3.00000) RATES(6) = ALGBRC(2)*(1.00000 - STATES(6)) - ALGBRC(11)*STATES(6) ALGBRC(3) = 14.0000/(1.00000+EXP(- (STATES(1) - 40.0000)/9.00000)) ALGBRC(12) = 1.00000*EXP(- STATES(1)/45.0000) RATES(7) = ALGBRC(3)*(1.00000 - STATES(7)) - ALGBRC(12)*STATES(7) ALGBRC(5) = 20.0000*EXP( - 0.125000*((STATES(1)+75.0000) - CONSTS(21))) ALGBRC(14) = 2000.00/(1.00000+ 320.000*EXP( - 0.100000*((STATES(1)+75.0000) - CONSTS(21)))) RATES(9) = ALGBRC(5)*(1.00000 - STATES(9)) - ALGBRC(14)*STATES(9) ALGBRC(8) = 0.0330000*EXP(- STATES(1)/17.0000) ALGBRC(17) = 33.0000/(1.00000+EXP( - 0.125000*(STATES(1)+10.0000))) RATES(13) = ALGBRC(8)*(1.00000 - STATES(13)) - ALGBRC(17)*STATES(13) ALGBRC(4) = STATES(1)+41.0000 ALGBRC(13) = TERNRY(ABS(ALGBRC(4)).LT.CONSTS(20), 2000.00, ( 200.000*ALGBRC(4))/(1.00000 - EXP( - 0.100000*ALGBRC(4)))) ALGBRC(19) = 8000.00*EXP( - 0.0560000*(STATES(1)+66.0000)) RATES(8) = ALGBRC(13)*(1.00000 - STATES(8)) - ALGBRC(19)*STATES(8) ALGBRC(6) = (STATES(1)+24.0000) - 5.00000 ALGBRC(15) = TERNRY(ABS(ALGBRC(6)).LT.0.000100000, 120.000, ( 30.0000*ALGBRC(6))/(1.00000 - EXP(- ALGBRC(6)/4.00000))) ALGBRC(20) = TERNRY(ABS(ALGBRC(6)).LT.0.000100000, 120.000, ( 12.0000*ALGBRC(6))/(EXP(ALGBRC(6)/10.0000) - 1.00000)) RATES(11) = CONSTS(30)*( ALGBRC(15)*(1.00000 - STATES(11)) - ALGBRC(20)*STATES(11)) ALGBRC(18) = STATES(4)/(STATES(4)+CONSTS(51)) ALGBRC(22) = STATES(10)/(STATES(10)+CONSTS(52)) ALGBRC(24) = ALGBRC(18)+ (1.00000 - ALGBRC(18))*ALGBRC(22) ALGBRC(28) = 60.0000+ 500.000*ALGBRC(24) ** 2.00000 ALGBRC(30) = TERNRY(STATES(1).LT.- 50.0000, 5.00000, 1.00000) RATES(18) = STATES(17)*ALGBRC(30)*ALGBRC(28) - ALGBRC(30)*1.00000*STATES(18) ALGBRC(9) = EXP( 0.0800000*(STATES(1) - 40.0000)) ALGBRC(26) = 0.00000*ALGBRC(9)+ 90.0000*ALGBRC(24) ** 2.00000 ALGBRC(32) = (1.00000 - STATES(17)) - STATES(18) RATES(17) = ALGBRC(32)*ALGBRC(30)*ALGBRC(26) - STATES(17)*ALGBRC(30)*ALGBRC(28) ALGBRC(40) = STATES(4)/(CONSTS(27)+STATES(4)) ALGBRC(37) = STATES(1)+34.0000 ALGBRC(38) = TERNRY(ABS(ALGBRC(37)).LT.CONSTS(32), 25.0000, ( 6.25000*ALGBRC(37))/(EXP(ALGBRC(37)/4.00000) - 1.00000)) ALGBRC(39) = 12.0000/(1.00000+EXP(( - 1.00000*(STATES(1)+34.0000))/4.00000)) RATES(12) = ( 120.000*(1.00000 - STATES(12))*ALGBRC(40)+ (1.00000 - STATES(12))*(1.00000 - ALGBRC(40)))*CONSTS(31)*ALGBRC(39) - ALGBRC(38)*STATES(12) ALGBRC(45) = STATES(10)/(CONSTS(28)+STATES(10)) ALGBRC(46) = (1.00000 - STATES(12))*(1.00000 - ALGBRC(45)) ALGBRC(47) = ((( CONSTS(29)*4.00000*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(10) = ( - 1.00000*ALGBRC(47))/( 2.00000*1.00000*CONSTS(61)*CONSTS(69)*CONSTS(3)) - STATES(10)*CONSTS(65) ALGBRC(21) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(11)/STATES(2)) ALGBRC(29) = ( (( CONSTS(15)*CONSTS(11))/(CONSTS(11)+CONSTS(14)))*(STATES(1) - ALGBRC(21)))/(1.00000+EXP(( ((STATES(1) - ALGBRC(21)) - 10.0000)*CONSTS(3)*1.25000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(52) = CONSTS(34)*(CONSTS(35)+ STATES(13)*(1.00000 - CONSTS(35)))*STATES(14)*(STATES(1) - ALGBRC(21)) ALGBRC(31) = (( ( CONSTS(16)*STATES(5)+ CONSTS(17)*STATES(6))*1.00000)/(1.00000+EXP((STATES(1)+9.00000)/22.4000)))*(STATES(1) - ALGBRC(21)) ALGBRC(23) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(11)+ CONSTS(10)*CONSTS(12))/(STATES(2)+ CONSTS(10)*STATES(3))) ALGBRC(33) = CONSTS(18)*STATES(7) ** 2.00000*(STATES(1) - ALGBRC(23)) ALGBRC(41) = (1.00000 - STATES(12))*(1.00000 - ALGBRC(40)) ALGBRC(43) = ((( (1.00000 - CONSTS(29))*CONSTS(25)*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(48) = ((( CONSTS(29)*CONSTS(25)*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(53) = ( (( CONSTS(36)*CONSTS(11))/(CONSTS(37)+CONSTS(11)))*STATES(3))/(CONSTS(38)+STATES(3)) RATES(2) = (- 1.00000/( 1.00000*CONSTS(69)*CONSTS(3)))*((ALGBRC(29)+ALGBRC(31)+ALGBRC(33)+ALGBRC(43)+ALGBRC(48)+ALGBRC(52)) - 2.00000*ALGBRC(53)) ALGBRC(27) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(12)+ 0.120000*CONSTS(11))/(STATES(3)+ 0.120000*STATES(2))) ALGBRC(34) = CONSTS(19)*STATES(8) ** 3.00000*STATES(9)*(STATES(1) - ALGBRC(27)) ALGBRC(16) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(12)/STATES(3)) ALGBRC(36) = CONSTS(23)*(STATES(1) - ALGBRC(16)) ALGBRC(35) = (( CONSTS(22)*1.00000)/(1.00000+EXP(- (STATES(1)+52.0000)/8.00000)))*(STATES(1) - ALGBRC(16)) ALGBRC(44) = ((( (1.00000 - CONSTS(29))*CONSTS(26)*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(49) = ((( CONSTS(29)*CONSTS(26)*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(54) = ( (1.00000 - CONSTS(43))*CONSTS(39)*( EXP(( CONSTS(42)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(40)*CONSTS(13) - EXP(( (CONSTS(42) - 1.00000)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(40)*STATES(4)))/( (1.00000+ CONSTS(41)*( STATES(4)*CONSTS(12) ** CONSTS(40)+ CONSTS(13)*STATES(3) ** CONSTS(40)))*(1.00000+STATES(4)/0.00690000)) RATES(3) = (- 1.00000/( 1.00000*CONSTS(69)*CONSTS(3)))*(ALGBRC(34)+ALGBRC(35)+ALGBRC(36)+ 3.00000*ALGBRC(53)+ 3.00000*ALGBRC(54)+ALGBRC(44)+ALGBRC(49)) ALGBRC(55) = ( CONSTS(43)*CONSTS(39)*( EXP(( CONSTS(42)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(40)*CONSTS(13) - EXP(( (CONSTS(42) - 1.00000)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(40)*STATES(10)))/( (1.00000+ CONSTS(41)*( STATES(10)*CONSTS(12) ** CONSTS(40)+ CONSTS(13)*STATES(3) ** CONSTS(40)))*(1.00000+STATES(10)/0.00690000)) ALGBRC(42) = ((( (1.00000 - CONSTS(29))*4.00000*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(25) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(13)/STATES(4)) ALGBRC(51) = CONSTS(33)*(STATES(1) - ALGBRC(25)) ALGBRC(7) = 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(7)+ALGBRC(29)+ALGBRC(52)+ALGBRC(31)+ALGBRC(33)+ALGBRC(53)+ALGBRC(34)+ALGBRC(36)+ALGBRC(35)+ALGBRC(44)+ALGBRC(49)+ALGBRC(54)+ALGBRC(55)+ALGBRC(42)+ALGBRC(47)+ALGBRC(43)+ALGBRC(48)+ALGBRC(51)) ALGBRC(57) = STATES(4)+ STATES(15)*CONSTS(67)+ CONSTS(44)*CONSTS(45)+CONSTS(44) ALGBRC(58) = (STATES(4)/ALGBRC(57))*CONSTS(47) - (( STATES(15)*CONSTS(67))/ALGBRC(57))*CONSTS(48) ALGBRC(59) = 50.0000*(STATES(15) - STATES(16)) RATES(15) = (CONSTS(68)/CONSTS(64))*ALGBRC(58) - ALGBRC(59) RATES(19) = CONSTS(55)*STATES(4)*(CONSTS(53) - STATES(19)) - CONSTS(56)*STATES(19) ALGBRC(60) = ( STATES(17)/(STATES(17)+0.250000) ** 2.00000*CONSTS(50)+CONSTS(49))*STATES(16) RATES(16) = (CONSTS(64)/CONSTS(62))*ALGBRC(59) - ALGBRC(60) RATES(20) = CONSTS(57)*STATES(4)*(CONSTS(54) - STATES(20)) - CONSTS(58)*STATES(20) RATES(4) = ((( (- 1.00000/( 2.00000*1.00000*CONSTS(69)*CONSTS(3)))*(((ALGBRC(42)+ALGBRC(51)) - 2.00000*ALGBRC(54)) - 2.00000*ALGBRC(55))+ STATES(10)*CONSTS(61)*CONSTS(65)+( ALGBRC(60)*CONSTS(62))/CONSTS(68)) - RATES(19)) - RATES(20)) - ALGBRC(58) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 50.0000/(1.00000+EXP(- (STATES(1) - 5.00000)/9.00000)) ALGBRC(10) = 0.0500000*EXP(- (STATES(1) - 20.0000)/15.0000) ALGBRC(2) = 50.0000/(1.00000+EXP(- (STATES(1) - 5.00000)/9.00000)) ALGBRC(11) = 0.400000*EXP(- (STATES(1)+30.0000)/30.0000 ** 3.00000) ALGBRC(3) = 14.0000/(1.00000+EXP(- (STATES(1) - 40.0000)/9.00000)) ALGBRC(12) = 1.00000*EXP(- STATES(1)/45.0000) ALGBRC(5) = 20.0000*EXP( - 0.125000*((STATES(1)+75.0000) - CONSTS(21))) ALGBRC(14) = 2000.00/(1.00000+ 320.000*EXP( - 0.100000*((STATES(1)+75.0000) - CONSTS(21)))) ALGBRC(8) = 0.0330000*EXP(- STATES(1)/17.0000) ALGBRC(17) = 33.0000/(1.00000+EXP( - 0.125000*(STATES(1)+10.0000))) ALGBRC(4) = STATES(1)+41.0000 ALGBRC(13) = TERNRY(ABS(ALGBRC(4)).LT.CONSTS(20), 2000.00, ( 200.000*ALGBRC(4))/(1.00000 - EXP( - 0.100000*ALGBRC(4)))) ALGBRC(19) = 8000.00*EXP( - 0.0560000*(STATES(1)+66.0000)) ALGBRC(6) = (STATES(1)+24.0000) - 5.00000 ALGBRC(15) = TERNRY(ABS(ALGBRC(6)).LT.0.000100000, 120.000, ( 30.0000*ALGBRC(6))/(1.00000 - EXP(- ALGBRC(6)/4.00000))) ALGBRC(20) = TERNRY(ABS(ALGBRC(6)).LT.0.000100000, 120.000, ( 12.0000*ALGBRC(6))/(EXP(ALGBRC(6)/10.0000) - 1.00000)) ALGBRC(18) = STATES(4)/(STATES(4)+CONSTS(51)) ALGBRC(22) = STATES(10)/(STATES(10)+CONSTS(52)) ALGBRC(24) = ALGBRC(18)+ (1.00000 - ALGBRC(18))*ALGBRC(22) ALGBRC(28) = 60.0000+ 500.000*ALGBRC(24) ** 2.00000 ALGBRC(30) = TERNRY(STATES(1).LT.- 50.0000, 5.00000, 1.00000) ALGBRC(9) = EXP( 0.0800000*(STATES(1) - 40.0000)) ALGBRC(26) = 0.00000*ALGBRC(9)+ 90.0000*ALGBRC(24) ** 2.00000 ALGBRC(32) = (1.00000 - STATES(17)) - STATES(18) ALGBRC(40) = STATES(4)/(CONSTS(27)+STATES(4)) ALGBRC(37) = STATES(1)+34.0000 ALGBRC(38) = TERNRY(ABS(ALGBRC(37)).LT.CONSTS(32), 25.0000, ( 6.25000*ALGBRC(37))/(EXP(ALGBRC(37)/4.00000) - 1.00000)) ALGBRC(39) = 12.0000/(1.00000+EXP(( - 1.00000*(STATES(1)+34.0000))/4.00000)) ALGBRC(45) = STATES(10)/(CONSTS(28)+STATES(10)) ALGBRC(46) = (1.00000 - STATES(12))*(1.00000 - ALGBRC(45)) ALGBRC(47) = ((( CONSTS(29)*4.00000*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(21) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(11)/STATES(2)) ALGBRC(29) = ( (( CONSTS(15)*CONSTS(11))/(CONSTS(11)+CONSTS(14)))*(STATES(1) - ALGBRC(21)))/(1.00000+EXP(( ((STATES(1) - ALGBRC(21)) - 10.0000)*CONSTS(3)*1.25000)/( CONSTS(1)*CONSTS(2)))) ALGBRC(52) = CONSTS(34)*(CONSTS(35)+ STATES(13)*(1.00000 - CONSTS(35)))*STATES(14)*(STATES(1) - ALGBRC(21)) ALGBRC(31) = (( ( CONSTS(16)*STATES(5)+ CONSTS(17)*STATES(6))*1.00000)/(1.00000+EXP((STATES(1)+9.00000)/22.4000)))*(STATES(1) - ALGBRC(21)) ALGBRC(23) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(11)+ CONSTS(10)*CONSTS(12))/(STATES(2)+ CONSTS(10)*STATES(3))) ALGBRC(33) = CONSTS(18)*STATES(7) ** 2.00000*(STATES(1) - ALGBRC(23)) ALGBRC(41) = (1.00000 - STATES(12))*(1.00000 - ALGBRC(40)) ALGBRC(43) = ((( (1.00000 - CONSTS(29))*CONSTS(25)*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(48) = ((( CONSTS(29)*CONSTS(25)*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(53) = ( (( CONSTS(36)*CONSTS(11))/(CONSTS(37)+CONSTS(11)))*STATES(3))/(CONSTS(38)+STATES(3)) ALGBRC(27) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log((CONSTS(12)+ 0.120000*CONSTS(11))/(STATES(3)+ 0.120000*STATES(2))) ALGBRC(34) = CONSTS(19)*STATES(8) ** 3.00000*STATES(9)*(STATES(1) - ALGBRC(27)) ALGBRC(16) = (( CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(12)/STATES(3)) ALGBRC(36) = CONSTS(23)*(STATES(1) - ALGBRC(16)) ALGBRC(35) = (( CONSTS(22)*1.00000)/(1.00000+EXP(- (STATES(1)+52.0000)/8.00000)))*(STATES(1) - ALGBRC(16)) ALGBRC(44) = ((( (1.00000 - CONSTS(29))*CONSTS(26)*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(49) = ((( CONSTS(29)*CONSTS(26)*CONSTS(24)*STATES(11)*ALGBRC(46)*(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(54) = ( (1.00000 - CONSTS(43))*CONSTS(39)*( EXP(( CONSTS(42)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(40)*CONSTS(13) - EXP(( (CONSTS(42) - 1.00000)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(40)*STATES(4)))/( (1.00000+ CONSTS(41)*( STATES(4)*CONSTS(12) ** CONSTS(40)+ CONSTS(13)*STATES(3) ** CONSTS(40)))*(1.00000+STATES(4)/0.00690000)) ALGBRC(55) = ( CONSTS(43)*CONSTS(39)*( EXP(( CONSTS(42)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*STATES(3) ** CONSTS(40)*CONSTS(13) - EXP(( (CONSTS(42) - 1.00000)*(CONSTS(40) - 2.00000)*STATES(1)*CONSTS(3))/( CONSTS(1)*CONSTS(2)))*CONSTS(12) ** CONSTS(40)*STATES(10)))/( (1.00000+ CONSTS(41)*( STATES(10)*CONSTS(12) ** CONSTS(40)+ CONSTS(13)*STATES(3) ** CONSTS(40)))*(1.00000+STATES(10)/0.00690000)) ALGBRC(42) = ((( (1.00000 - CONSTS(29))*4.00000*CONSTS(24)*STATES(11)*ALGBRC(41)*(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(25) = (( 0.500000*CONSTS(1)*CONSTS(2))/CONSTS(3))*log(CONSTS(13)/STATES(4)) ALGBRC(51) = CONSTS(33)*(STATES(1) - ALGBRC(25)) ALGBRC(7) = 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(57) = STATES(4)+ STATES(15)*CONSTS(67)+ CONSTS(44)*CONSTS(45)+CONSTS(44) ALGBRC(58) = (STATES(4)/ALGBRC(57))*CONSTS(47) - (( STATES(15)*CONSTS(67))/ALGBRC(57))*CONSTS(48) ALGBRC(59) = 50.0000*(STATES(15) - STATES(16)) ALGBRC(60) = ( STATES(17)/(STATES(17)+0.250000) ** 2.00000*CONSTS(50)+CONSTS(49))*STATES(16) ALGBRC(50) = ALGBRC(42)+ALGBRC(43)+ALGBRC(44)+ALGBRC(47)+ALGBRC(48)+ALGBRC(49) ALGBRC(56) = ALGBRC(54)+ALGBRC(55) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END