forked from ModelDBRepository/262046
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxtra.mod
More file actions
40 lines (35 loc) · 700 Bytes
/
Copy pathxtra.mod
File metadata and controls
40 lines (35 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
COMMENT
This is a simplified version of xtra.mod for applying extracellular stimulation to neuron sections.
ENDCOMMENT
NEURON {
SUFFIX xtra
RANGE rx, er
RANGE x, y, z
GLOBAL is
POINTER im, ex
}
PARAMETER {
: default transfer resistance between stim electrodes and axon
rx = 1 (megohm) : mV/nA
x = 0 (1) : spatial coords
y = 0 (1)
z = 0 (1)
}
ASSIGNED {
v (millivolts)
is (milliamp)
ex (millivolts)
im (milliamp/cm2)
er (microvolts)
area (micron2)
}
INITIAL {
ex = is*rx*(1e6)
er = (10)*rx*im*area
}
BEFORE BREAKPOINT { : before each cy' = f(y,t) setup
ex = is*rx*(1e6)
}
AFTER SOLVE { : after each solution step
er = (10)*rx*im*area
}