forked from radiasoft/rshellweg
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOptimizerUnit.dfm
More file actions
665 lines (665 loc) · 16 KB
/
OptimizerUnit.dfm
File metadata and controls
665 lines (665 loc) · 16 KB
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
object OptimizerForm: TOptimizerForm
Left = 0
Top = 0
Caption = 'Optimizer'
ClientHeight = 666
ClientWidth = 655
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -14
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnCanResize = FormCanResize
OnClose = FormClose
OnResize = FormResize
OnShow = FormShow
PixelsPerInch = 120
TextHeight = 17
object MainPanel: TPanel
Left = 0
Top = 0
Width = 655
Height = 535
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
TabOrder = 0
object BuncherPanel: TPanel
Left = 1
Top = 1
Width = 366
Height = 533
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alLeft
TabOrder = 0
object BuncherGroup: TGroupBox
Left = 1
Top = 1
Width = 364
Height = 531
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
Caption = 'Optimize Buncher'
TabOrder = 0
object BuncherCheck: TCheckBox
Left = 21
Top = 21
Width = 127
Height = 33
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Optimize'
TabOrder = 0
end
object bInputGroup: TGroupBox
Left = 21
Top = 58
Width = 305
Height = 181
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Input Parameters'
TabOrder = 1
object TypeLabel: TLabel
Left = 22
Top = 30
Width = 93
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Structure Type'
end
object ModeLabel: TLabel
Left = 22
Top = 65
Width = 33
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Mode'
end
object FrequencyLabel: TLabel
Left = 22
Top = 101
Width = 65
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Frequency'
end
object FrequencyDim: TLabel
Left = 216
Top = 101
Width = 25
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'MHz'
end
object PowerLabel: TLabel
Left = 22
Top = 136
Width = 38
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Power'
end
object PowerDim: TLabel
Left = 216
Top = 136
Width = 24
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'MW'
end
object TypeCombo: TComboBox
Left = 124
Top = 20
Width = 109
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 0
Text = 'DLS'
Items.Strings = (
'DLS')
end
object ModeCombo: TComboBox
Left = 124
Top = 55
Width = 109
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
ItemIndex = 0
TabOrder = 1
Text = 'pi/2'
Items.Strings = (
'pi/2'
'2pi/3')
end
object FrequencyEdit: TEdit
Left = 124
Top = 90
Width = 84
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 2
Text = '0.0'
end
object PowerEdit: TEdit
Left = 124
Top = 126
Width = 84
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 3
Text = '0.0'
end
end
object bLimitGroup: TGroupBox
Left = 21
Top = 247
Width = 305
Height = 98
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Limits'
TabOrder = 2
object LimitLabel1: TLabel
Left = 22
Top = 61
Width = 61
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Vary from'
end
object FieldTypeLabel: TLabel
Left = 22
Top = 26
Width = 26
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Field'
end
object LimitLabel2: TLabel
Left = 179
Top = 61
Width = 13
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'to'
end
object FieldCombo: TComboBox
Left = 69
Top = 16
Width = 121
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
ItemIndex = 0
TabOrder = 0
Text = 'A []'
Items.Strings = (
'A []'
'En [Ohm^1/2]'
'E [MV/m]')
end
object LimitEdit1: TEdit
Left = 92
Top = 51
Width = 83
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 1
Text = '1.0'
end
object LimitEdit2: TEdit
Left = 197
Top = 51
Width = 84
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 2
Text = '2.0'
end
end
object bObjectGroup: TGroupBox
Left = 21
Top = 353
Width = 305
Height = 130
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Object'
TabOrder = 3
object ParameterLabel: TLabel
Left = 25
Top = 61
Width = 63
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Parameter'
end
object SamplesLabel: TLabel
Left = 25
Top = 94
Width = 50
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Samples'
end
object SweepRadio: TRadioButton
Left = 22
Top = 21
Width = 67
Height = 22
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Sweep'
Checked = True
TabOrder = 0
TabStop = True
OnClick = SweepRadioClick
end
object OptimumRadio: TRadioButton
Left = 105
Top = 21
Width = 87
Height = 22
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Optimum'
TabOrder = 1
OnClick = OptimumRadioClick
end
object ParameterCombo: TComboBox
Left = 98
Top = 51
Width = 144
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
ItemIndex = 0
TabOrder = 2
Text = 'Capture'
OnChange = ParameterComboChange
Items.Strings = (
'Capture'
'Energy Spectrum'
'Phase Spectrum')
end
object SamplesSpin: TSpinEdit
Left = 98
Top = 86
Width = 77
Height = 27
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
MaxValue = 1000
MinValue = 2
TabOrder = 3
Value = 5
end
end
end
end
object AccelPanel: TPanel
Left = 367
Top = 1
Width = 287
Height = 533
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
TabOrder = 1
object AccelGroup: TGroupBox
Left = 1
Top = 1
Width = 285
Height = 531
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
Caption = 'OptimizeAccelerator'
TabOrder = 0
object AccelCheck: TCheckBox
Left = 21
Top = 27
Width = 127
Height = 23
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Optimize'
Checked = True
State = cbChecked
TabOrder = 0
end
object StructureGroup: TGroupBox
Left = 21
Top = 58
Width = 242
Height = 82
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Structure Type'
TabOrder = 1
object GradientRadio: TRadioButton
Left = 21
Top = 52
Width = 148
Height = 23
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Constant Gradient'
Checked = True
TabOrder = 0
TabStop = True
end
object ImpedanceRadio: TRadioButton
Left = 21
Top = 22
Width = 158
Height = 22
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Constant Impedance'
TabOrder = 1
end
end
end
object TargetGroup: TGroupBox
Left = 21
Top = 149
Width = 242
Height = 135
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Target Energy'
TabOrder = 1
object EnergyLabel: TLabel
Left = 21
Top = 26
Width = 44
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Energy'
end
object EnergyDim: TLabel
Left = 166
Top = 26
Width = 25
Height = 17
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'MeV'
end
object EnergyEdit: TEdit
Left = 73
Top = 20
Width = 85
Height = 25
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 0
Text = '20.0'
end
object StartCellCheck: TCheckBox
Left = 21
Top = 85
Width = 116
Height = 22
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Start from cell'
TabOrder = 1
OnClick = StartCellCheckClick
end
object StartCellSpin: TCSpinEdit
Left = 145
Top = 85
Width = 66
Height = 27
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
TabOrder = 2
end
end
object ExactCheck: TCheckBox
Left = 42
Top = 204
Width = 106
Height = 22
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Exact Value'
TabOrder = 2
end
end
end
object BottomPanel: TPanel
Left = 0
Top = 535
Width = 655
Height = 131
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alBottom
TabOrder = 1
object ProgressPanel: TPanel
Left = 1
Top = 1
Width = 536
Height = 129
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alClient
TabOrder = 0
object OptimizerProgress: TProgressBar
Left = 21
Top = 18
Width = 493
Height = 23
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Max = 0
TabOrder = 0
end
object SaveGraphCheck: TCheckBox
Left = 238
Top = 48
Width = 127
Height = 23
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Save Results'
TabOrder = 1
end
object StartButton: TButton
Left = 177
Top = 78
Width = 98
Height = 33
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Start'
TabOrder = 2
OnClick = StartButtonClick
end
object AbortButton: TButton
Left = 282
Top = 78
Width = 99
Height = 33
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Abort'
TabOrder = 3
OnClick = AbortButtonClick
end
end
object ButtonsPanel: TPanel
Left = 537
Top = 1
Width = 117
Height = 129
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Align = alRight
TabOrder = 1
object CloseButton: TButton
Left = 8
Top = 86
Width = 98
Height = 33
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Close'
TabOrder = 0
OnClick = CloseButtonClick
end
object LoadButton: TButton
Left = 8
Top = 46
Width = 95
Height = 32
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'Load Results'
TabOrder = 1
end
object ResultsButton: TButton
Left = 8
Top = 5
Width = 98
Height = 33
Margins.Left = 4
Margins.Top = 4
Margins.Right = 4
Margins.Bottom = 4
Caption = 'View Results'
Enabled = False
TabOrder = 2
OnClick = ResultsButtonClick
end
end
end
end