Model Mathematics

Component: environment

Component: J_stim

J_stim=IstimAmplitudeiftime≥IstimStart∧time≦IstimEnd∧time-IstimStart-⌊time-IstimStartIstimPeriod⌋⁢IstimPeriod≦IstimPulseDuration0otherwise

Component: membrane

ddtimeVm=J_in+J_out+J_stim

Component: J_in

J_in=h⁢Vm2⁢1-Vmtau_in

Component: J_in_h_gate

ddtimeh=1-htau_openifVm<V_gate-htau_closeotherwise

Component: J_out

J_out=-Vmtau_out