Model Mathematics

Component: environment

Component: membrane

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

Component: stimulus_protocol

tau=time-periodtimeperiod I_app=i_stimAmplitudeiftaui_stimStarttaui_stimEnd0otherwise

Component: I_leak

I_leak=1000g_leakV-E_leak

Component: I_Na

I_Na=1000g_Nam3hV-E_Na

Component: Na_m_gate

alpha=0.3241-13+V_T-V24if|13+V_T-V4|<1e-60.3213+V_T-V13+V_T-V4-1otherwise beta=-0.2851--V-V_T-4025if|-V-V_T-405|<1e-6-0.28V-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.12817+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=1000g_KDn4V-E_K

Component: KD_n_gate

alpha_n=-0.03251-V-V_T-1525if|V-V_T-155|<1e-6-0.032V-V_T-15V-V_T-155-1otherwise beta_n=0.5401+V-V_T-10240if|-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=1000g_KMpV-E_K

Component: KM_p_gate

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

Component: I_CaL

I_CaL=1000P_Caq2G

Component: CaL_q_gate

alpha_q=6.321+-V-513.89 beta_q=0.025.36+1.31-V2if|1.31-V5.36|<1e-60.021.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=Z2F21e-3VRT1e-6Ca_i-Ca_oZF1e-3VRT1-1e-3ZFVRT

Component: dCa_i_dt

drive_channel=kI_CaL2Fd ddtimeCa_i=Ca_inf-Ca_itau_rifdrive_channel0drive_channel+Ca_inf-Ca_itau_rotherwise

Component: I_h

m=o_1+g_inc+o_2 I_h=1000g_hbarmV-E_h

Component: kinetic

p_0=p_1k_2k_1Ca p_1=1-p_0 c_1=betaalphao_1 o_1=k_4k_3po_2 o_2=1-c_1-o_1

Component: rate_constants

h_inf=11+V+75-V_S5.5 tau_s=tau_m+1000V+71.55-V_S14.2+-V+89-V_S11.6 alpha=h_inftau_s beta=1-h_inftau_s k_1Ca=k_2Ca_iCa_cn_Ca k_3p=k_4p_1p_Cn_exp