-
Notifications
You must be signed in to change notification settings - Fork 2
/
cadiff.mod
58 lines (43 loc) · 1.07 KB
/
cadiff.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
: Ca diffusion in a Purkinje cell
: Created 8/15/02 - nwg
: https://senselab.med.yale.edu/ModelDB/ShowModel?model=48332&file=/purkinje/cadiff.mod#tabs-1
: "Biophysical modeling of the whole-cell dynamics of C. elegans motor and interneurons families"
: M. Nicoletti et al. PloS ONE, 19(3): e0298105.
: https://doi.org/10.1371/journal.pone.0298105
NEURON {
SUFFIX cadiff
USEION ca READ ica, cai WRITE cai
RANGE ca
GLOBAL depth, beta
}
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(mM) = (milli/liter)
(um) = (micron)
}
CONSTANT {
F = 9.6485e4 (coul)
}
PARAMETER {
cai (mM)
dt (ms)
depth = .1 (um)
beta = 1 (/ms)
}
ASSIGNED {
ica (mA/cm2)
}
STATE {
ca (mM)
}
INITIAL {
ca = .0001
}
BREAKPOINT {
ca = ca + (10000) * dt * ( ( -1/(2*F)*ica / (depth)) - (.0001) * beta * ca )
if ( ca < 1e-4 ) {: minimum 100 nM Ca
ca = 1e-4
}
cai = ca
}