-
Notifications
You must be signed in to change notification settings - Fork 2
/
cadecay2.mod
69 lines (53 loc) · 1.26 KB
/
cadecay2.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 Calcium decay
: as described in Bhalla and Bower, J. Neurophysiol. 69:1948-1983 (1993)
: Andrew Davison, The Babraham Institute, 1998
: partially based on cadecay.mod by Alain Destexhe, Salk Institute 1995.
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms) }
NEURON{
SUFFIX cad2
USEION ca READ ica, cai WRITE cai
RANGE ica, channel_flow, depth, B
GLOBAL tau, cainf
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(molar) = (1/liter)
(mM) = (millimolar)
(um) = (micron)
}
CONSTANT {
FARADAY = 96154 (coul)
:FARADAY = 93149 (coul) : moles do not appear in units
: note this value is chosen to fit with
: Genesis
}
PARAMETER {
dt (ms)
depth = 1 (um) : shell within which cai is calculated
: to match Bhalla and Bower 1993 set
: depth = diam/4 for each compartment
tau = 800 (ms) : cai decay constant
cainf = 1e-5 (mM) : baseline calcium concentration
ica (mA/cm2)
f = 1.0 : warmen
}
STATE {
cai (mM)
}
INITIAL {
cai = cainf
}
ASSIGNED {
channel_flow (mM/ms)
B (mM cm2/ms/mA)
}
BREAKPOINT {
SOLVE state METHOD cnexp
}
DERIVATIVE state {
B = -f*(1e4)/(2*FARADAY*depth)
channel_flow = B*ica
if (channel_flow <= 0.0 ) { channel_flow = 0.0 } : one way flow in channel
cai' = channel_flow - (cai - cainf)/tau
}