-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGK.mod
More file actions
60 lines (49 loc) · 700 Bytes
/
GK.mod
File metadata and controls
60 lines (49 loc) · 700 Bytes
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
TITLE GK.mod
COMMENT
GK.mod
conductance read from a file, starting after vthreshold is exceeded
ENDCOMMENT
NEURON {
SUFFIX GK
USEION k READ ek WRITE ik
RANGE vthreshold, gkbar, gt, initflag, del
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(S) = (siemens)
}
PARAMETER {
vthreshold (mV)
gkbar (S/cm2)
}
ASSIGNED {
v (mV)
ek (mV)
ik (mA/cm2)
initflag (1)
del (ms)
gt (1)
}
INITIAL {
initflag = 0
del = 0
gt = 0
}
BREAKPOINT {
SOLVE check METHOD after_cvode
at_time(del)
if (initflag) {
gt = stepforce(t - del, "gK.dat")
ik = gkbar*gt*(v - ek)
}else{
gt = 0
ik = 0
}
}
PROCEDURE check() {
if (initflag == 0 && v > vthreshold) {
initflag = 1
del = t
}
}