-
Notifications
You must be signed in to change notification settings - Fork 1
/
kcasimple.mod
70 lines (53 loc) · 1004 Bytes
/
kcasimple.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
TITLE Calcium dependent potassium channel (small conductance SK)
UNITS {
(molar) = (1/liter)
(mV) = (millivolt)
(S) = (siemens)
(mA) = (milliamp)
(mM) = (millimolar)
}
NEURON {
SUFFIX kcas
USEION ca READ cai
USEION k WRITE ik
RANGE gk,gbar,km,oinf,ik,n,otau
}
PARAMETER {
cai (mM)
gbar (S/cm2)
gk (S/cm2)
ek = -90 (mV)
km = 0.00019 (mM)
n = 4.0 (1)
otau=28 (ms)
}
ASSIGNED {
v (mV)
ik (mA/cm2)
oinf (1)
}
BREAKPOINT {
SOLVE states METHOD cnexp
if (cai>0) {
oinf = 1/(1 + pow(km/cai,n))
} else {
oinf=0
}
:ik = oinf*gbar*(v - ek)
ik = o*gbar*(v - ek)
gk = o*gbar
}
STATE { o <1e-4>}
INITIAL {
o = 1/(1 + pow(km/cai,n))
}
UNITSOFF
DERIVATIVE states {
if (cai>0) {
oinf = 1/(1 + pow(km/cai,n))
} else {
oinf=0
}
o' = (oinf-o)/otau
}
UNITSON