Model Mathematics

Component: environment

Component: membrane

Vm=1e-7if|VmReal|<1e-7VmRealotherwise ddtimeVmReal=-I_Kir+I_Shkr+I_b-I_stimCm

Component: I_Kir

I_Kir=GKirOKirKo1e-3Vm-EK OKir=1aKir+bKirVm-EKFRT EK=RTFlnKoKi

Component: I_Shkr

I_Shkr=PShkrOShkrVmF2RTKi-Ko-VmFRT1--VmFRT C0Shkr=0ifC0ShkrReal<01ifC0ShkrReal>1C0ShkrRealotherwise C1Shkr=0ifC1ShkrReal<01ifC1ShkrReal>1C1ShkrRealotherwise C2Shkr=0ifC2ShkrReal<01ifC2ShkrReal>1C2ShkrRealotherwise C3Shkr=0ifC3ShkrReal<01ifC3ShkrReal>1C3ShkrRealotherwise C4Shkr=0ifC4ShkrReal<01ifC4ShkrReal>1C4ShkrRealotherwise OShkr=0ifOShkrReal<01ifOShkrReal>1OShkrRealotherwise kv=kv0VmzvFRT k_v=k_v0Vmz_vFRT ddtimeC0ShkrReal=k_vC1Shkr-4kvC0Shkr ddtimeC1ShkrReal=2k_vC2Shkr+4kvC0Shkr-3kv+k_vC1Shkr ddtimeC2ShkrReal=3k_vC3Shkr+3kvC1Shkr-2kv+2k_vC2Shkr ddtimeC3ShkrReal=4k_vC4Shkr+2kvC2Shkr-kv+3k_vC3Shkr ddtimeC4ShkrReal=k_oOShkr+kvC3Shkr-ko+4k_vC4Shkr ddtimeOShkrReal=koC4Shkr-k_oOShkr

Component: I_b

I_b=GbVm-Eb

Component: I_stim

I_stim=stim_amplitudeiftimestim_starttimestim_endtime-stim_start-time-stim_startstim_periodstim_periodstim_duration0otherwise

Component: model_parameters