Model Mathematics

Component: environment

Component: membrane

ddtimeV=1e-3⁢I_app+-I_leak-I_Na-I_KD-I_KM-I_CaL-I_hC_m

Component: stimulus_protocol

tau=time-period⁢⌊timeperiod⌋ I_app=i_stimAmplitudeiftau≥i_stimStart∧tau≦i_stimEnd0otherwise

Component: I_leak

I_leak=1000⁢g_leak⁢V-E_leak

Component: I_Na

I_Na=1000⁢g_Na⁢m3⁢h⁢V-E_Na

Component: Na_m_gate

alpha=0.32⁢4⁢1-13+V_T-V2⁢4if|13+V_T-V4|<1e-60.32⁢13+V_T-Vⅇ13+V_T-V4-1otherwise beta=-0.28⁢5⁢1--V-V_T-402⁢5if|-V-V_T-405|<1e-6-0.28⁢V-V_T-40ⅇ-V-V_T-405-1otherwise tau_m=1alpha+beta m_inf=alphaalpha+beta ddtimem=m_inf-mtau_m

Component: Na_h_gate

alpha_h=0.128⁢ⅇ17+V_T+V_S-V18 beta_h=41+ⅇ40+V_S+V_T-V5 tau_h=1alpha_h+beta_h h_inf=alpha_halpha_h+beta_h ddtimeh=h_inf-htau_h

Component: I_KD

I_KD=1000⁢g_KD⁢n4⁢V-E_K

Component: KD_n_gate

alpha_n=-0.032⁢5⁢1-V-V_T-152⁢5if|V-V_T-155|<1e-6-0.032⁢V-V_T-15ⅇV-V_T-155-1otherwise beta_n=0.5⁢40⁢1+V-V_T-102⁢40if|-V-V_T-1040|<1e-60.5⁢-V-V_T-10ⅇ-V-V_T-1040-1otherwise tau_n=1alpha_n+beta_n n_inf=alpha_nalpha_n+beta_n ddtimen=n_inf-ntau_n

Component: I_KM

I_KM=1000⁢g_KM⁢p⁢V-E_K

Component: KM_p_gate

p_inf=11+ⅇ-V+3510if-V+3510<25∧-V+3510>-251otherwise tau_p=tau_max3.3⁢ⅇV+3520+ⅇ-V+3520ifV+3520<25∧V+3520>-251otherwise ddtimep=p_inf-ptau_p

Component: I_CaL

I_CaL=1000⁢P_Ca⁢q2⁢G

Component: CaL_q_gate

alpha_q=6.321+ⅇ-V-513.89 beta_q=0.02⁢5.36+1.31-V2if|1.31-V5.36|<1e-60.02⁢1.31-V1-ⅇV-1.315.36otherwise tau_q=1alpha_q+beta_q q_inf=11+ⅇV+10-10 ddtimeq=q_inf-qtau_q

Component: G_nonlin

G=Z2⁢F2⁢1e-3⁢VR⁢T⁢1e-6⁢Ca_i-Ca_o⁢ⅇZ⁢F⁢1e-3⁢VR⁢T1-ⅇ1e-3⁢Z⁢F⁢VR⁢T

Component: dCa_i_dt

drive_channel=k⁢I_CaL2⁢F⁢d ddtimeCa_i=Ca_inf-Ca_itau_rifdrive_channel≦0drive_channel+Ca_inf-Ca_itau_rotherwise

Component: I_h

m=o_1+g_inc+o_2 I_h=1000⁢g_hbar⁢m⁢V-E_h

Component: kinetic

p_0=p_1⁢k_2k_1Ca p_1=1-p_0 c_1=betaalpha⁢o_1 o_1=k_4k_3p⁢o_2 o_2=1-c_1-o_1

Component: rate_constants

h_inf=11+ⅇV+75-V_S5.5 tau_s=tau_m+1000ⅇV+71.55-V_S14.2+ⅇ-V+89-V_S11.6 alpha=h_inftau_s beta=1-h_inftau_s k_1Ca=k_2⁢Ca_iCa_cn_Ca k_3p=k_4⁢p_1p_Cn_exp