-
Notifications
You must be signed in to change notification settings - Fork 0
/
cal.mod
executable file
·66 lines (50 loc) · 1.01 KB
/
cal.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
65
66
TITLE Calcium high-threshold L type current for RD Traub, J Neurophysiol 89:909-921, 2003
COMMENT
Implemented by Maciej Lazarewicz 2003 ([email protected])
ENDCOMMENT
INDEPENDENT { t FROM 0 TO 1 WITH 1 (ms) }
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
}
NEURON {
SUFFIX cal
USEION ca WRITE ica
RANGE gbar, ica
}
PARAMETER {
gbar = 0.0 (mho/cm2)
v (mV)
}
ASSIGNED {
ica (mA/cm2)
alpha beta (/ms)
}
STATE {
m
}
BREAKPOINT {
SOLVE states METHOD cnexp
ica = gbar * m * m * ( v - 125 )
}
INITIAL {
settables(v)
m = alpha / ( alpha + beta )
m = 0
}
DERIVATIVE states {
settables(v)
m' = alpha * ( 1 - m ) - beta * m
}
UNITSOFF
PROCEDURE settables(v) { LOCAL tmp
TABLE alpha, beta FROM -120 TO 40 WITH 641
alpha = 1.6 / ( 1 + exp( - 0.072 * ( v - 5 ) ) )
tmp = v + 8.9
if ( fabs( tmp ) < 1e-6 ) {
beta = 0.1 * exp( - tmp / 5 )
}else{
beta = 0.02 * tmp / ( exp( tmp / 5 ) - 1 )
}
}
UNITSON