-
Notifications
You must be signed in to change notification settings - Fork 1
/
KdBG.mod
84 lines (71 loc) · 1.63 KB
/
KdBG.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
74
75
76
77
78
79
80
81
82
83
84
TITLE Kd current
COMMENT Equations from
Lyle J Borg-Graham Interpretation of Data and Mechanisms for Hippocampal Pyramidal Cell Models A Chapter in "Cerebral Cortex, Volumne 13: Cortical Models" Edited by P.S.Ulinski, E.G.Jones and A.Peters,New York:plenum Press,1998
The Krasnow Institute
George Mason University
Copyright Maciej Lazarewicz, 2001
All rights reserved.
ENDCOMMENT
NEURON {
SUFFIX KdBG
USEION k WRITE ik
RANGE gbar,ik
GLOBAL xtau, ytau, xinf, yinf
}
UNITS {
(S) = (siemens)
(mA) = (milliamp)
(mV) = (millivolt)
FARADAY = (faraday) (coulombs)
R = (k-mole) (joule/degC)
}
PARAMETER {
gbar = 1.0e-3 (S/cm2)
celsius (degC)
Ky = 2.0e-4 (1/ms)
gammay = 0.0 (1)
zettax = 3.0 (1)
zettay = -2.5 (1)
vhalfx = -63.0 (mV)
vhalfy = -73.0 (mV)
taox = 1.0 (ms)
taoy = 0.0 (ms)
}
ASSIGNED {
v (mV)
ik (mA/cm2)
xtau (ms)
ytau (ms)
xinf (1)
yinf (1)
q10 (1)
T (K)
}
STATE { xs ys }
BREAKPOINT {
SOLVE states METHOD cnexp
ik= gbar * xs^4 * ys^4 * ( v + 95.0 )
}
DERIVATIVE states {
rates()
xs'= (xinf- xs)/ xtau
ys'= (yinf- ys)/ ytau
}
INITIAL {
T = celsius + 273.15
q10= 1.0^( (celsius-35.0) / 10.0(K) )
rates()
xs= xinf
ys= yinf
}
PROCEDURE rates() { LOCAL a, b
a = q10*exp( (1.0e-3)* zettax*(v-vhalfx)*FARADAY/(R*T) )
b = q10*exp( (1.0e-3)* -zettax*(v-vhalfx)*FARADAY/(R*T) )
xinf = a / ( a + b )
xtau = taox
a = q10*Ky*exp( (1.0e-3)* zettay* gammay *(v-vhalfy)*FARADAY/(R*T) )
b = q10*Ky*exp( (1.0e-3)* -zettay*(1.0-gammay)*(v-vhalfy)*FARADAY/(R*T) )
yinf = a / ( a + b )
ytau = 1.0 / ( a + b ) + taoy
}