-
Notifications
You must be signed in to change notification settings - Fork 0
/
nas.mod
73 lines (62 loc) · 1003 Bytes
/
nas.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
67
68
69
70
71
72
73
COMMENT
NAS channel only for FSIs
implemented by HS
ENDCOMMENT
NEURON {
SUFFIX nas
USEION na READ ena WRITE ina
RANGE gna, g
}
UNITS {
(S) = (siemens)
(mV) = (millivolt)
(mA) = (milliamp)
}
PARAMETER {
gna = 0.1125 (S/cm2)
theta_m = -24 (mV)
sigma_m = 11.5 (mV)
theta_h = -58.3 (mV)
sigma_h = -6.7 (mV)
theta_t_h = -60 (mV)
sigma_t_h = -12 (mV)
taum = 0.001 (ms) : for stability with dt>0.01 ms
}
ASSIGNED {
v (mV)
ena (mV)
ina (mA/cm2)
g (S/cm2)
}
STATE {
m
h
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gna * h * m^3
ina = g * (v-ena)
}
INITIAL {
m = minfi(v)
h = hinfi(v)
}
DERIVATIVE states {
m' = (minfi(v)-m)/taum
h' = (hinfi(v)-h)/tauh(v)
}
FUNCTION hinfi(v (mV)) {
UNITSOFF
hinfi=1/(1 + exp(-(v-theta_h)/sigma_h))
UNITSON
}
FUNCTION tauh(v (mV)) (ms) {
UNITSOFF
tauh = 0.5 + 14 / ( 1 + exp(-(v-theta_t_h)/sigma_t_h))
UNITSON
}
FUNCTION minfi(v (mV)) {
UNITSOFF
minfi=1/(1 + exp(-(v-theta_m)/sigma_m))
UNITSON
}