Commit 74a0c4a6 authored by kraus's avatar kraus

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.
This diff is collapsed.
REAL FINSS_RGUN_phi= 2.22368; // E= 6.63134 (MeV)
REAL FINSB01_RACC_phi= -0.313154; // E= 36.1093 (MeV)
REAL FINSB02_RACC_phi= 5.835; // E= 67.2898 (MeV)
deec55115d16bff7d6377ff355519e90 Envelope-Tracker-Phase1.lbal
c2f0041bdc6688a8549e0e17a9c7a729 Envelope-Tracker-Phase1.out
a783f26a0621ed9694edf678937d5502 Envelope-Tracker-Phase1.stat
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment