Commit 74a0c4a6 authored by kraus's avatar kraus
Browse files

Regression test for Slice tracker

parent 3ba2549f
Option, ECHO=FALSE;
Option, INFO=TRUE;
Option, PSDUMPFREQ=200;
OPTION, VERSION=20000;
Title, string="SwissFEL Injector, Phase 1 (Feb. 2010)";
REAL FINSS_RGUN_phi= 0;
REAL FINSB01_RACC_phi= 0;
REAL FINSB02_RACC_phi= 0;
call, "FinPhase1.phases";
REAL REPARTFREQ= 100;
value,{FINSS_RGUN_phi, FINSB01_RACC_phi, FINSB02_RACC_phi, REPARTFREQ};
GUN: Source, ELEMEDGE = 0.0;
FINSS_RGUN: RFCavity, L = 0.34986, VOLT = 100., FMAPFN = "FINSS-RGUN.dat",
ELEMEDGE = 0.0, TYPE = "STANDING", FREQ = 2998.0,
LAG = FINSS_RGUN_phi + (5.7/180.0*PI), APVETO=TRUE;
FIND1_MSOL10: Solenoid, L = 0.6, KS = 0.2089, FMAPFN = "FIND1-MSOL10.T7", ELEMEDGE = 0.0;
l1: Line = (GUN, FINSS_RGUN, FIND1_MSOL10);
// Define initial uniform beam distribution (== laser distribution)
// or use test particles for autophasing
Dist1:DISTRIBUTION, TYPE = "GUNGAUSSFLATTOPTH",
sigmax = 0.000275 * 2.,
sigmapx = 0.0,
corrx = 0.0,
sigmay = 0.000275 * 2.,
sigmapy = 0.0,
corry = 0.0,
sigmat = 0.0,
pt = 0.0,
sigmapt = 0.0,
corrt = 0.0,
ekin = 0.63,
tRise = 0.7e-12,
tFall = 0.7e-12,
tPulseFWHM = 9.9e-12,
NBIN = 101 , INPUTMOUNITS=EV;
REAL MINSTEPFORREBIN = 1000;
Fs1:FIELDSOLVER, FSTYPE=FFT, MX=16, MY=16, MT=32,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=INTEGRATED;
REAL qb=0.2e-9;
REAL bfreq=2998.0e6;
REAL bcurrent=qb*bfreq;
REAL Edes=0.63;
REAL gamma=(Edes+EMASS)/EMASS;
beam1: BEAM, PARTICLE=ELECTRON, GAMMA=gamma, pc=P0, NSLICE=101, BFREQ=bfreq * 1e-6, BCURRENT=bcurrent, CHARGE=-1;
Select, Line = l1;
// Simulation of the gun with step size 0.1 ps
track, line=l1, beam=beam1, MAXSTEPS=100000, DT=1.0e-13, ZSTOP=0.5;
run, method = "PARALLEL-SLICE", beam = beam1, fieldsolver = Fs1, distribution = Dist1;
endtrack;
Quit;
\ No newline at end of file
#!/bin/bash
mpirun -np 1 "$OPAL_EXE_PATH/opal" "$@" Envelope-Tracker-Phase1.in --info 2 --warn 0
"Envelope-Tracker Phase1 regression test with space charge (contains solenoid and SW)"
stat "rms_x" last 1E-6 #this is a comment
stat "rms_y" last 1E-6 #this is a comment
stat "rms_s" last 1E-6 #this is a comment
stat "energy" last 1E-6 #this is a comment
This diff is collapsed.
1DDynamic 20
0 17.493 1000
2998.
0.0 1.0 100
0.838962699
0.838962699
0.839033677
0.83923537
0.839527028
0.839906902
0.840381073
0.840948078
0.841606383
0.842354409
0.843186109
0.844096938
0.845090173
0.846163014
0.847305329
0.848513626
0.849787452
0.851124694
0.852522349
0.853976363
0.85547948
0.857023871
0.858608189
0.860230727
0.861885852
0.863569164
0.865276982
0.867001664
0.868736181
0.870478597
0.872228458
0.873985003
0.875738695
0.877478727
0.879203805
0.880913358
0.88260504
0.884274921
0.885918076
0.887529256
0.88910463
0.890642938
0.89214109
0.893594058
0.894995438
0.896341661
0.897636512
0.898875777
0.900047769
0.901155766
0.902204922
0.903184313
0.904088048
0.904920355
0.9056776
0.906352835
0.906946812
0.907460582
0.907892059
0.908235713
0.908485542
0.908646375
0.908720348
0.908695638
0.908569639
0.908349303
0.908030039
0.907604965
0.907076404
0.906446127
0.905712636
0.904870569
0.903915051
0.902851533
0.901681167
0.900394356
0.89899033
0.897473879
0.895840119
0.894085458
0.892215804
0.890231032
0.888124167
0.885889469
0.883526166
0.881045397
0.87844735
0.875717262
0.872852688
0.869857862
0.866733778
0.863483396
0.860113008
0.856614024
0.852970672
0.849186626
0.84526995
0.841224538
0.837047798
0.832732227
0.828274829
0.823674827
0.818932302
0.814053798
0.809051078
0.803914231
0.79862583
0.793184586
0.787599639
0.78188845
0.77604175
0.770036847
0.763879412
0.757582874
0.751157676
0.74459529
0.737874343
0.730999324
0.723980838
0.716817652
0.709513461
0.702077823
0.69450187
0.686770206
0.67887916
0.670841554
0.662687578
0.654405642
0.645963114
0.637367874
0.628632594
0.619752579
0.61072819
0.601567144
0.592270642
0.582836827
0.573266334
0.563559152
0.553713263
0.543732256
0.533623459
0.523383693
0.513008781
0.502505914
0.491879109
0.481124843
0.470246677
0.459251945
0.44813728
0.436898993
0.425542231
0.414073612
0.402499062
0.390815961
0.379019444
0.367117619
0.355118422
0.343022023
0.330830293
0.318547064
0.306170326
0.293698865
0.281144752
0.268516179
0.255810032
0.243025742
0.230166207
0.217237407
0.20424652
0.191200588
0.178099621
0.164935428
0.151716951
0.138461121
0.125164111
0.111821574
0.098443375
0.085036295
0.071601737
0.058144505
0.044669292
0.031172084
0.01766301
0.004180543
-0.009285743
-0.022785888
-0.036304989
-0.049808082
-0.063294863
-0.076767644
-0.090221448
-0.103650159
-0.117048072
-0.130414285
-0.143748013
-0.157044042
-0.170297273
-0.183503693
-0.196659401
-0.209760196
-0.222800352
-0.235776367
-0.248690359
-0.261540994
-0.274322593
-0.287030009
-0.299659203
-0.312208874
-0.324676706
-0.337057533
-0.349347289
-0.361543749
-0.373649052
-0.385663468
-0.397576262
-0.409383438
-0.421092782
-0.432700406
-0.444195506
-0.45557841
-0.466851248
-0.478011215
-0.489055112
-0.499980421
-0.510787342
-0.521476692
-0.532045215
-0.542490814
-0.55281565
-0.563017455
-0.573089771
-0.583030828
-0.59284203
-0.602527674
-0.612088114
-0.621516564
-0.630809802
-0.639968666
-0.648998257
-0.657897313
-0.666643276
-0.675242528
-0.683739035
-0.692115212
-0.700330431
-0.708413775
-0.716380631
-0.724196022
-0.731865463
-0.739420147
-0.746851855
-0.754142272
-0.761279436
-0.768277005
-0.775161644
-0.78190771
-0.788495069
-0.794962367
-0.801313115
-0.807512096
-0.813573077
-0.819517661
-0.825324629
-0.830988659
-0.836530546
-0.841945949
-0.847222307
-0.852368804
-0.857392319
-0.862289205
-0.867053232
-0.871680698
-0.876183065
-0.880564434
-0.884810623
-0.888925677
-0.892924323
-0.896798254
-0.900541054
-0.904164707
-0.907665923
-0.911030374
-0.914273584
-0.917408289
-0.920412281
-0.923284845
-0.926049943
-0.928702158
-0.931226294
-0.933620848
-0.93589271
-0.938054351
-0.940101859
-0.942026107
-0.943832474
-0.945522965
-0.947090811
-0.948542535
-0.949888445
-0.951115243
-0.952215821
-0.953204731
-0.954085147
-0.954850565
-0.95549978
-0.956033724
-0.956453941
-0.956761667
-0.956957153
-0.957036621
-0.956998304
-0.956849401
-0.956593877
-0.9562302
-0.955753202
-0.955159073
-0.954452973
-0.953637909
-0.952712002
-0.951674548
-0.95052591
-0.949267207
-0.947898349
-0.946417345
-0.944824811
-0.943123084
-0.941313734
-0.939395162
-0.937361178
-0.935216982
-0.932972829
-0.930614643
-0.92813469
-0.925555962
-0.922877536
-0.920076551
-0.917160372
-0.914141303
-0.911011359
-0.907769314
-0.904423535
-0.90096832
-0.89739478
-0.893706761
-0.889912708
-0.886021813
-0.882023197
-0.877902263
-0.873674818
-0.869346032
-0.864895277
-0.860331053
-0.855674593
-0.850904916
-0.846011261
-0.841022924
-0.835932483
-0.830708864
-0.825378737
-0.819963518
-0.814427953
-0.80876331
-0.802992652
-0.797126726
-0.7911619
-0.785072651
-0.778863345
-0.77257036
-0.76617413
-0.759645276
-0.753016458
-0.746297273
-0.739453208
-0.732496521
-0.725454998
-0.718299056
-0.71101778
-0.703650242
-0.696190258
-0.688604133
-0.680897397
-0.67309005
-0.665204616
-0.657226627
-0.649120874
-0.640913979
-0.632628267
-0.624226117
-0.61571014
-0.607123099
-0.598446573
-0.589650604
-0.580751997
-0.571762457
-0.562675004
-0.553492894
-0.544224721
-0.534864076
-0.525404863
-0.515853738
-0.506216548
-0.496495495
-0.486687569
-0.476789118
-0.46680592
-0.456743114
-0.446599699
-0.436374092
-0.426065556
-0.415678999
-0.405219873
-0.394686636
-0.384079108
-0.373401379
-0.362653704
-0.351834187
-0.340948
-0.330000477
-0.318990117
-0.307916635
-0.296782863
-0.285592103
-0.274346791
-0.263044382
-0.251685662
-0.24028169
-0.228834857
-0.217338059
-0.205795234
-0.194213674
-0.182590245
-0.170925526
-0.159230731
-0.147507802
-0.13575059
-0.123960273
-0.11214144
-0.100299129
-0.088436683
-0.076554881
-0.064654953
-0.052739046
-0.040811737
-0.028874966
-0.016922652
-0.004967814
0.006957342
0.018874411
0.030823874
0.042784739
0.054732373
0.066670066
0.078599574
0.090517473
0.102418564
0.114299259
0.126164364
0.138012959
0.149832142
0.161620343
0.17338456
0.185120737
0.196822175
0.208487514
0.220115419
0.231703326
0.243249182
0.254751093
0.266205934
0.277611954
0.288971324
0.300281796
0.311536286
0.322734762
0.333879258
0.344963747
0.355983671
0.366940992
0.377835368
0.3886637
0.399423165
0.410111862
0.420730325
0.431278609
0.44175505
0.452154614
0.462471337
0.472708089
0.482868459
0.492949451
0.502947628
0.512860566
0.522688353
0.532431808
0.542088055
0.55165472
0.561132744
0.570521991
0.579820374
0.589022424
0.598125428
0.607142923
0.616073312
0.624884799
0.633587449
0.642205096
0.650735437
0.659155686
0.667488055
0.675761178
0.683887528
0.691913644
0.699834479
0.707654158
0.715425055
0.723047716
0.730564525
0.73797562
0.745284663
0.752482464
0.759622214
0.766620241
0.773522301
0.780307277
0.786984647
0.793591512
0.800076451
0.806443265
0.812707719
0.818861113
0.824926919
0.830891134
0.836731144
0.842462187
0.848098453
0.853626208
0.859069609
0.864377076
0.869584995
0.874688561
0.879688611
0.884609708
0.889386023
0.894073386
0.898656414
0.903120079
0.907518709