-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path6_param_sweeps.hoc
27 lines (24 loc) · 1.08 KB
/
6_param_sweeps.hoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// these functions update all parameters that depend upon a changed parameter
// for example, set_fiber_diameter params sets all the parameters that depend upon fiber_diameter
proc set_fiber_diameter_params(){
axon_diameter=0.66604*fiber_diameter-0.42879
nl=(fiber_diameter-axon_diameter)/(2*thickness_myelin)
passiveg=g_nl/(2*nl)
cm_my=2*eo*er/( fiber_diameter*log(fiber_diameter/axon_diameter))
passivecm=cm_my/(1+cm_my*fiber_diameter/(cm_node*axon_diameter))
c_nl=passivecm*(nl)
kg=kg_per_ch*num_k_chans/(PI*Lflut*axon_diameter*10^-8)
}
proc set_nodal_diameter_params(){
nodal_diameter_inc=nodal_diameter*.32406*exp(-0.39509*nodal_diameter)*0.0
nag=nag_per_chan*num_sod_chans/(PI*Lnode*nodal_diameter*10^-8)
}
proc set_nodal_length_params(){
Lstin=Lsection-(Lnode+2*Lflut+2*Lmysa)
nag=nag_per_chan*num_sod_chans/(PI*Lnode*(nodal_diameter+nodal_diameter_inc)*10^-8) // ( 10^-8 ---> convert to /cm^2)
kg=kg_per_ch*num_k_chans/(PI*Lflut*axon_diameter*10^-8)
}
proc set_internodal_length_params(){
Lstin=Lsection-(Lnode+2*Lflut+2*Lmysa)
Lsoma=Lstin
}