-
Notifications
You must be signed in to change notification settings - Fork 2
/
CaPN.mod
65 lines (52 loc) · 868 Bytes
/
CaPN.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
TITLE HH P/N calcium channel
NEURON {
SUFFIX Icapn
USEION ca WRITE ica
RANGE gbar, ica, h, m, g
GLOBAL minf, hinf, mtau, htau
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
v (mV)
gbar = 0.1 (mho/cm2) <0,1e9>
e = 100 (mV)
}
STATE {
m
h
g (mho/cm2)
}
ASSIGNED {
ica (mA/cm2)
minf
hinf
mtau (ms)
htau (ms)
}
INITIAL {
rates(v)
m = minf
h = hinf
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar*m*m*h
ica = g*(v - e)
}
DERIVATIVE states {
: computes state variables m and h at present v, t
rates(v)
m' = (minf - m)/mtau
h' = (hinf - h)/htau
}
PROCEDURE rates(v(mV)) {
UNITSOFF
mtau = 0.4 + 0.7/(exp((-5-v)/15) + exp((-5-v)/(-15)))
minf = 1/(1+exp(-10-v)/4)
htau = 300 + 100/(exp((-40-v)/9.5) + exp((-40-v)/(-9.5)))
hinf = 1/(1+exp((-25-v)/(-2)))
UNITSON
}