-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkca.mod
60 lines (47 loc) · 794 Bytes
/
kca.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-dependent potassium current
NEURON {
SUFFIX kca
USEION k READ ek WRITE ik
USEION ca READ ica
RANGE g, gbar, ik
}
UNITS {
(mM) = (milli/liter)
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
gbar (siemens/cm2)
}
ASSIGNED {
v (mV)
ek (mV)
ik (mA/cm2)
cinf
ctau (ms)
g (siemens/cm2)
ica (mM)
}
STATE {
c
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar*c*c*c*c
ik = g*(v-ek)
}
INITIAL {
rate(v,ica)
c = cinf
}
DERIVATIVE states {
rate(v,ica)
c' = (cinf-c)/ctau
}
PROCEDURE rate(v (mV), ica (mM)) {
UNITSOFF
:activation based on internal concentration of capool
cinf = ((ica)/(ica + 0.003))*((1.0)/(1+ (exp (-(v+28.3)/(12.6))))) :/(ica + 0.003))
ctau = ((180.6)-(150.2)/(1+(exp (-(v+46)/(22.7)))))
UNITSON
}