// Written by Zhen Qi // Set up geometry and membrane parameters and mechanisms proc parameters() { forall { Ra = 100 insert pas g_pas = 3e-5 e_pas = -65 insert extracellular insert xtra } forsec "soma" { cm = 1 insert CaDynamics_E2_soma insert Ca_HVA_soma insert Ca_LVAst_soma insert Ih insert NaTs2_t_soma insert SK_E2_soma insert SKv3_1_soma } forsec "axon" { cm = 1 insert CaDynamics_E2 insert Ca_HVA insert Ca_LVAst insert K_Pst insert K_Tst insert NaTa_t insert Nap_Et2 insert SK_E2 insert SKv3_1 } forsec "dend" { cm = 2 insert Ih } forsec "apic" { cm = 2 insert Ih insert Im insert NaTs2_t_apic insert SKv3_1_apic } // these are reasonable values for most models freq = 100 // Hz, frequency at which AC length constant will be computed d_lambda = 0.01 forall { nseg = int((L/(d_lambda*lambda_f(freq))+0.999)/2)*2 + 1 } } begintemplate Location2 public secRef, loc objref secRef proc init() { secRef = new SectionRef() loc = $1 } endtemplate Location2 setstim(DEL, DUR, SCA) detectFire("run.out") quit()