-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraphs.ses
177 lines (141 loc) · 3.89 KB
/
graphs.ses
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
objref InjectMatrix
objref InjectFile, voltage
InjectFile = new File("c6v1.dat")
InjectFile.ropen()
InjectMatrix = new Matrix()
InjectMatrix.scanf(InjectFile,100,2)
voltage = new Vector(100)
for(i=0; i<voltage.size; i = i+1){
if(i>=InjectMatrix.nrow){
voltage.x[i] = voltage.x[i-1]
}else{
voltage.x[i]=InjectMatrix.x[i][1]
}
}
objref InjectMatrix1
objref InjectFile1, signal
InjectFile1 = new File("c6f1.dat")
InjectFile1.ropen()
InjectMatrix1 = new Matrix()
InjectMatrix1.scanf(InjectFile1,100,2)
signal = new Vector(100)
for(i=0; i<signal.size; i = i+1){
if(i>=InjectMatrix1.nrow){
signal.x[i] = signal.x[i-1]/0.9
}else{
signal.x[i]=InjectMatrix1.x[i][1]/0.9
}
}
objref InjectMatrix2
objref InjectFile2, voltage2
InjectFile2 = new File("c6v2.dat")
InjectFile2.ropen()
InjectMatrix2 = new Matrix()
InjectMatrix2.scanf(InjectFile2,100,2)
voltage2 = new Vector(100)
for(i=0; i<voltage2.size; i = i+1){
if(i>=InjectMatrix2.nrow){
voltage2.x[i] = voltage2.x[i-1]
}else{
voltage2.x[i]=InjectMatrix2.x[i][1]
}
}
objref InjectMatrix3
objref InjectFile3, voltage3
InjectFile3 = new File("c6v3.dat")
InjectFile3.ropen()
InjectMatrix3 = new Matrix()
InjectMatrix3.scanf(InjectFile3,100,2)
voltage3 = new Vector(100)
for(i=0; i<voltage3.size; i = i+1){
if(i>=InjectMatrix3.nrow){
voltage3.x[i] = voltage3.x[i-1]+5
}else{
voltage3.x[i]=InjectMatrix3.x[i][1]+5
}
}
objref InjectMatrix12
objref InjectFile12, signal2
InjectFile12 = new File("c6f2.dat")
InjectFile12.ropen()
InjectMatrix12 = new Matrix()
InjectMatrix12.scanf(InjectFile12,100,2)
signal2 = new Vector(100)
for(i=0; i<signal2.size; i = i+1){
if(i>=InjectMatrix12.nrow){
signal2.x[i] = signal2.x[i-1]/0.9
}else{
signal2.x[i]=InjectMatrix12.x[i][1]/0.9
}
}
objref InjectMatrix13
objref InjectFile13, signal3
InjectFile13 = new File("c6f3.dat")
InjectFile13.ropen()
InjectMatrix13 = new Matrix()
InjectMatrix13.scanf(InjectFile13,100,2)
signal3 = new Vector(100)
for(i=0; i<signal3.size; i = i+1){
if(i>=InjectMatrix13.nrow){
signal3.x[i] = signal3.x[i-1]/0.9
}else{
signal3.x[i]=InjectMatrix13.x[i][1]/0.9
}
}
//plot the curves
objectvar save_window_, gObj
//the Display Window
{
gObj= new VBox()
gObj.intercept(1)
save_window_ = new Graph(0)
save_window_.size(0,tstop,-100,0)
save_window_.view(0,-100,tstop,0, 780,0,465, 250)
graphList[0].append(save_window_)
save_window_.addexpr("v(.5)", 1, 1)
voltage.plot(save_window_, .2,2,1)
voltage2.plot(save_window_, .2,4,1)
voltage3.plot(save_window_, .2,3,1)
save_window_ = new Graph(0)
save_window_.size(0,tstop,0,0.05)
save_window_.view(0,0,tstop,0.07, 780,0, 465, 250)
graphList[2].append(save_window_)
save_window_.addexpr("BTC_ca_cdp5( 0.5 )-BTCnull_cdp5/(1+(b2_cdp5/(b1_cdp5*45e-6)))", 1,1)
signal.plot(save_window_, .2,2,1)
signal2.plot(save_window_, .2,4,1)
signal3.plot(save_window_, .2,3,1)
save_window_ = new Graph(0)
save_window_.size(0,tstop,0,0.05)
save_window_.view(0,0,tstop,0.07, 780,0, 465, 250)
graphList[2].append(save_window_)
save_window_.addexpr("ica( 0.5 )", 2,1)
gObj.intercept(0)
gObj.map("Graphs",780,0,0,0)
}
objectvar save_window_1, gObj1
//the Display Window
{
gObj1= new VBox()
gObj1.intercept(1)
save_window_1= new Graph(0)
save_window_1.size(0,tstop,-1,1)
save_window_1.view(0,-1,tstop,2, 1440,800, 265, 250)
graphList[0].append(save_window_1)
save_window_1.addexpr("ica_CaT3_1( 0.5 )", 2,1)
save_window_1.addexpr("ica_newCaP1( 0.5 )", 1,1)
save_window_1.addexpr("ik_KA1( 0.5 )", 3,1)
save_window_1.addexpr("ik_KC3( 0.5 )", 4,1)
save_window_1.addexpr("ik_Kdr1( 0.5 )", 5,1)
save_window_1.addexpr("ik_SK2( 0.5 )", 6,1)
save_window_1= new Graph(0)
save_window_1.size(0,tstop,0,1)
save_window_1.view(0,0,tstop,1, 1440,800, 265, 250)
graphList[1].append(save_window_1)
save_window_1.addexpr("i_climbing( 0.5 )", 1,1)
gObj1.intercept(0)
gObj1.map("Graphs",1440,0,0,0)
}
objectvar save_window_2, gObj2
//the Display Window
{doNotify()}
run()