Commit abfaa091 authored by kraus's avatar kraus

moved Elliptic and Slit tests to master where they belong

parent 80a2662d
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
OPTION, VERSION=10900;
OPTION, STATDUMPFREQ=100;
OPTION, PSDUMPFREQ=1000000;
REAL NProt = 100000;
REAL DT_ = 1e-12;
REAL Edes = 0.07381;
REAL gamma = (Edes+PMASS)/PMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL gambet = gamma*beta;
REAL P0 = gamma*beta*PMASS;
VALUE,{gamma,Edes,beta,gambet};
REAL rf = 50.6328e6;
REAL fact_x =1.400;
REAL fact_xd =1.40;
REAL fact_y =1.400;
REAL fact_yd =1.40;
REAL fact_delp=2.30;
//--------------------------------------------------------------------------------
//Input beam parameters AT STEP 474, SPOS 31.5926
//--------------------------------------------------------------------------------
DISTRIB1: DISTRIBUTION,
TYPE=GAUSS,
SIGMAX = 0.00253256*fact_x, SIGMAPX = 0.00231138*gambet*fact_xd ,
SIGMAY = 0.00938593*fact_y, SIGMAPY = 0.00161825*gambet*fact_yd ,
SIGMAZ = 0.00970918*0.000001, SIGMAPZ = 0.00171298*gambet*fact_delp ,
CORRX = 0.858145, CORRY = 0.967638, CORRZ = 0.999981,
R51 = -0.00957565, R52 = 0.103166, R61 = -0.0074746, R62 = 0.105198,
CUTOFFX = 5, CUTOFFPX = 5, CUTOFFY = 5,
CUTOFFPY = 5, CUTOFFLONG = 5, CUTOFFPZ = 5,
OFFSETX = 0, OFFSETY =0, OFFSETZ = 0,
INPUTMOUNITS = NONE;
//--------------------------------------------------------------------------------
// Beamline elements
//--------------------------------------------------------------------------------
elco: FLEXIBLECOLLIMATOR, FNAME="elliptic.txt", L=0.04, ELEMEDGE=32.432;
melco: MONITOR, ELEMEDGE=32.472;
//--------------------------------------------------------------------------------
// Define Beamline
//--------------------------------------------------------------------------------
BEAMLINE_: LINE=(
elco,
melco
);
//--------------------------------------------------------------------------------
FS1:FIELDSOLVER, FSTYPE=NONE,
MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=false, PARFFTT=false,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM_: BEAM, PARTICLE=PROTON, PC=P0, NPART=NProt, BCURRENT=NProt*1.6e-19*rf, BFREQ=rf, CHARGE=1;
REAL STEP02= 100./(beta*CLIGHT*DT_);
SELECT, LINE=BEAMLINE_;
TRACK, LINE=BEAMLINE_, BEAM=BEAM_, MAXSTEPS= STEP02, DT=DT_, ZSTART=32.0, ZSTOP=33.20;
RUN, METHOD = "Parallel-T", BEAM=BEAM_, FIELDSOLVER=FS1, DISTRIBUTION=DISTRIB1;
ENDTRACK;
STOP;
\ No newline at end of file
#!/bin/bash
timeout 300 mpirun -np 2 "$OPAL_EXE_PATH/opal" "$@" elliptic-1.in --info 3 --warn 0 2>&1
"Elliptic pepper pot"
stat "rms_x" last 2E-8
stat "rms_y" last 2E-8
stat "rms_s" last 2E-8
stat "emit_x" last 2E-8
stat "emit_y" last 2E-8
stat "emit_s" last 2E-8
stat "energy" last 2E-8
stat "numParticles" last 2E-8
repeat( // duplicate row of ellipses 100 times and
// distribute copies evenly in y-direction with distance = 0.2 mm
repeat( // duplicate ellipse 100 times and
// distribute copies evenly in x-direction with distance = 0.2 mm
translate( // shift ellipse to lower left corner
ellipse( // define ellipse with major = minor = 0.1 mm, center = (0, 0)
0.0012,
0.0012
),
-0.04,
-0.04
),
50,
0.0016,
0.0
),
50,
0.0,
0.0016
)
\ No newline at end of file
99d7cacf5f49880ce868fc00bf6ea9af Elliptic-1.lbal
2d7655b8b7465fa2e53fa5a10b032232 Elliptic-1.out
0824407d9437f1f98f99e6dc69b4e22d Elliptic-1.stat
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
OPTION, VERSION=10900;
OPTION, STATDUMPFREQ=100;
OPTION, PSDUMPFREQ=1000000;
REAL NProt = 100000;
REAL DT_ = 1e-11;
REAL Edes = 0.07381;
REAL gamma = (Edes+PMASS)/PMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL gambet = gamma*beta;
REAL P0 = gamma*beta*PMASS;
VALUE,{gamma,Edes,beta,gambet};
REAL rf = 50.6328e6;
REAL fact_x =1.400;
REAL fact_xd =1.40;
REAL fact_y =1.400;
REAL fact_yd =1.40;
REAL fact_delp=2.30;
//--------------------------------------------------------------------------------
//Input beam parameters AT STEP 474, SPOS 31.5926
//--------------------------------------------------------------------------------
DISTRIB1: DISTRIBUTION,
TYPE=GAUSS,
SIGMAX = 0.00253256*fact_x, SIGMAPX = 0.00231138*gambet*fact_xd ,
SIGMAY = 0.00938593*fact_y, SIGMAPY = 0.00161825*gambet*fact_yd ,
SIGMAZ = 0.00970918*0.000001, SIGMAPZ = 0.00171298*gambet*fact_delp ,
CORRX = 0.858145, CORRY = 0.967638, CORRZ = 0.999981,
R51 = -0.00957565, R52 = 0.103166, R61 = -0.0074746, R62 = 0.105198,
CUTOFFX = 5, CUTOFFPX = 5, CUTOFFY = 5,
CUTOFFPY = 5, CUTOFFLONG = 5, CUTOFFPZ = 5,
OFFSETX = 0, OFFSETY =0, OFFSETZ = 0,
INPUTMOUNITS = NONE;
//--------------------------------------------------------------------------------
// Beamline elements
//--------------------------------------------------------------------------------
SLIT1: FLEXIBLECOLLIMATOR, DESCRIPTION="repeat(translate(rectangle(0.04,0.002),-0.02,-0.02),20,0,0.004)", L=0.04, ELEMEDGE=32.432;
MSLIT1: MONITOR, ELEMEDGE=32.472;
//--------------------------------------------------------------------------------
// Define Beamline
//--------------------------------------------------------------------------------
BEAMLINE_: LINE=(
SLIT1,
MSLIT1
);
//--------------------------------------------------------------------------------
FS1:FIELDSOLVER, FSTYPE=NONE,
MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=false, PARFFTT=false,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM_: BEAM, PARTICLE=PROTON, PC=P0, NPART=NProt, BCURRENT=NProt*1.6e-19*rf, BFREQ=rf, CHARGE=1;
REAL STEP02= 100./(beta*CLIGHT*DT_);
SELECT, LINE=BEAMLINE_;
TRACK, LINE=BEAMLINE_, BEAM=BEAM_, MAXSTEPS= STEP02, DT=DT_, ZSTART=32.0, ZSTOP=32.562;
RUN, METHOD = "Parallel-T", BEAM=BEAM_, FIELDSOLVER=FS1, DISTRIBUTION=DISTRIB1;
ENDTRACK;
STOP;
\ No newline at end of file
#!/bin/bash
timeout 300 mpirun -np 2 "$OPAL_EXE_PATH/opal" "$@" slit-1.in --info 3 --warn 0 2>&1
"Multislit defined in the inputfile"
stat "rms_x" last 2E-8
stat "rms_y" last 2E-8
stat "rms_s" last 2E-8
stat "emit_x" last 2E-8
stat "emit_y" last 2E-8
stat "emit_s" last 2E-8
stat "energy" last 2E-8
stat "numParticles" last 2E-8
2fff399bd107d5c545d8499a1963b851 Slit-1.lbal
28388f592bbbc4aededcf4a1bb457829 Slit-1.out
ec3259cad6fd47a7adcacfb4cae65225 Slit-1.stat
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
OPTION, VERSION=10900;
OPTION, STATDUMPFREQ=100;
OPTION, PSDUMPFREQ=1000000;
REAL NProt = 100000;
REAL DT_ = 1e-11;
REAL Edes = 0.07381;
REAL gamma = (Edes+PMASS)/PMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL gambet = gamma*beta;
REAL P0 = gamma*beta*PMASS;
VALUE,{gamma,Edes,beta,gambet};
REAL rf = 50.6328e6;
REAL fact_x =1.400;
REAL fact_xd =1.40;
REAL fact_y =1.400;
REAL fact_yd =1.40;
REAL fact_delp=2.30;
//--------------------------------------------------------------------------------
//Input beam parameters AT STEP 474, SPOS 31.5926
//--------------------------------------------------------------------------------
DISTRIB1: DISTRIBUTION,
TYPE=GAUSS,
SIGMAX = 0.00253256*fact_x, SIGMAPX = 0.00231138*gambet*fact_xd ,
SIGMAY = 0.00938593*fact_y, SIGMAPY = 0.00161825*gambet*fact_yd ,
SIGMAZ = 0.00970918*0.000001, SIGMAPZ = 0.00171298*gambet*fact_delp ,
CORRX = 0.858145, CORRY = 0.967638, CORRZ = 0.999981,
R51 = -0.00957565, R52 = 0.103166, R61 = -0.0074746, R62 = 0.105198,
CUTOFFX = 5, CUTOFFPX = 5, CUTOFFY = 5,
CUTOFFPY = 5, CUTOFFLONG = 5, CUTOFFPZ = 5,
OFFSETX = 0, OFFSETY =0, OFFSETZ = 0,
INPUTMOUNITS = NONE;
//--------------------------------------------------------------------------------
// Beamline elements
//--------------------------------------------------------------------------------
SLIT1: FLEXIBLECOLLIMATOR, FNAME="slit.txt", L=0.04, ELEMEDGE=32.432;
MSLIT1: MONITOR, ELEMEDGE=32.472;
//--------------------------------------------------------------------------------
// Define Beamline
//--------------------------------------------------------------------------------
BEAMLINE_: LINE=(
SLIT1,
MSLIT1
);
//--------------------------------------------------------------------------------
FS1:FIELDSOLVER, FSTYPE=NONE,
MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=false, PARFFTT=false,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM_: BEAM, PARTICLE=PROTON, PC=P0, NPART=NProt, BCURRENT=NProt*1.6e-19*rf, BFREQ=rf, CHARGE=1;
REAL STEP02= 100./(beta*CLIGHT*DT_);
SELECT, LINE=BEAMLINE_;
TRACK, LINE=BEAMLINE_, BEAM=BEAM_, MAXSTEPS= STEP02, DT=DT_, ZSTART=32.0, ZSTOP=32.562;
RUN, METHOD = "Parallel-T", BEAM=BEAM_, FIELDSOLVER=FS1, DISTRIBUTION=DISTRIB1;
ENDTRACK;
STOP;
\ No newline at end of file
#!/bin/bash
timeout 300 mpirun -np 2 "$OPAL_EXE_PATH/opal" "$@" slit-2.in --info 3 --warn 0 2>&1
"Multislit defined in an external file"
stat "rms_x" last 2E-8
stat "rms_y" last 2E-8
stat "rms_s" last 2E-8
stat "emit_x" last 2E-8
stat "emit_y" last 2E-8
stat "emit_s" last 2E-8
stat "energy" last 2E-8
stat "numParticles" last 2E-8
0e199c053a16d4cd4fdf48929d50cdbf Slit-2.lbal
d863db1e35a3f46ef1dee5a5ab0cd545 Slit-2.out
e920ed6872ca418831345f40ff9428da Slit-2.stat
......@@ -15,6 +15,7 @@ tests+=('Distribution-Gauss-1')
tests+=('Distribution-Gauss-2')
tests+=('EGunCTF3-1')
tests+=('EGunCTF3-2')
tests+=('Elliptic-1')
tests+=('ExternalFieldTest')
tests+=('HKick-Test-1')
tests+=('Kick-Test-1')
......@@ -42,6 +43,8 @@ tests+=('SBend-Simple-Test-1')
tests+=('SBend-Simple-Test-2')
tests+=('SBend-Simple-Test-3')
tests+=('SBend-Simple-Test-4')
tests+=('Slit-1')
tests+=('Slit-2')
tests+=('VKick-Test-1')
tests+=('opalimpact-1')
tests+=('AWAGun-1')
......
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