-
Notifications
You must be signed in to change notification settings - Fork 2
/
kM.mod
55 lines (46 loc) · 833 Bytes
/
kM.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
TITLE HH KM channel
: Hodgkin - Huxley KM channel with parameters from
: US Bhalla and JM Bower, J. Neurophysiol. 69:1948-1983 (1993)
: Andrew Davison, The Babraham Institute, 1998.
NEURON {
SUFFIX kM
USEION k READ ek WRITE ik
RANGE gkbar, ik
GLOBAL xinf, xtau
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
PARAMETER {
v (mV)
dt (ms)
gkbar=.036 (mho/cm2) <0,1e9>
ek = -70 (mV)
}
STATE {
x
}
ASSIGNED {
ik (mA/cm2)
xinf
xtau (ms)
}
INITIAL {
rates(v)
x = xinf
}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gkbar*x*(v - ek)
}
DERIVATIVE states {
rates(v)
x' = (xinf - x)/xtau
}
PROCEDURE rates(v(mV)) {
TABLE xinf, xtau FROM -100 TO 100 WITH 200
xinf = 1/(1 + exp(-(v*1(/mV) + 35)/5))
xtau = 1000(ms)/(3.3*exp((v*1(/mV) + 35)/40) + exp(-(v*1(/mV) + 35)/20))
}