Model Mathematics

Component: environment

Component: model_parameters

Sms=23.141592rc2+23.14159rcLc Vc=3.14159rc2Lc Vmyo=Vc0.68 VSRup=Vc0.055 VSRrel=Vc0.00316 Vd=Vc0.680.00006 pt=ptcm23.14159rcLc Smt=23.14159rtLtpt Vt=3.14159rt2Ltpt Cmt=Smt1 Cms=Sms1 Rst=RotLt23.14159rt2pt

Component: i_circ

i_circ=1000Vm_tRst-Vm_sRst

Component: membrane_permeabilities

g_Na_s=g_NaSms+Smt1-fNat g_Na_t=g_NaSms+SmtfNat g_Naps_s=g_NapsSms+Smt1-fNapst g_Naps_t=g_NapsSms+SmtfNapst q_Ks_s=q_KsSms+Smt1-fKst q_Ks_t=q_KsSms+SmtfKst q_Kr_s=q_KrSms+Smt1-fKrt q_Kr_t=q_KrSms+SmtfKrt g_K1_s=g_K1Sms+Smt1-fK1t g_K1_t=g_K1Sms+SmtfK1t g_Kp_s=g_KpSms+Smt1-fKpt g_Kp_t=g_KpSms+SmtfKpt g_Kto_s=g_KtoSms+Smt1-fKtot g_Kto_t=g_KtoSms+SmtfKtot g_KNa_s=g_KNaSms+Smt1-fKNat g_KNa_t=g_KNaSms+SmtfKNat g_Nab_s=g_NabSms+Smt1-fNabt g_Nab_t=g_NabSms+SmtfNabt g_Cab_s=g_CabSms+Smt1-fCabt g_Cab_t=g_CabSms+SmtfCabt g_KATP_s=g_KATPSms+Smt1-fKATPt g_KATP_t=g_KATPSms+SmtfKATPt P_CaL_s=P_CaLSms+Smt1-fCaLt P_CaL_t=P_CaLSms+SmtfCaLt P_KL_s=P_KLSms+Smt1-fCaLt P_KL_t=P_KLSms+SmtfCaLt P_nsNa_s=P_nsNaSms+Smt1-fnsNat P_nsNa_t=P_nsNaSms+SmtfnsNat P_nsK_s=P_nsKSms+Smt1-fnsKt P_nsK_t=P_nsKSms+SmtfnsKt i_NaCa_max_s=i_NaCa_maxSms+Smt1-fNaCat i_NaCa_max_t=i_NaCa_maxSms+SmtfNaCat i_NaK_max_s=i_NaK_maxSms+Smt1-fNaKt i_NaK_max_t=i_NaK_maxSms+SmtfNaKt i_pCa_max_s=i_pCa_maxSms+Smt1-fpCat i_pCa_max_t=i_pCa_maxSms+SmtfpCat

Component: i_Kext

i_Kext=45Sms+Smtiftime-timestim_Periodstim_Period0time-timestim_Periodstim_Period0.0010otherwise

Component: i_Na_s

E_Na_s=lnNa_eNa_iRTF i_Na_s=g_Na_sm3hVm_s-lnNa_e+0.12K_eNa_i+0.12K_iRTF

Component: i_Na_s_m_gate

m_infinity=11+Vm_s+52.2-9-7.4 tau_m=0.001101.6Vm_s0.1135+0.02268-0.0717Vm_s+0.00014.83 ddtimem=m_infinity-mtau_m

Component: i_Na_s_h_gate

h_infinity=11+Vm_s+85.6-95.5 tau_h=0.0011.1381e-6-0.1017Vm_s+6.537Vm_s0.08016+0.00054.83 ddtimeh=h_infinity-htau_h

Component: i_Na_t

E_Na_t=lnNa_tNa_iRTF i_Na_t=g_Na_tm3hVm_t-lnNa_t+0.12K_tNa_i+0.12K_iRTF

Component: i_Na_t_m_gate

m_infinity=11+Vm_t+52.2-9-7.4 tau_m=0.001101.6Vm_t0.1135+0.02268-0.0717Vm_t+0.00014.83 ddtimem=m_infinity-mtau_m

Component: i_Na_t_h_gate

h_infinity=11+Vm_t+85.6-95.5 tau_h=0.0011.1381e-6-0.1017Vm_t+6.537Vm_t0.08016+0.00054.83 ddtimeh=h_infinity-htau_h

Component: i_Naps_s

i_Naps_s=g_Naps_s1+-54-Vm_s8Vm_s-lnNa_e+0.12K_eNa_i+0.12K_iRTF

Component: i_Naps_t

i_Naps_t=g_Naps_t1+-54-Vm_t8Vm_t-lnNa_t+0.12K_tNa_i+0.12K_iRTF

Component: i_CaL_s

i_CaL_s=1P_CaL_s4Co+CcaoyVm_sF2RT0.0012Vm_sFRT-0.341Ca_e2Vm_sFRT-1 i_KL_s=1P_KL_s1-i_CaL_s+i_CaL_t0.458Sms+SmtCo+CcaoyVm_sF2RTK_iVm_sFRT-K_eVm_sFRT-1 ddtimeCst=betasC1+omegaCcast-4alfas+gamaCst ddtimeC1=4alfasCst+2betasC2+omegabCca1-betas+3alfas+gamaaC1 ddtimeC2=3alfasC1+3betasC3+omegab2Cca2-2betas+2alfas+gamaa2C2 ddtimeC3=2alfasC2+4betasC4+omegab3Cca3-3betas+alfas+gamaa3C3 ddtimeC4=alfasC3+gCo+omegab4Cca4-4betas+f+gamaa4C4 ddtimeCo=fC4-gCo ddtimeCcast=beta2sCca1+gamaCst-4alfa2s+omegaCcast ddtimeCca1=4alfa2sCcast+2beta2sCca2+gamaaC1-beta2s+3alfa2s+omegabCca1 ddtimeCca2=3alfa2sCca1+3beta2sCca3+gamaa2C2-2beta2s+2alfa2s+omegab2Cca2 ddtimeCca3=2alfa2sCca2+4beta2sCca4+gamaa3C3-3beta2s+alfa2s+omegab3Cca3 ddtimeCca4=alfa2sCca3+g2Ccao+gamaa4C4-4beta2s+f2+omegab4Cca4 ddtimeCcao=f2Cca4-g2Ccao alfas=400Vm_s+1210 betas=50-Vm_s+1213 gama=187.5Ca_ss alfa2s=alfasa beta2s=betasb

Component: i_CaL_s_y_gate

y_infinity=11+Vm_s+356 tau_y=0.0010.02+0.0197-Vm_s+100.03372+0.551+Vm_s+409.54 ddtimey=y_infinity-ytau_y

Component: i_CaL_t

i_CaL_t=1P_CaL_t4TCo+TCcaoyVm_tF2RT0.0012Vm_tFRT-0.341Ca_t2Vm_tFRT-1 i_KL_t=1P_KL_t1-i_CaL_s+i_CaL_t0.458Sms+SmtTCo+TCcaoyVm_tF2RTK_iVm_tFRT-K_tVm_tFRT-1 ddtimeTCst=betatTC1+omegaTCcast-4alfat+gamaTCst ddtimeTC1=4alfatTCst+2betatTC2+omegabTCca1-betat+3alfat+gamaaTC1 ddtimeTC2=3alfatTC1+3betatTC3+omegab2TCca2-2betat+2alfat+gamaa2TC2 ddtimeTC3=2alfatTC2+4betatTC4+omegab3TCca3-3betat+alfat+gamaa3TC3 ddtimeTC4=alfatTC3+gTCo+omegab4TCca4-4betat+f+gamaa4TC4 ddtimeTCo=fTC4-gTCo ddtimeTCcast=beta2tTCca1+gamaTCst-4alfa2t+omegaTCcast ddtimeTCca1=4alfa2tTCcast+2beta2tTCca2+gamaaTC1-beta2t+3alfa2t+omegabTCca1 ddtimeTCca2=3alfa2tTCca1+3beta2tTCca3+gamaa2TC2-2beta2t+2alfa2t+omegab2TCca2 ddtimeTCca3=2alfa2tTCca2+4beta2tTCca4+gamaa3TC3-3beta2t+alfa2t+omegab3TCca3 ddtimeTCca4=alfa2tTCca3+g2TCcao+gamaa4TC4-4beta2t+f2+omegab4TCca4 ddtimeTCcao=f2TCca4-g2TCcao gama=187.5Ca_ss alfat=400Vm_t+1210 betat=50-Vm_t+1213 alfa2t=alfata beta2t=betatb

Component: i_CaL_t_y_gate

y_infinity=11+Vm_t+356 tau_y=0.0010.02+0.0197-Vm_t+100.03372+0.551+Vm_t+409.54 ddtimey=y_infinity-ytau_y

Component: i_Kr_s

i_Kr_s=q_Kr_s0.02614K_e5.4xrxriVm_s-E_Kr_s E_Kr_s=lnK_eK_iRTF

Component: i_Kr_s_xr_gate

xr_infinity=11+-Vm_s+21.57.5 tau_xr=0.0010.00138Vm_s+14.21--0.123Vm_s+14.2+0.00061Vm_s+38.90.145Vm_s+38.9-1 ddtimexr=xr_infinity-xrtau_xr

Component: i_Kr_s_xri_gate

xri=11+Vm_s+922.4

Component: i_Kr_t

i_Kr_t=q_Kr_t0.02614K_t5.4xrxriVm_t-E_Kr_t E_Kr_t=lnK_tK_iRTF

Component: i_Kr_t_xr_gate

xr_infinity=11+-Vm_t+21.57.5 tau_xr=0.0010.00138Vm_t+14.21--0.123Vm_t+14.2+0.00061Vm_t+38.90.145Vm_t+38.9-1 ddtimexr=xr_infinity-xrtau_xr

Component: i_Kr_t_xri_gate

xri=11+Vm_t+922.4

Component: i_Ks_s

i_Ks_s=q_Ks_s0.2308+0.76921+-log101Ca_i-4.20.6xs2Vm_s-E_Ks_s E_Ks_s=lnK_e+PRNaKNa_eK_i+PRNaKNa_iRTF

Component: i_Ks_s_xs_gate

xs_infinity=11+-Vm_s-1.516.7 tau_xs=0.0017.19e-5Vm_s+301--0.148Vm_s+30+1.31e-4Vm_s+300.0687Vm_s+30-1 ddtimexs=xs_infinity-xstau_xs

Component: i_Ks_t

i_Ks_t=q_Ks_t0.2308+0.76921+-log101Ca_i-4.20.6xs2Vm_t-E_Ks_t E_Ks_t=lnK_t+PRNaKNa_tK_i+PRNaKNa_iRTF

Component: i_Ks_t_xs_gate

xs_infinity=11+-Vm_t-1.516.7 tau_xs=0.0017.19e-5Vm_t+301--0.148Vm_t+30+1.31e-4Vm_t+300.0687Vm_t+30-1 ddtimexs=xs_infinity-xstau_xs

Component: i_K1_s

i_K1_s=g_K1_sK_e5.4aK1saK1s+bK1sVm_s-E_K1_s E_K1_s=E_Kr_s aK1s=10201+0.2385Vm_s-E_K1_s-59.215 bK1s=10000.491240.08032Vm_s-E_K1_s+5.476+0.06175Vm_s-E_K1_s-594.311+-0.5143Vm_s-E_K1_s+4.753

Component: i_K1_t

i_K1_t=g_K1_tK_t5.4aK1taK1t+bK1tVm_t-E_K1_t E_K1_t=E_Kr_t aK1t=10201+0.2385Vm_t-E_K1_t-59.215 bK1t=10000.491240.08032Vm_t-E_K1_t+5.476+0.06175Vm_t-E_K1_t-594.311+-0.5143Vm_t-E_K1_t+4.753

Component: i_Kp_s

i_Kp_s=g_Kp_skpsVm_s-E_Kp_s E_Kp_s=E_Kr_s kps=11+20-Vm_s5

Component: i_Kp_t

i_Kp_t=g_Kp_tkptVm_t-E_Kp_t E_Kp_t=E_Kr_t kpt=11+20-Vm_t5

Component: i_Kto_s

i_Kto_s=g_Kto_s1+Vm_s+57.53-5.8631+Vm_s-45.825.87r2fr2+r31-fr2Vm_s-E_Kto_s E_Kto_s=E_Kr_s

Component: i_Kto_s_r2_gate

r2_infinity=1.0061+Vm_s+36.69+1012.43 ddtimer2=r2_infinity-r2tau_r2

Component: i_Kto_s_r3_gate

r3_infinity=r2_infinity ddtimer3=r3_infinity-r3tau_r3

Component: i_Kto_t

i_Kto_t=g_Kto_t1+Vm_t+57.53-5.8631+Vm_t-45.825.87r2fr2+r31-fr2Vm_t-E_Kto_t E_Kto_t=E_Kr_t

Component: i_Kto_t_r2_gate

r2_infinity=1.0061+Vm_t+36.69+1012.43 ddtimer2=r2_infinity-r2tau_r2

Component: i_Kto_t_r3_gate

r3_infinity=r2_infinity ddtimer3=r3_infinity-r3tau_r3

Component: i_KNa_s

i_KNa_s=g_KNa_s0.8-0.651+Vm_s+125150.851+66Na_i2.8Vm_s-E_KNa_s E_KNa_s=E_Kr_s

Component: i_KNa_t

i_KNa_t=g_KNa_t0.8-0.651+Vm_t+125150.851+66Na_i2.8Vm_t-E_KNa_t E_KNa_t=E_Kr_t

Component: i_nsNa_s

i_nsNa_s=1P_nsNa_sVm_sF2RT0.75Na_iVm_sFRT-0.75Na_eVm_sFRT-11+0.0025Ca_i3

Component: i_nsNa_t

i_nsNa_t=1P_nsNa_tVm_tF2RT0.75Na_iVm_tFRT-0.75Na_tVm_tFRT-11+0.0025Ca_i3

Component: i_nsK_s

i_nsK_s=1P_nsK_sVm_sF2RT0.75K_iVm_sFRT-0.75K_eVm_sFRT-11+0.0025Ca_i3

Component: i_nsK_t

i_nsK_t=1P_nsK_tVm_tF2RT0.75K_iVm_tFRT-0.75K_tVm_tFRT-11+0.0025Ca_i3

Component: i_Nab_s

i_Nab_s=g_Nab_sVm_s-E_Na_s

Component: i_Nab_t

i_Nab_t=g_Nab_tVm_t-E_Na_t

Component: i_Cab_s

i_Cab_s=g_Cab_sVm_s-E_Ca_s E_Ca_s=lnCa_eCa_iRT2F

Component: i_Cab_t

i_Cab_t=g_Cab_tVm_t-E_Ca_t E_Ca_t=lnCa_tCa_iRT2F

Component: i_NaCa_s

i_NaCa_s=i_NaCa_max_s-0.85Vm_sFRTVm_sFRTNa_i3Ca_e-Na_e3Ca_i1+0.0001-0.85Vm_sFRTVm_sFRTNa_i3Ca_e+Na_e3Ca_i

Component: i_NaCa_t

i_NaCa_t=i_NaCa_max_t-0.85Vm_tFRTVm_tFRTNa_i3Ca_t-Na_t3Ca_i1+0.0001-0.85Vm_tFRTVm_tFRTNa_i3Ca_t+Na_t3Ca_i

Component: i_NaK_s

i_NaK_s=i_NaK_max_s1+0.1245-0.1Vm_sFRT+0.036517Na_e67.3-1-Vm_sFRT11+10Na_i1.5K_eK_e+1.5

Component: i_NaK_t

i_NaK_t=i_NaK_max_t1+0.1245-0.1Vm_tFRT+0.036517Na_t67.3-1-Vm_tFRT11+10Na_i1.5K_tK_t+1.5

Component: i_pCa_s

i_pCa_s=i_pCa_max_sCa_i0.0005+Ca_i

Component: i_pCa_t

i_pCa_t=i_pCa_max_tCa_i0.0005+Ca_i

Component: i_KATP_s

i_KATP_s=g_KATP_s11+ATP_i0.1142K_e40.24Vm_s-E_KATP_s E_KATP_s=E_Kr_s

Component: i_KATP_t

i_KATP_t=g_KATP_t11+ATP_i0.1142K_t40.24Vm_t-E_KATP_t E_KATP_t=E_Kr_t

Component: t_tubular_ion_fluxes

JteNa=1Vttau_NaNa_t-Na_e JteCa=1Vttau_CaCa_t-Ca_e JteK=1Vttau_KK_t-K_e

Component: JCaSRup

JCaSRup=11000Vmyo0.0018Ca_i2Ca_i2+0.00052

Component: JCaSRleak

JCaSRleak=1250Vmyo0.000058CaSRup-Ca_i

Component: Jtr

Jtr=1VSRreltau_trCaSRup-CaSRrel

Component: JCaSRrel

JCaSRrel=1800VSRrelF2+F3CaSRrel-Ca_ss ddtimeF1=F2kam-F1kapCa_ss4 ddtimeF2=F1kapCa_ss4+F3kbm+F4kcm-F2kam+kbpCa_ss3+kcp ddtimeF3=F2kbpCa_ss3-F3kbm ddtimeF4=F2kcp-F4kcm kap=312.15e12 kbp=4.05e9

Component: JCad

JCad=1Ca_ss-Ca_iVmyotau_d

Component: CaSRrel

ddtimeCaSRrel=11+150.80.8+CaSRrel2Jtr-JCaSRrelVSRrel

Component: CaS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