Model Mathematics

Component: environment

Component: membrane

J_stim=-1iftime100time1010otherwise ddtimeu=-J_fi+J_so+J_si+J_stim Vm=V_0+uV_fi-V_0

Component: m

m=0ifu<u_m1otherwise

Component: p

p=0ifu<u_p1otherwise

Component: q

u_q=0.006ifepi=10.024ifendo=10.1otherwise q=0ifu<u_q1otherwise

Component: r

u_r=0.006ifepi=10.006ifendo=10.005otherwise r=0ifu<u_r1otherwise

Component: fast_inward_current

u_u=1.55ifepi=11.56ifendo=11.61otherwise tau_fi=0.11ifepi=10.104ifendo=10.078otherwise J_fi=-mvu-u_mu_u-utau_fi

Component: fast_inward_current_v_gate

tau_v2_minus=1150ifepi=110ifendo=11.45otherwise tau_v1_minus=60ifepi=175ifendo=180otherwise v_inf=1ifu<u_q0otherwise tau_v_minus=qtau_v2_minus+1-qtau_v1_minus ddtimev=1-mv_inf-vtau_v_minus-mvtau_v_plus

Component: slow_outward_current

tau_o1=400ifepi=1470ifendo=1410otherwise tau_o2=6ifepi=16ifendo=17otherwise tau_so1=30.02ifepi=140ifendo=191otherwise tau_so2=0.996ifepi=11.2ifendo=10.8otherwise k_so=2.046ifepi=12ifendo=12.1otherwise u_so=0.65ifepi=10.65ifendo=10.6otherwise tau_o=1-rtau_o1+rtau_o2 tau_so=tau_so1+tau_so2-tau_so11+tanhk_sou-u_so2 J_so=u1-ptau_o+ptau_so

Component: slow_inward_current

tau_si=1.8875ifepi=12.9013ifendo=13.3849otherwise J_si=-pwstau_si

Component: slow_inward_current_w_gate

tau_winf=0.07ifepi=10.0273ifendo=10.01otherwise wstar_inf=0.94ifepi=10.78ifendo=10.5otherwise tau_w1_minus=60ifepi=16ifendo=170otherwise tau_w2_minus=15ifepi=1140ifendo=18otherwise k_w_minus=65ifepi=1200ifendo=1200otherwise u_w_minus=0.03ifepi=10.016ifendo=10.016otherwise tau_w_plus=200ifepi=1280ifendo=1280otherwise w_inf=1-r1-u1tau_winf+rwstar_inf tau_w_minus=tau_w1_minus+tau_w2_minus-tau_w1_minus1+tanhk_w_minusu-u_w_minus2 ddtimew=1-rw_inf-wtau_w_minus-rwtau_w_plus

Component: slow_inward_current_s_gate

tau_s2=16ifepi=12ifendo=14otherwise tau_s=1-ptau_s1+ptau_s2 ddtimes=1+tanhk_su-u_s2-stau_s