-
Notifications
You must be signed in to change notification settings - Fork 1
/
cadecay.mod
executable file
·64 lines (51 loc) · 1.3 KB
/
cadecay.mod
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
TITLE Mechanism for submembranal Ca2+ concentration (cai)
COMMENT
Takes into account:
- increase of cai due to calcium currents
- extrusion of calcium with a simple first order equation
Parameters:
- depth: depth of the shell beneath the membran (in um). Should be
no more than the radius of the cell.
- cainf: equilibrium concentration of calcium (TC: 23e-6 mM; NRT:
39e-6 mM)
- taux: time constant of calcium extrusion (5 ms)
Written by Martynas Dervinis @ Cardiff University, 2013
ENDCOMMENT
NEURON {
SUFFIX cad
USEION ca READ ica, cai WRITE cai
RANGE depth, cainf, taux
}
UNITS {
(molar) = (1/liter)
(mM) = (millimolar)
(um) = (micron)
(mA) = (milliamp)
(msM) = (ms mM)
}
CONSTANT {
FARADAY = 96489 (coul)
}
PARAMETER {
depth = 1 (um) : depth of shell
taux = 5 (ms) : rate of calcium removal
cainf = 50e-6 (mM)
}
STATE {
cai (mM)
}
INITIAL {
cai = cainf
}
ASSIGNED {
ica (mA/cm2)
drive_channel (mM/ms)
}
BREAKPOINT {
SOLVE state METHOD derivimplicit
}
DERIVATIVE state {
drive_channel = - (10000) * ica / (2 * FARADAY * depth) : 10000 comes from depth being in um instead of cm
if (drive_channel <= 0) { drive_channel = 0 } : cannot pump inward
cai' = drive_channel + (cainf-cai)/taux
}