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 66 entries in the algebraic variable array. C There are a total of 35 entries in each of the rate and state variable arrays. C There are a total of 76 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 Cm in component membrane (microF_per_cm2). C CONSTS(2) is Vmyo in component membrane (microlitre). C CONSTS(3) is VJSR in component membrane (microlitre). C CONSTS(4) is VNSR in component membrane (microlitre). C CONSTS(5) is Vss in component membrane (microlitre). C CONSTS(6) is Acap in component membrane (cm2). C CONSTS(7) is Ko in component membrane (micromolar). C CONSTS(8) is Nao in component membrane (micromolar). C CONSTS(9) is Cao in component membrane (micromolar). C CONSTS(10) is Clo in component membrane (micromolar). C CONSTS(11) is Cli in component membrane (micromolar). C CONSTS(12) is R in component membrane (joule_per_mole_kelvin). C CONSTS(13) is T in component membrane (kelvin). C CONSTS(14) is F in component membrane (coulomb_per_millimole). C ALGBRC(1) is i_stim in component membrane (picoA_per_picoF). C CONSTS(15) is stim_start in component membrane (millisecond). C CONSTS(16) is stim_end in component membrane (millisecond). C CONSTS(17) is stim_period in component membrane (millisecond). C CONSTS(18) is stim_duration in component membrane (millisecond). C CONSTS(19) is stim_amplitude in component membrane (picoA_per_picoF). C ALGBRC(44) is i_CaL in component L_type_calcium_current (picoA_per_picoF). C ALGBRC(46) is i_CaT in component T_type_calcium_current (picoA_per_picoF). C ALGBRC(48) is i_pCa in component calcium_pump_current (picoA_per_picoF). C ALGBRC(50) is i_NaCa in component sodium_calcium_exchange_current (picoA_per_picoF). C ALGBRC(52) is i_Cab in component calcium_background_current (picoA_per_picoF). C ALGBRC(54) is i_Na in component fast_sodium_current (picoA_per_picoF). C ALGBRC(55) is i_Nab in component sodium_background_current (picoA_per_picoF). C ALGBRC(64) is i_NaK in component sodium_potassium_pump_current (picoA_per_picoF). C ALGBRC(57) is i_Kto_f in component fast_transient_outward_potassium_current (picoA_per_picoF). C ALGBRC(60) is i_K1 in component time_independent_potassium_current (picoA_per_picoF). C ALGBRC(61) is i_Ks in component slow_delayed_rectifier_potassium_current (picoA_per_picoF). C ALGBRC(58) is i_Kur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (picoA_per_picoF). C ALGBRC(59) is i_Kss in component non_inactivating_steady_state_potassium_current (picoA_per_picoF). C ALGBRC(66) is i_ClCa in component calcium_activated_chloride_current (picoA_per_picoF). C ALGBRC(62) is i_Kr in component rapid_delayed_rectifier_potassium_current (picoA_per_picoF). C STATES(2) is Cai in component calcium_concentration (micromolar). C STATES(3) is Cass in component calcium_concentration (micromolar). C STATES(4) is CaJSR in component calcium_concentration (micromolar). C STATES(5) is CaNSR in component calcium_concentration (micromolar). C ALGBRC(16) is Bi in component calcium_concentration (dimensionless). C ALGBRC(31) is Bss in component calcium_concentration (dimensionless). C ALGBRC(36) is BJSR in component calcium_concentration (dimensionless). C CONSTS(20) is CMDN_tot in component calcium_concentration (micromolar). C CONSTS(21) is CSQN_tot in component calcium_concentration (micromolar). C CONSTS(22) is Km_CMDN in component calcium_concentration (micromolar). C CONSTS(23) is Km_CSQN in component calcium_concentration (micromolar). C ALGBRC(45) is J_leak in component calcium_fluxes (micromolar_per_millisecond). C ALGBRC(40) is J_rel in component calcium_fluxes (micromolar_per_millisecond). C ALGBRC(47) is J_up in component calcium_fluxes (micromolar_per_millisecond). C ALGBRC(42) is J_tr in component calcium_fluxes (micromolar_per_millisecond). C ALGBRC(49) is J_trpn in component calcium_fluxes (micromolar_per_millisecond). C ALGBRC(43) is J_xfer in component calcium_fluxes (micromolar_per_millisecond). C CONSTS(24) is k_plus_htrpn in component calcium_fluxes (per_micromolar_millisecond). C CONSTS(25) is k_minus_htrpn in component calcium_fluxes (per_millisecond). C CONSTS(26) is k_plus_ltrpn in component calcium_fluxes (per_micromolar_millisecond). C CONSTS(27) is k_minus_ltrpn in component calcium_fluxes (per_millisecond). C STATES(6) is P_RyR in component calcium_fluxes (dimensionless). C CONSTS(28) is v1 in component calcium_fluxes (per_millisecond). C CONSTS(29) is tau_tr in component calcium_fluxes (millisecond). C CONSTS(30) is v2 in component calcium_fluxes (per_millisecond). C CONSTS(31) is tau_xfer in component calcium_fluxes (millisecond). C CONSTS(32) is v3 in component calcium_fluxes (micromolar_per_millisecond). C CONSTS(33) is Km_up in component calcium_fluxes (micromolar). C CONSTS(34) is LTRPN_tot in component calcium_buffering (micromolar). C CONSTS(35) is HTRPN_tot in component calcium_buffering (micromolar). C STATES(7) is LTRPN_Ca in component calcium_buffering (micromolar). C STATES(8) is HTRPN_Ca in component calcium_buffering (micromolar). C CONSTS(36) is i_CaL_max in component L_type_calcium_current (picoA_per_picoF). C STATES(9) is P_O1 in component ryanodine_receptors (dimensionless). C STATES(10) is P_O2 in component ryanodine_receptors (dimensionless). C ALGBRC(2) is P_C1 in component ryanodine_receptors (dimensionless). C STATES(11) is P_C2 in component ryanodine_receptors (dimensionless). C CONSTS(37) is k_plus_a in component ryanodine_receptors (micromolar4_per_millisecond). C CONSTS(38) is k_minus_a in component ryanodine_receptors (per_millisecond). C CONSTS(39) is k_plus_b in component ryanodine_receptors (micromolar3_per_millisecond). C CONSTS(40) is k_minus_b in component ryanodine_receptors (per_millisecond). C CONSTS(41) is k_plus_c in component ryanodine_receptors (per_millisecond). C CONSTS(42) is k_minus_c in component ryanodine_receptors (per_millisecond). C CONSTS(43) is m in component ryanodine_receptors (dimensionless). C CONSTS(44) is n in component ryanodine_receptors (dimensionless). C CONSTS(45) is E_CaL in component L_type_calcium_current (millivolt). C CONSTS(46) is g_CaL in component L_type_calcium_current (milliS_per_microF). C STATES(12) is O in component L_type_calcium_current (dimensionless). C ALGBRC(3) is C1 in component L_type_calcium_current (dimensionless). C STATES(13) is C2 in component L_type_calcium_current (dimensionless). C STATES(14) is C3 in component L_type_calcium_current (dimensionless). C STATES(15) is C4 in component L_type_calcium_current (dimensionless). C STATES(16) is I1 in component L_type_calcium_current (dimensionless). C STATES(17) is I2 in component L_type_calcium_current (dimensionless). C STATES(18) is I3 in component L_type_calcium_current (dimensionless). C ALGBRC(17) is alpha in component L_type_calcium_current (per_millisecond). C ALGBRC(32) is beta in component L_type_calcium_current (per_millisecond). C ALGBRC(37) is gamma in component L_type_calcium_current (per_millisecond). C ALGBRC(41) is Kpcf in component L_type_calcium_current (per_millisecond). C CONSTS(47) is Kpcb in component L_type_calcium_current (per_millisecond). C CONSTS(48) is Kpc_max in component L_type_calcium_current (per_millisecond). C CONSTS(49) is Kpc_half in component L_type_calcium_current (micromolar). C CONSTS(50) is E_CaT in component T_type_calcium_current (millivolt). C CONSTS(51) is g_CaT in component T_type_calcium_current (milliS_per_microF). C STATES(19) is b in component T_type_calcium_current_b_gate (dimensionless). C STATES(20) is g in component T_type_calcium_current_g_gate (dimensionless). C ALGBRC(4) is b_infinity in component T_type_calcium_current_b_gate (dimensionless). C ALGBRC(18) is tau_b in component T_type_calcium_current_b_gate (millisecond). C ALGBRC(5) is g_infinity in component T_type_calcium_current_g_gate (dimensionless). C ALGBRC(19) is tau_g in component T_type_calcium_current_g_gate (millisecond). C CONSTS(52) is i_pCa_max in component calcium_pump_current (picoA_per_picoF). C CONSTS(53) is Km_pCa in component calcium_pump_current (micromolar). C CONSTS(54) is k_NaCa in component sodium_calcium_exchange_current (picoA_per_picoF). C CONSTS(55) is K_mNa in component sodium_calcium_exchange_current (micromolar). C CONSTS(56) is K_mCa in component sodium_calcium_exchange_current (micromolar). C CONSTS(57) is k_sat in component sodium_calcium_exchange_current (dimensionless). C CONSTS(58) is eta in component sodium_calcium_exchange_current (dimensionless). C STATES(21) is Nai in component sodium_concentration (micromolar). C CONSTS(59) is g_Cab in component calcium_background_current (milliS_per_microF). C ALGBRC(51) is E_CaN in component calcium_background_current (millivolt). C ALGBRC(53) is E_Na in component fast_sodium_current (millivolt). C CONSTS(60) is g_Na in component fast_sodium_current (milliS_per_microF). C STATES(22) is m in component fast_sodium_current_m_gate (dimensionless). C STATES(23) is h in component fast_sodium_current_h_gate (dimensionless). C STATES(24) is j in component fast_sodium_current_j_gate (dimensionless). C ALGBRC(6) is alpha_m in component fast_sodium_current_m_gate (per_millisecond). C ALGBRC(20) is beta_m in component fast_sodium_current_m_gate (per_millisecond). C ALGBRC(7) is alpha_h in component fast_sodium_current_h_gate (per_millisecond). C ALGBRC(21) is beta_h in component fast_sodium_current_h_gate (per_millisecond). C ALGBRC(8) is alpha_j in component fast_sodium_current_j_gate (per_millisecond). C ALGBRC(22) is beta_j in component fast_sodium_current_j_gate (per_millisecond). C CONSTS(61) is g_Nab in component sodium_background_current (milliS_per_microF). C STATES(25) is Ki in component potassium_concentration (micromolar). C ALGBRC(56) is E_K in component fast_transient_outward_potassium_current (millivolt). C CONSTS(62) is g_Kto_f in component fast_transient_outward_potassium_current (milliS_per_microF). C STATES(26) is ato_f in component fast_transient_outward_potassium_current (dimensionless). C STATES(27) is ito_f in component fast_transient_outward_potassium_current (dimensionless). C ALGBRC(38) is ito_f_infinity in component fast_transient_outward_potassium_current (dimensionless). C ALGBRC(9) is tau_ito_f in component fast_transient_outward_potassium_current (millisecond). C ALGBRC(10) is alpha_a in component fast_transient_outward_potassium_current (per_millisecond). C ALGBRC(24) is beta_a in component fast_transient_outward_potassium_current (per_millisecond). C ALGBRC(23) is alpha_i in component fast_transient_outward_potassium_current (per_millisecond). C ALGBRC(33) is beta_i in component fast_transient_outward_potassium_current (per_millisecond). C ALGBRC(11) is ass in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C CONSTS(63) is g_Kur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (milliS_per_microF). C STATES(28) is aur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C STATES(29) is iur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C ALGBRC(25) is tau_aur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (millisecond). C ALGBRC(26) is tau_iur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (millisecond). C ALGBRC(12) is iss in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C CONSTS(64) is g_Kss in component non_inactivating_steady_state_potassium_current (milliS_per_microF). C STATES(30) is aKss in component non_inactivating_steady_state_potassium_current (dimensionless). C ALGBRC(27) is tau_Kss in component non_inactivating_steady_state_potassium_current (millisecond). C CONSTS(65) is g_K1 in component time_independent_potassium_current (milliS_per_microF). C CONSTS(66) is g_Ks in component slow_delayed_rectifier_potassium_current (milliS_per_microF). C STATES(31) is nKs in component slow_delayed_rectifier_potassium_current (dimensionless). C ALGBRC(13) is alpha_n in component slow_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(28) is beta_n in component slow_delayed_rectifier_potassium_current (per_millisecond). C CONSTS(67) is g_Kr in component rapid_delayed_rectifier_potassium_current (milliS_per_microF). C STATES(32) is O_K in component rapid_delayed_rectifier_potassium_current (dimensionless). C STATES(33) is C_K1 in component rapid_delayed_rectifier_potassium_current (dimensionless). C STATES(34) is C_K2 in component rapid_delayed_rectifier_potassium_current (dimensionless). C ALGBRC(14) is C_K0 in component rapid_delayed_rectifier_potassium_current (dimensionless). C STATES(35) is I_K in component rapid_delayed_rectifier_potassium_current (dimensionless). C ALGBRC(29) is alpha_a0 in component rapid_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(34) is beta_a0 in component rapid_delayed_rectifier_potassium_current (per_millisecond). C CONSTS(68) is kb in component rapid_delayed_rectifier_potassium_current (per_millisecond). C CONSTS(69) is kf in component rapid_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(15) is alpha_a1 in component rapid_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(30) is beta_a1 in component rapid_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(35) is alpha_i in component rapid_delayed_rectifier_potassium_current (per_millisecond). C ALGBRC(39) is beta_i in component rapid_delayed_rectifier_potassium_current (per_millisecond). C CONSTS(70) is i_NaK_max in component sodium_potassium_pump_current (picoA_per_picoF). C CONSTS(71) is Km_Nai in component sodium_potassium_pump_current (micromolar). C CONSTS(72) is Km_Ko in component sodium_potassium_pump_current (micromolar). C ALGBRC(63) is f_NaK in component sodium_potassium_pump_current (dimensionless). C CONSTS(76) is sigma in component sodium_potassium_pump_current (dimensionless). C CONSTS(73) is P_ClCa in component calcium_activated_chloride_current (cm_per_second). C ALGBRC(65) is f_ClCa in component calcium_activated_chloride_current (dimensionless). C CONSTS(74) is Km_Cl in component calcium_activated_chloride_current (micromolar). C CONSTS(75) is n_ClCa in component calcium_activated_chloride_current (dimensionless). C RATES(1) is d/dt V in component membrane (millivolt). C RATES(2) is d/dt Cai in component calcium_concentration (micromolar). C RATES(3) is d/dt Cass in component calcium_concentration (micromolar). C RATES(4) is d/dt CaJSR in component calcium_concentration (micromolar). C RATES(5) is d/dt CaNSR in component calcium_concentration (micromolar). C RATES(6) is d/dt P_RyR in component calcium_fluxes (dimensionless). C RATES(7) is d/dt LTRPN_Ca in component calcium_buffering (micromolar). C RATES(8) is d/dt HTRPN_Ca in component calcium_buffering (micromolar). C RATES(9) is d/dt P_O1 in component ryanodine_receptors (dimensionless). C RATES(10) is d/dt P_O2 in component ryanodine_receptors (dimensionless). C RATES(11) is d/dt P_C2 in component ryanodine_receptors (dimensionless). C RATES(12) is d/dt O in component L_type_calcium_current (dimensionless). C RATES(13) is d/dt C2 in component L_type_calcium_current (dimensionless). C RATES(14) is d/dt C3 in component L_type_calcium_current (dimensionless). C RATES(15) is d/dt C4 in component L_type_calcium_current (dimensionless). C RATES(16) is d/dt I1 in component L_type_calcium_current (dimensionless). C RATES(17) is d/dt I2 in component L_type_calcium_current (dimensionless). C RATES(18) is d/dt I3 in component L_type_calcium_current (dimensionless). C RATES(19) is d/dt b in component T_type_calcium_current_b_gate (dimensionless). C RATES(20) is d/dt g in component T_type_calcium_current_g_gate (dimensionless). C RATES(21) is d/dt Nai in component sodium_concentration (micromolar). C RATES(22) is d/dt m in component fast_sodium_current_m_gate (dimensionless). C RATES(23) is d/dt h in component fast_sodium_current_h_gate (dimensionless). C RATES(24) is d/dt j in component fast_sodium_current_j_gate (dimensionless). C RATES(25) is d/dt Ki in component potassium_concentration (micromolar). C RATES(26) is d/dt ato_f in component fast_transient_outward_potassium_current (dimensionless). C RATES(27) is d/dt ito_f in component fast_transient_outward_potassium_current (dimensionless). C RATES(28) is d/dt aur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C RATES(29) is d/dt iur in component ultra_rapidly_activating_delayed_rectifier_potassium_current (dimensionless). C RATES(30) is d/dt aKss in component non_inactivating_steady_state_potassium_current (dimensionless). C RATES(31) is d/dt nKs in component slow_delayed_rectifier_potassium_current (dimensionless). C RATES(34) is d/dt C_K2 in component rapid_delayed_rectifier_potassium_current (dimensionless). C RATES(33) is d/dt C_K1 in component rapid_delayed_rectifier_potassium_current (dimensionless). C RATES(32) is d/dt O_K in component rapid_delayed_rectifier_potassium_current (dimensionless). C RATES(35) is d/dt I_K in component rapid_delayed_rectifier_potassium_current (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = -80.6475 CONSTS(1) = 1 CONSTS(2) = 2.2826e-6 CONSTS(3) = 0.12e-8 CONSTS(4) = 2.098e-7 CONSTS(5) = 3.0734e-8 CONSTS(6) = 1.5410e-5 CONSTS(7) = 5400 CONSTS(8) = 140000 CONSTS(9) = 1000 CONSTS(10) = 132000 CONSTS(11) = 30000 CONSTS(12) = 8.314 CONSTS(13) = 298 CONSTS(14) = 96.5 CONSTS(15) = 20 CONSTS(16) = 500000 CONSTS(17) = 2000.0 CONSTS(18) = 0.5 CONSTS(19) = -80 STATES(2) = 0.2049 STATES(3) = 0.1867 STATES(4) = 705.5417 STATES(5) = 703.3063 CONSTS(20) = 25 CONSTS(21) = 15000 CONSTS(22) = 0.238 CONSTS(23) = 800 CONSTS(24) = 0.00237 CONSTS(25) = 3.2e-5 CONSTS(26) = 0.0327 CONSTS(27) = 0.0196 STATES(6) = 2.8603e-14 CONSTS(28) = 0.45 CONSTS(29) = 20 CONSTS(30) = 2.088e-5 CONSTS(31) = 8 CONSTS(32) = 0.09 CONSTS(33) = 0.5 CONSTS(34) = 35 CONSTS(35) = 70 STATES(7) = 8.9220 STATES(8) = 66.0407 CONSTS(36) = 7 STATES(9) = 1.1e-3 STATES(10) = 2.9799e-8 STATES(11) = 0.1003 CONSTS(37) = 0.00608 CONSTS(38) = 0.07125 CONSTS(39) = 0.00405 CONSTS(40) = 0.965 CONSTS(41) = 0.009 CONSTS(42) = 0.0008 CONSTS(43) = 3 CONSTS(44) = 4 CONSTS(45) = 63 CONSTS(46) = 0.19019 STATES(12) = 4.4776e-12 STATES(13) = 1.6996e-4 STATES(14) = 1.1754e-8 STATES(15) = 6.1239e-10 STATES(16) = 1.5450e-9 STATES(17) = 6.4226e-8 STATES(18) = 6.5201e-7 CONSTS(47) = 0.0005 CONSTS(48) = 0.23324 CONSTS(49) = 20 CONSTS(50) = 50 CONSTS(51) = 0.055 STATES(19) = 0.0047 STATES(20) = 0.9020 CONSTS(52) = 0.2 CONSTS(53) = 0.5 CONSTS(54) = 907.68 CONSTS(55) = 87500 CONSTS(56) = 1380 CONSTS(57) = 0.1 CONSTS(58) = 0.35 STATES(21) = 2.1747e4 CONSTS(59) = 0.00025 CONSTS(60) = 10 STATES(22) = 0.0032 STATES(23) = 0.9606 STATES(24) = 0.9744 CONSTS(61) = 0.0026 STATES(25) = 1.3645e5 CONSTS(62) = 0.1017 STATES(26) = 0.0032 STATES(27) = 0.7530 CONSTS(63) = 0.0048 STATES(28) = 5.2471e-4 STATES(29) = 0.9866 CONSTS(64) = 0.015 STATES(30) = 0.8500 CONSTS(65) = 0.235 CONSTS(66) = 0.046 STATES(31) = 0.0026 CONSTS(67) = 01.17 STATES(32) = 2.1e-3 STATES(33) = 1.1e-3 STATES(34) = 8.3641e-4 STATES(35) = 4.3522e-4 CONSTS(68) = 0.036778 CONSTS(69) = 0.023761 CONSTS(70) = 0.88 CONSTS(71) = 21000 CONSTS(72) = 1500 CONSTS(73) = 2.74e-7 CONSTS(74) = 4 CONSTS(75) = 3 CONSTS(76) = (1.00000/7.00000)*(EXP(CONSTS(8)/67300.0) - 1.00000) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(7) = CONSTS(26)*STATES(2)*(CONSTS(34) - STATES(7)) - CONSTS(27)*STATES(7) RATES(8) = CONSTS(24)*STATES(2)*(CONSTS(35) - STATES(8)) - CONSTS(25)*STATES(8) RATES(10) = CONSTS(39)*STATES(3) ** CONSTS(43)*STATES(9) - CONSTS(40)*STATES(10) RATES(11) = CONSTS(41)*STATES(9) - CONSTS(42)*STATES(11) ALGBRC(2) = 1.00000 - (STATES(11)+STATES(9)+STATES(10)) RATES(9) = ( CONSTS(37)*STATES(3) ** CONSTS(44)*ALGBRC(2)+ CONSTS(40)*STATES(10)+ CONSTS(42)*STATES(11)) - ( CONSTS(38)*STATES(9)+ CONSTS(39)*STATES(3) ** CONSTS(43)*STATES(9)+ CONSTS(41)*STATES(9)) ALGBRC(4) = 1.00000/(1.00000+EXP(- (STATES(1)+48.0000)/6.10000)) ALGBRC(18) = 0.100000+5.40000/(1.00000+EXP((STATES(1)+100.000)/6.60000)) RATES(19) = (ALGBRC(4) - STATES(19))/ALGBRC(18) ALGBRC(5) = 1.00000/(1.00000+EXP((STATES(1)+66.0000)/6.60000)) ALGBRC(19) = 8.00000+32.0000/(1.00000+EXP((STATES(1)+65.0000)/5.00000)) RATES(20) = (ALGBRC(5) - STATES(20))/ALGBRC(19) ALGBRC(6) = ( 0.320000*(STATES(1)+47.1300))/(1.00000 - EXP( -0.100000*(STATES(1)+47.1300))) ALGBRC(20) = 0.0800000*EXP(- STATES(1)/11.0000) RATES(22) = ALGBRC(6) - (ALGBRC(6)+ALGBRC(20))*STATES(22) ALGBRC(7) = TERNRY(STATES(1).LT.- 40.0000, 0.135000*EXP((80.0000+STATES(1))/- 6.80000), 0.00000) ALGBRC(21) = TERNRY(STATES(1).LT.- 40.0000, 3.56000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.350000*STATES(1)), 1.00000/( 0.130000*(1.00000+EXP((STATES(1)+10.6600)/- 11.1000)))) RATES(23) = ALGBRC(7) - (ALGBRC(7)+ALGBRC(21))*STATES(23) ALGBRC(8) = TERNRY(STATES(1).LT.- 40.0000, ( - ( 127140.*EXP( 0.244400*STATES(1))+ 3.47400e-05*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))), 0.00000) ALGBRC(22) = TERNRY(STATES(1).LT.- 40.0000, ( 0.121200*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))), ( 0.300000*EXP( - 2.53500e-07*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000)))) RATES(24) = ALGBRC(8) - (ALGBRC(8)+ALGBRC(22))*STATES(24) ALGBRC(10) = 0.180640*EXP( 0.0357700*(STATES(1)+30.0000)) ALGBRC(24) = 0.395600*EXP( - 0.0623700*(STATES(1)+30.0000)) RATES(26) = ALGBRC(10)*(1.00000 - STATES(26)) - ALGBRC(24)*STATES(26) ALGBRC(11) = 1.00000/(1.00000+EXP(- (STATES(1)+22.5000)/7.70000)) ALGBRC(25) = 0.493000*EXP( - 0.0629000*STATES(1))+2.05800 RATES(28) = (ALGBRC(11) - STATES(28))/ALGBRC(25) ALGBRC(26) = 1200.00 - 170.000/(1.00000+EXP((STATES(1)+45.2000)/5.70000)) ALGBRC(12) = 1.00000/(1.00000+EXP((STATES(1)+45.2000)/5.70000)) RATES(29) = (ALGBRC(12) - STATES(29))/ALGBRC(26) ALGBRC(27) = 39.3000*EXP( - 0.0862000*STATES(1))+13.1700 RATES(30) = (ALGBRC(11) - STATES(30))/ALGBRC(27) ALGBRC(13) = ( 4.81333e-06*(STATES(1)+26.5000))/(1.00000 - EXP( - 0.128000*(STATES(1)+26.5000))) ALGBRC(28) = 9.53333e-05*EXP( - 0.0380000*(STATES(1)+26.5000)) RATES(31) = ALGBRC(13)*(1.00000 - STATES(31)) - ALGBRC(28)*STATES(31) ALGBRC(15) = 0.0137330*EXP( 0.0381980*STATES(1)) ALGBRC(30) = 6.89000e-05*EXP( - 0.0417800*STATES(1)) RATES(34) = ( CONSTS(69)*STATES(33)+ ALGBRC(30)*STATES(32)) - ( CONSTS(68)*STATES(34)+ ALGBRC(15)*STATES(34)) ALGBRC(3) = 1.00000 - (STATES(12)+STATES(13)+STATES(13)+STATES(14)+STATES(15)+STATES(16)+STATES(17)+STATES(18)) ALGBRC(17) = ( 0.400000*EXP((STATES(1)+12.0000)/10.0000)*((1.00000+ 0.700000*EXP(- STATES(1)+40.0000 ** 2.00000/10.0000)) - 0.750000*EXP(- STATES(1)+20.0000 ** 2.00000/400.000)))/(1.00000+ 0.120000*EXP((STATES(1)+12.0000)/10.0000)) ALGBRC(32) = 0.0500000*EXP(- (STATES(1)+12.0000)/13.0000) RATES(13) = ( 4.00000*ALGBRC(17)*ALGBRC(3)+ 2.00000*ALGBRC(32)*STATES(14)) - ( ALGBRC(32)*STATES(13)+ 3.00000*ALGBRC(17)*STATES(13)) RATES(14) = ( 3.00000*ALGBRC(17)*STATES(13)+ 3.00000*ALGBRC(32)*STATES(15)) - ( 2.00000*ALGBRC(32)*STATES(14)+ 2.00000*ALGBRC(17)*STATES(14)) ALGBRC(14) = 1.00000 - (STATES(33)+STATES(34)+STATES(32)+STATES(35)) ALGBRC(29) = 0.0223480*EXP( 0.0117600*STATES(1)) ALGBRC(34) = 0.0470020*EXP( - 0.0631000*STATES(1)) RATES(33) = ( ALGBRC(29)*ALGBRC(14)+ CONSTS(68)*STATES(34)) - ( ALGBRC(34)*STATES(33)+ CONSTS(69)*STATES(33)) ALGBRC(23) = ( 0.000152000*EXP(- (STATES(1) - 3.81000)/15.7500))/( 0.00670830*EXP(- (STATES(1)+132.050)/15.7500)+1.00000) ALGBRC(33) = ( 0.000950000*EXP((STATES(1)+132.050)/15.7500))/( 0.0513350*EXP((STATES(1)+132.050)/15.7500)+1.00000) ALGBRC(38) = ALGBRC(23)/(ALGBRC(23)+ALGBRC(33)) ALGBRC(9) = 1.00000/(( 0.000152000*EXP(- (STATES(1)+13.5000)/7.00000))/( 0.0670830*EXP(- (STATES(1)+33.5000)/7.00000)+1.00000)+( 0.000950000*EXP((STATES(1)+33.5000)/7.00000))/( 0.0513350*EXP((STATES(1)+33.5000)/7.00000)+1.00000)) RATES(27) = (ALGBRC(38) - STATES(27))/ALGBRC(9) ALGBRC(35) = 0.0908210*EXP( 0.0233910*(STATES(1)+5.00000)) ALGBRC(39) = 0.00649700*EXP( - 0.0326800*(STATES(1)+5.00000)) RATES(32) = ( ALGBRC(15)*STATES(34)+ ALGBRC(39)*STATES(35)) - ( ALGBRC(30)*STATES(32)+ ALGBRC(35)*STATES(32)) RATES(35) = ALGBRC(35)*STATES(32) - ALGBRC(39)*STATES(35) ALGBRC(37) = ( CONSTS(48)*STATES(3))/(CONSTS(49)+STATES(3)) ALGBRC(41) = 13.0000*(1.00000 - EXP(- STATES(1)+14.5000 ** 2.00000/100.000)) RATES(12) = ( ALGBRC(17)*STATES(15)+ CONSTS(47)*STATES(16)+ 0.00100000*( ALGBRC(17)*STATES(17) - ALGBRC(41)*STATES(12))) - ( 4.00000*ALGBRC(32)*STATES(12)+ ALGBRC(37)*STATES(12)) RATES(15) = ( 2.00000*ALGBRC(17)*STATES(14)+ 4.00000*ALGBRC(32)*STATES(12)+ 0.0100000*( 4.00000*CONSTS(47)*ALGBRC(32)*STATES(16) - ALGBRC(17)*ALGBRC(37)*STATES(15))+ 0.00200000*( 4.00000*ALGBRC(32)*STATES(17) - ALGBRC(41)*STATES(15))+ 4.00000*ALGBRC(32)*CONSTS(47)*STATES(18)) - ( 3.00000*ALGBRC(32)*STATES(15)+ ALGBRC(17)*STATES(15)+ 1.00000*ALGBRC(37)*ALGBRC(41)*STATES(15)) RATES(16) = ( ALGBRC(37)*STATES(12)+ 0.00100000*( ALGBRC(17)*STATES(18) - ALGBRC(41)*STATES(16))+ 0.0100000*( ALGBRC(17)*ALGBRC(37)*STATES(15) - 4.00000*ALGBRC(32)*ALGBRC(41)*STATES(16))) - CONSTS(47)*STATES(16) RATES(17) = ( 0.00100000*( ALGBRC(41)*STATES(12) - ALGBRC(17)*STATES(17))+ CONSTS(47)*STATES(18)+ 0.00200000*( ALGBRC(41)*STATES(15) - 4.00000*ALGBRC(32)*STATES(17))) - ALGBRC(37)*STATES(17) RATES(18) = ( 0.00100000*( ALGBRC(41)*STATES(16) - ALGBRC(17)*STATES(18))+ ALGBRC(37)*STATES(17)+ 1.00000*ALGBRC(37)*ALGBRC(41)*STATES(15)) - ( 4.00000*ALGBRC(32)*CONSTS(47)*STATES(18)+ CONSTS(47)*STATES(18)) ALGBRC(36) = 1.00000+( CONSTS(21)*CONSTS(23))/CONSTS(23)+STATES(4) ** 2.00000 ** - 1.00000 ALGBRC(40) = CONSTS(28)*(STATES(9)+STATES(10))*(STATES(4) - STATES(3))*STATES(6) ALGBRC(43) = (STATES(3) - STATES(2))/CONSTS(31) RATES(4) = ALGBRC(36)*(ALGBRC(43) - ALGBRC(40)) ALGBRC(44) = CONSTS(46)*STATES(12)*(STATES(1) - CONSTS(45)) RATES(6) = - 0.0400000*STATES(6) - (( 0.100000*ALGBRC(44))/CONSTS(36))*EXP(- STATES(1) - 5.00000 ** 2.00000/648.000) ALGBRC(45) = CONSTS(30)*(STATES(5) - STATES(2)) ALGBRC(47) = ( CONSTS(32)*STATES(2) ** 2.00000)/(CONSTS(33) ** 2.00000+STATES(2) ** 2.00000) ALGBRC(42) = (STATES(5) - STATES(4))/CONSTS(29) RATES(5) = ( (ALGBRC(47) - ALGBRC(45))*CONSTS(2))/CONSTS(4) - ( ALGBRC(42)*CONSTS(3))/CONSTS(4) ALGBRC(16) = 1.00000+( CONSTS(20)*CONSTS(22))/CONSTS(22)+STATES(2) ** 2.00000 ** - 1.00000 ALGBRC(49) = ( CONSTS(24)*STATES(2)*(CONSTS(35) - STATES(8))+ CONSTS(26)*STATES(2)*(CONSTS(34) - STATES(7))) - ( CONSTS(25)*STATES(8)+ CONSTS(27)*STATES(7)) RATES(2) = ALGBRC(16)*((ALGBRC(45)+ALGBRC(43)) - (ALGBRC(47)+ALGBRC(49))) ALGBRC(46) = CONSTS(51)*STATES(19)*STATES(20)*(STATES(1) - CONSTS(50)) ALGBRC(48) = ( CONSTS(52)*STATES(2) ** 2.00000)/(CONSTS(53) ** 2.00000+STATES(2) ** 2.00000) ALGBRC(50) = (( (( (( CONSTS(54)*1.00000)/(CONSTS(55) ** 3.00000+CONSTS(8) ** 3.00000))*1.00000)/(CONSTS(56)+CONSTS(9)))*1.00000)/(1.00000+ CONSTS(57)*EXP(( (CONSTS(58) - 1.00000)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))))*( EXP(( CONSTS(58)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))*STATES(21) ** 3.00000*CONSTS(9) - EXP(( (CONSTS(58) - 1.00000)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))*CONSTS(8) ** 3.00000*STATES(2)) ALGBRC(51) = (( CONSTS(12)*CONSTS(13))/( 2.00000*CONSTS(14)))*log(CONSTS(9)/STATES(2)) ALGBRC(52) = CONSTS(59)*(STATES(1) - ALGBRC(51)) ALGBRC(31) = 1.00000+( CONSTS(20)*CONSTS(22))/CONSTS(22)+STATES(3) ** 2.00000 ** - 1.00000 RATES(3) = ALGBRC(31)*(( ALGBRC(40)*CONSTS(3))/CONSTS(5) - (( ALGBRC(43)*CONSTS(2))/CONSTS(5)+ ((ALGBRC(44)+ALGBRC(52)+ALGBRC(48)+ALGBRC(46)) - 2.00000*ALGBRC(50))*(( CONSTS(6)*CONSTS(1))/( 2.00000*CONSTS(5)*CONSTS(14))))) ALGBRC(53) = (( CONSTS(12)*CONSTS(13))/CONSTS(14))*log(CONSTS(8)/STATES(21)) ALGBRC(54) = CONSTS(60)*STATES(22) ** 3.00000*STATES(23)*STATES(24)*(STATES(1) - ALGBRC(53)) ALGBRC(55) = CONSTS(61)*(STATES(1) - ALGBRC(53)) ALGBRC(63) = 1.00000/(1.00000+ 0.124500*EXP(( - 0.100000*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))+ 0.0365000*CONSTS(76)*EXP(( - STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))) ALGBRC(64) = ( (( CONSTS(70)*ALGBRC(63)*1.00000)/(1.00000+CONSTS(71)/STATES(21) ** 1.50000))*CONSTS(7))/(CONSTS(7)+CONSTS(72)) RATES(21) = ( - (ALGBRC(54)+ALGBRC(55)+ 3.00000*ALGBRC(64)+ 3.00000*ALGBRC(50))*CONSTS(6)*CONSTS(1))/( CONSTS(2)*CONSTS(14)) ALGBRC(56) = (( CONSTS(12)*CONSTS(13))/CONSTS(14))*log(CONSTS(7)/STATES(25)) ALGBRC(57) = CONSTS(62)*STATES(26) ** 6.50000*STATES(27)*(STATES(1) - ALGBRC(56)) ALGBRC(60) = CONSTS(65)*(CONSTS(7)/(CONSTS(7)+210.000))*((STATES(1) - ALGBRC(56))/(1.00000+EXP( 0.0896000*(STATES(1) - ALGBRC(56))))) ALGBRC(61) = CONSTS(66)*STATES(31) ** 2.00000*(STATES(1) - ALGBRC(56)) ALGBRC(58) = CONSTS(63)*STATES(28)*STATES(29)*(STATES(1) - ALGBRC(56)) ALGBRC(59) = CONSTS(64)*STATES(30)*(STATES(1) - ALGBRC(56)) ALGBRC(62) = CONSTS(67)*STATES(32)*(STATES(1) - ALGBRC(56)) RATES(25) = ( - ((ALGBRC(57)+ALGBRC(60)+ALGBRC(61)+ALGBRC(59)+ALGBRC(58)+ALGBRC(62)) - 2.00000*ALGBRC(64))*CONSTS(6)*CONSTS(1))/( CONSTS(2)*CONSTS(14)) ALGBRC(1) = TERNRY(VOI.GE.CONSTS(15).AND.VOI.LE.CONSTS(16).AND.(VOI - CONSTS(15)) - INT((VOI - CONSTS(15))/CONSTS(17))*CONSTS(17).LE.CONSTS(18), CONSTS(19), 0.00000) ALGBRC(65) = STATES(3)/(CONSTS(74)+STATES(3)) ** CONSTS(75) ALGBRC(66) = 1.00000*CONSTS(73)*ALGBRC(65)*(( STATES(1)*CONSTS(14) ** 2.00000)/( CONSTS(12)*CONSTS(13)))*(( CONSTS(10)*EXP(( STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13))) - CONSTS(11))/(EXP(( STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13))) - 1.00000)) RATES(1) = - (ALGBRC(44)+ALGBRC(46)+ALGBRC(48)+ALGBRC(50)+ALGBRC(52)+ALGBRC(54)+ALGBRC(55)+ALGBRC(64)+ALGBRC(57)+ALGBRC(60)+ALGBRC(61)+ALGBRC(58)+ALGBRC(59)+ALGBRC(62)+ALGBRC(66)+ALGBRC(1)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(2) = 1.00000 - (STATES(11)+STATES(9)+STATES(10)) ALGBRC(4) = 1.00000/(1.00000+EXP(- (STATES(1)+48.0000)/6.10000)) ALGBRC(18) = 0.100000+5.40000/(1.00000+EXP((STATES(1)+100.000)/6.60000)) ALGBRC(5) = 1.00000/(1.00000+EXP((STATES(1)+66.0000)/6.60000)) ALGBRC(19) = 8.00000+32.0000/(1.00000+EXP((STATES(1)+65.0000)/5.00000)) ALGBRC(6) = ( 0.320000*(STATES(1)+47.1300))/(1.00000 - EXP( -0.100000*(STATES(1)+47.1300))) ALGBRC(20) = 0.0800000*EXP(- STATES(1)/11.0000) ALGBRC(7) = TERNRY(STATES(1).LT.- 40.0000, 0.135000*EXP((80.0000+STATES(1))/- 6.80000), 0.00000) ALGBRC(21) = TERNRY(STATES(1).LT.- 40.0000, 3.56000*EXP( 0.0790000*STATES(1))+ 310000.*EXP( 0.350000*STATES(1)), 1.00000/( 0.130000*(1.00000+EXP((STATES(1)+10.6600)/- 11.1000)))) ALGBRC(8) = TERNRY(STATES(1).LT.- 40.0000, ( - ( 127140.*EXP( 0.244400*STATES(1))+ 3.47400e-05*EXP( - 0.0439100*STATES(1)))*(STATES(1)+37.7800))/(1.00000+EXP( 0.311000*(STATES(1)+79.2300))), 0.00000) ALGBRC(22) = TERNRY(STATES(1).LT.- 40.0000, ( 0.121200*EXP( - 0.0105200*STATES(1)))/(1.00000+EXP( - 0.137800*(STATES(1)+40.1400))), ( 0.300000*EXP( - 2.53500e-07*STATES(1)))/(1.00000+EXP( - 0.100000*(STATES(1)+32.0000)))) ALGBRC(10) = 0.180640*EXP( 0.0357700*(STATES(1)+30.0000)) ALGBRC(24) = 0.395600*EXP( - 0.0623700*(STATES(1)+30.0000)) ALGBRC(11) = 1.00000/(1.00000+EXP(- (STATES(1)+22.5000)/7.70000)) ALGBRC(25) = 0.493000*EXP( - 0.0629000*STATES(1))+2.05800 ALGBRC(26) = 1200.00 - 170.000/(1.00000+EXP((STATES(1)+45.2000)/5.70000)) ALGBRC(12) = 1.00000/(1.00000+EXP((STATES(1)+45.2000)/5.70000)) ALGBRC(27) = 39.3000*EXP( - 0.0862000*STATES(1))+13.1700 ALGBRC(13) = ( 4.81333e-06*(STATES(1)+26.5000))/(1.00000 - EXP( - 0.128000*(STATES(1)+26.5000))) ALGBRC(28) = 9.53333e-05*EXP( - 0.0380000*(STATES(1)+26.5000)) ALGBRC(15) = 0.0137330*EXP( 0.0381980*STATES(1)) ALGBRC(30) = 6.89000e-05*EXP( - 0.0417800*STATES(1)) ALGBRC(3) = 1.00000 - (STATES(12)+STATES(13)+STATES(13)+STATES(14)+STATES(15)+STATES(16)+STATES(17)+STATES(18)) ALGBRC(17) = ( 0.400000*EXP((STATES(1)+12.0000)/10.0000)*((1.00000+ 0.700000*EXP(- STATES(1)+40.0000 ** 2.00000/10.0000)) - 0.750000*EXP(- STATES(1)+20.0000 ** 2.00000/400.000)))/(1.00000+ 0.120000*EXP((STATES(1)+12.0000)/10.0000)) ALGBRC(32) = 0.0500000*EXP(- (STATES(1)+12.0000)/13.0000) ALGBRC(14) = 1.00000 - (STATES(33)+STATES(34)+STATES(32)+STATES(35)) ALGBRC(29) = 0.0223480*EXP( 0.0117600*STATES(1)) ALGBRC(34) = 0.0470020*EXP( - 0.0631000*STATES(1)) ALGBRC(23) = ( 0.000152000*EXP(- (STATES(1) - 3.81000)/15.7500))/( 0.00670830*EXP(- (STATES(1)+132.050)/15.7500)+1.00000) ALGBRC(33) = ( 0.000950000*EXP((STATES(1)+132.050)/15.7500))/( 0.0513350*EXP((STATES(1)+132.050)/15.7500)+1.00000) ALGBRC(38) = ALGBRC(23)/(ALGBRC(23)+ALGBRC(33)) ALGBRC(9) = 1.00000/(( 0.000152000*EXP(- (STATES(1)+13.5000)/7.00000))/( 0.0670830*EXP(- (STATES(1)+33.5000)/7.00000)+1.00000)+( 0.000950000*EXP((STATES(1)+33.5000)/7.00000))/( 0.0513350*EXP((STATES(1)+33.5000)/7.00000)+1.00000)) ALGBRC(35) = 0.0908210*EXP( 0.0233910*(STATES(1)+5.00000)) ALGBRC(39) = 0.00649700*EXP( - 0.0326800*(STATES(1)+5.00000)) ALGBRC(37) = ( CONSTS(48)*STATES(3))/(CONSTS(49)+STATES(3)) ALGBRC(41) = 13.0000*(1.00000 - EXP(- STATES(1)+14.5000 ** 2.00000/100.000)) ALGBRC(36) = 1.00000+( CONSTS(21)*CONSTS(23))/CONSTS(23)+STATES(4) ** 2.00000 ** - 1.00000 ALGBRC(40) = CONSTS(28)*(STATES(9)+STATES(10))*(STATES(4) - STATES(3))*STATES(6) ALGBRC(43) = (STATES(3) - STATES(2))/CONSTS(31) ALGBRC(44) = CONSTS(46)*STATES(12)*(STATES(1) - CONSTS(45)) ALGBRC(45) = CONSTS(30)*(STATES(5) - STATES(2)) ALGBRC(47) = ( CONSTS(32)*STATES(2) ** 2.00000)/(CONSTS(33) ** 2.00000+STATES(2) ** 2.00000) ALGBRC(42) = (STATES(5) - STATES(4))/CONSTS(29) ALGBRC(16) = 1.00000+( CONSTS(20)*CONSTS(22))/CONSTS(22)+STATES(2) ** 2.00000 ** - 1.00000 ALGBRC(49) = ( CONSTS(24)*STATES(2)*(CONSTS(35) - STATES(8))+ CONSTS(26)*STATES(2)*(CONSTS(34) - STATES(7))) - ( CONSTS(25)*STATES(8)+ CONSTS(27)*STATES(7)) ALGBRC(46) = CONSTS(51)*STATES(19)*STATES(20)*(STATES(1) - CONSTS(50)) ALGBRC(48) = ( CONSTS(52)*STATES(2) ** 2.00000)/(CONSTS(53) ** 2.00000+STATES(2) ** 2.00000) ALGBRC(50) = (( (( (( CONSTS(54)*1.00000)/(CONSTS(55) ** 3.00000+CONSTS(8) ** 3.00000))*1.00000)/(CONSTS(56)+CONSTS(9)))*1.00000)/(1.00000+ CONSTS(57)*EXP(( (CONSTS(58) - 1.00000)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))))*( EXP(( CONSTS(58)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))*STATES(21) ** 3.00000*CONSTS(9) - EXP(( (CONSTS(58) - 1.00000)*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))*CONSTS(8) ** 3.00000*STATES(2)) ALGBRC(51) = (( CONSTS(12)*CONSTS(13))/( 2.00000*CONSTS(14)))*log(CONSTS(9)/STATES(2)) ALGBRC(52) = CONSTS(59)*(STATES(1) - ALGBRC(51)) ALGBRC(31) = 1.00000+( CONSTS(20)*CONSTS(22))/CONSTS(22)+STATES(3) ** 2.00000 ** - 1.00000 ALGBRC(53) = (( CONSTS(12)*CONSTS(13))/CONSTS(14))*log(CONSTS(8)/STATES(21)) ALGBRC(54) = CONSTS(60)*STATES(22) ** 3.00000*STATES(23)*STATES(24)*(STATES(1) - ALGBRC(53)) ALGBRC(55) = CONSTS(61)*(STATES(1) - ALGBRC(53)) ALGBRC(63) = 1.00000/(1.00000+ 0.124500*EXP(( - 0.100000*STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))+ 0.0365000*CONSTS(76)*EXP(( - STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13)))) ALGBRC(64) = ( (( CONSTS(70)*ALGBRC(63)*1.00000)/(1.00000+CONSTS(71)/STATES(21) ** 1.50000))*CONSTS(7))/(CONSTS(7)+CONSTS(72)) ALGBRC(56) = (( CONSTS(12)*CONSTS(13))/CONSTS(14))*log(CONSTS(7)/STATES(25)) ALGBRC(57) = CONSTS(62)*STATES(26) ** 6.50000*STATES(27)*(STATES(1) - ALGBRC(56)) ALGBRC(60) = CONSTS(65)*(CONSTS(7)/(CONSTS(7)+210.000))*((STATES(1) - ALGBRC(56))/(1.00000+EXP( 0.0896000*(STATES(1) - ALGBRC(56))))) ALGBRC(61) = CONSTS(66)*STATES(31) ** 2.00000*(STATES(1) - ALGBRC(56)) ALGBRC(58) = CONSTS(63)*STATES(28)*STATES(29)*(STATES(1) - ALGBRC(56)) ALGBRC(59) = CONSTS(64)*STATES(30)*(STATES(1) - ALGBRC(56)) ALGBRC(62) = CONSTS(67)*STATES(32)*(STATES(1) - ALGBRC(56)) ALGBRC(1) = TERNRY(VOI.GE.CONSTS(15).AND.VOI.LE.CONSTS(16).AND.(VOI - CONSTS(15)) - INT((VOI - CONSTS(15))/CONSTS(17))*CONSTS(17).LE.CONSTS(18), CONSTS(19), 0.00000) ALGBRC(65) = STATES(3)/(CONSTS(74)+STATES(3)) ** CONSTS(75) ALGBRC(66) = 1.00000*CONSTS(73)*ALGBRC(65)*(( STATES(1)*CONSTS(14) ** 2.00000)/( CONSTS(12)*CONSTS(13)))*(( CONSTS(10)*EXP(( STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13))) - CONSTS(11))/(EXP(( STATES(1)*CONSTS(14))/( CONSTS(12)*CONSTS(13))) - 1.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