-
Notifications
You must be signed in to change notification settings - Fork 1
/
Kahtp.em
101 lines (88 loc) · 2.6 KB
/
Kahtp.em
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
# Kahp channel (Ca-dependent k channel)
# From Lyle J. Borg-Graham, 1999 formulation. parameters are from Gold et al., 2006.
# kahp_new
Variable Variable( kahp_new_aw )
{ Value 1e31;
}
Variable Variable( kahp_new_bw )
{ Value 0.2;
}
Variable Variable( kahp_new_tau_0 )
{ Value 0; #tmp
}
Variable Variable( kahp_new_tau_w )
{ Value 0; #tmp
}
Variable Variable( kahp_new_w_inf )
{ Value 0; #tmp
}
Process ExpressionAssignmentProcess ( kahp_new_cai )
{
StepperID Default;
Expression "lt(t.Value,dt.Value)*5e-5+geq(t.Value,dt.Value)*cai.Value";
VariableReferenceList
[ cai :/:cai 1 ]
[ t :/:t 0 ]
[ dt :/:dt 0 ];
}
Process ExpressionAssignmentProcess ( kahp_new_tau_0 )
{
StepperID Default;
Expression "lt(t.Value,dt.Value)*5.0+geq(t.Value,dt.Value)*kahp_new_tau_0.Value";
VariableReferenceList
[ kahp_new_tau_0 :/:kahp_new_tau_0 1 ]
[ t :/:t 0 ]
[ dt :/:dt 0 ];
}
Process ExpressionAssignmentProcess ( kahp_new_tau_w )
{
StepperID Default;
Expression "1/ ( kahp_new_aw.Value*pow(cai.Value,2)+kahp_new_bw.Value ) + kahp_new_tau_0.Value";
VariableReferenceList
[ kahp_new_tau_w :/:kahp_new_tau_w 1 ]
[ kahp_new_aw :/:kahp_new_aw 0 ]
[ cai :/:cai 0 ]
[ kahp_new_bw :/:kahp_new_bw 0 ]
[ kahp_new_tau_0 :/:kahp_new_tau_0 0 ];
}
Process ExpressionAssignmentProcess ( kahp_new_w_inf )
{
StepperID Default;
Expression "kahp_new_aw.Value*pow(cai.Value,2)/( kahp_new_aw.Value*pow(cai.Value,2)+kahp_new_bw.Value )";
VariableReferenceList
[ kahp_new_w_inf :/:kahp_new_w_inf 1 ]
[ kahp_new_aw :/:kahp_new_aw 0 ]
[ cai :/:cai 0 ]
[ kahp_new_bw :/:kahp_new_bw 0 ];
}
Process ExpressionFluxProcess( kahp_new_wkahp )
{
StepperID Default;
Expression "(kahp_new_w_inf.Value/kahp_new_tau_w.Value)/(1/kahp_new_tau_w.Value)";
VariableReferenceList
[ wkahp :/:wkahp 1 ]
[ kahp_new_w_inf :/:kahp_new_w_inf 0 ]
[ kahp_new_tau_w :/:kahp_new_tau_w 0 ];
}
Process ExpressionAssignmentProcess( kahp_new_ikahp )
{
StepperID Default;
Expression "gkahp.Value*pow(wkahp.Value,8)*(v.Value+91)";
VariableReferenceList
[ ikahp :/:ikahp 1 ]
[ gkahp :/:gkahp 0 ]
[ wkahp :/:wkahp 0 ]
[ v :/:v 0 ];
}
# leak current or passive current
# pas
Process ExpressionAssignmentProcess( ipas )
{
StepperID Default;
Expression "gpas.Value*(v.Value-vrest.Value)";
VariableReferenceList
[ ipas :/:ipas 1 ]
[ gpas :/:gpas 0 ]
[ v :/:v 0 ]
[ vrest :/:vrest 0 ];
}