Model Mathematics

Component: environment

Component: J_stim

J_stim=IstimAmplitudeiftimeIstimStarttimeIstimEndtime-IstimStart-time-IstimStartIstimPeriodIstimPeriodIstimPulseDuration0otherwise

Component: membrane

ddtimeVm=J_in+J_out+J_stim

Component: J_in

J_in=hVm21-Vmtau_in

Component: J_in_h_gate

ddtimeh=1-htau_openifVm<V_gate-htau_closeotherwise

Component: J_out

J_out=-Vmtau_out