-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathretziuspair.hoc
72 lines (53 loc) · 1.08 KB
/
retziuspair.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
load_file("nrngui.hoc")
//remember to remove dashes from prev line
//load_file("gap.hoc")
begintemplate retzius
public soma, axon, nden, cden
public dendritic, somatic, somden
create soma, axon, nden, cden[2]
objref dendritic, somatic, somden
access soma
proc init() {
forall {Ra =180
}
dendritic = new SectionList()
forsec "nden" dendritic.append()
forsec "cden" dendritic.append()
somatic = new SectionList()
soma somatic.append
somden = new SectionList()
forsec somatic somden.append()
forsec dendritic somden.append()
topol()
segments()
geometry()
memb()
}
proc topol() {local i
connect axon (0), soma (0.5)
connect cden[0](0), axon(0.2)
connect cden[1](0), axon(0.2)
connect nden(0), axon(0.2)
}
proc segments() {local i
soma.nseg= 1
axon.nseg= 5
nden.nseg = 5
forsec "cden" nseg = 10
}
proc geometry() {local i
soma { L = 80 diam = 80 }
axon { L = 100 diam = 20 }
nden { L = 100 diam = 1 }
forsec "cden" { L=50 diam= 1.5}
define_shape()
}
proc memb() {
forall {insert pas
cm = 1
g_pas = 1/25000
e_pas = -60
}
}
endtemplate retzius
//xopen ("retztemp.ses")