-
Notifications
You must be signed in to change notification settings - Fork 1
/
car.mod
115 lines (86 loc) · 2.68 KB
/
car.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
TITLE Ca R-type channel with medium threshold for activation
: used in distal dendritic regions, together with calH.mod, to help
: the generation of Ca++ spikes in these regions
: uses channel conductance (not permeability)
: written by Yiota Poirazi on 11/13/00 poirazi@LNC.usc.edu
:
: updated to use CVode by Carl Gold 08/10/03
: Updated by Maria Markaki 03/12/03
NEURON {
SUFFIX car
USEION ca READ cao WRITE ica
: USEION Ca WRITE iCa VALENCE 2
RANGE gcabar, m, h,ica
RANGE inf, fac, tau, ica
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(molar) = (1/liter)
(mM) = (millimolar)
FARADAY = (faraday) (coulomb)
R = (k-mole) (joule/degC)
}
ASSIGNED { : parameters needed to solve DE
ica (mA/cm2)
: iCa (mA/cm2)
inf[2]
tau[2] (ms)
v (mV)
celsius (degC)
cai (mM) : initial internal Ca++ concentration
cao (mM) : initial external Ca++ concentration
}
PARAMETER { : parameters that can be entered when function is called in cell-setup
gcabar = 0 (mho/cm2) : initialized conductance
eca = 140 (mV) : Ca++ reversal potential
}
STATE {
m
h
} : unknown activation and inactivation parameters to be solved in the DEs
INITIAL {
rates(v)
m = 0 : initial activation parameter value
h = 1 : initial inactivation parameter value
}
BREAKPOINT {
SOLVE states METHOD cnexp
:ecar = (1e3) * (R*(celsius+273.15))/(2*FARADAY) * log (cao/cai)
ica = gcabar*m*m*m*h*(v - eca)
}
DERIVATIVE states {
rates(v)
m' = (inf[0]-m)/tau[0]
h' = (inf[1]-h)/tau[1]
}
PROCEDURE rates(v(mV)) {LOCAL a, b :rest = -70
FROM i=0 TO 1 {
tau[i] = vartau(v,i)
inf[i] = varss(v,i)
}
}
FUNCTION varss(v(mV), i) {
LOCAL Arg
if (i==0) {
Arg=(v+48.5)/(-3 (mV))
if (Arg<-50) {varss=1} : Ca activation
else if (Arg>50) {varss=0}
else {varss=1/(1+exp(Arg))}
} else if (i==1) {
Arg=(v+53)/(1 (mV))
if (Arg<-50) {varss=1} : Ca inactivation
else if (Arg>50) {varss=0}
else {varss=1/(1+exp(Arg))}
}
}
FUNCTION vartau(v(mV), i) (ms){
if (i==0) {
vartau = 5(ms) : activation variable time constant used to be 50 ms Dr.C's email 12/1
: vartau = 120(ms) : activation variable time constant
}
else if (i==1) {
vartau = 50(ms) : inactivation variable time constant used to be 5 ms Dr.C's email 12/1
: vartau = 4(ms) : inactivation variable time constant
}
}