-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGCa.mod
More file actions
60 lines (49 loc) · 715 Bytes
/
GCa.mod
File metadata and controls
60 lines (49 loc) · 715 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 GCa.mod
COMMENT
GCa.mod
conductance read from a file, starting after vthreshold is exceeded
ENDCOMMENT
NEURON {
SUFFIX GCa
USEION ca READ eca WRITE ica
RANGE vthreshold, gcabar, gt, initflag, del
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(S) = (siemens)
}
PARAMETER {
vthreshold (mV)
gcabar (S/cm2)
}
ASSIGNED {
v (mV)
eca (mV)
ica (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, "gCa.dat")
ica = gcabar*gt*(v - eca)
}else{
gt = 0
ica = 0
}
}
PROCEDURE check() {
if (initflag == 0 && v > vthreshold) {
initflag = 1
del = t
}
}