-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcas.mod
62 lines (51 loc) · 841 Bytes
/
cas.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
: Persistent Ca2+ current channel(I_CaS)
NEURON {
SUFFIX cass
USEION ca READ eca WRITE ica
RANGE gbar, g
RANGE jainf, kinf, jatau, ktau
RANGE ica
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
gbar (siemens/cm2)
}
ASSIGNED {
v (mV)
eca (mV)
ica (mA/cm2)
jainf
kinf
jatau (ms)
ktau (ms)
g (siemens/cm2)
}
STATE {
ja k
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar*ja*ja*ja*k
ica = g*(v-eca)
}
INITIAL {
rate(v)
ja = jainf
k = kinf
}
DERIVATIVE states {
rate(v)
ja' = (jainf-ja)/jatau
k' = (kinf-k)/ktau
}
PROCEDURE rate(v(mV)) {
UNITSOFF
jainf = (1.0)/(1+ (exp ((v+33.0)/(-8.1))))
jatau = 2.8 + 14.0/( (exp ((v+27.0)/(10.0))) + (exp ((v+70.0)/(-13.0))))
kinf = 1.0/(1.0+(exp ((v+60.0)/(6.2))))
ktau = (120.0 + 300.0/( (exp ((v+55.0)/(9.0))) + (exp ((v+65)/(-16.0)))))
UNITSON
}