Commit dfbcbfe2 authored by kraus's avatar kraus

adding test for bitmap mask

parent e997049e
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
OPTION, VERSION=10900;
OPTION, STATDUMPFREQ=2;
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.253256*fact_x, SIGMAPX = 0.00,
SIGMAY = 0.253256*fact_x, SIGMAPY = 0.00,
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 = 0.1, CUTOFFPX = 5,
CUTOFFY = 0.1, CUTOFFPY = 5,
CUTOFFLONG = 5, CUTOFFPZ = 5,
OFFSETX = 0, OFFSETY =0, OFFSETZ = 0,
INPUTMOUNITS = NONE;
//--------------------------------------------------------------------------------
// Beamline elements
//--------------------------------------------------------------------------------
MSLIT1: MONITOR, ELEMEDGE=32.422;
MASK1: FLEXIBLECOLLIMATOR, DESCRIPTION="mask('test_mask.pbm', 0.03, 0.03)", L=0.01, ELEMEDGE=32.432;
MSLIT2: MONITOR, ELEMEDGE=32.472;
//--------------------------------------------------------------------------------
// Define Beamline
//--------------------------------------------------------------------------------
BEAMLINE_: LINE=(
MASK1,
MSLIT1,
MSLIT2
);
//--------------------------------------------------------------------------------
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" "$@" Mask-1.in --info 3 --warn 0 2>&1
\ No newline at end of file
"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
This diff is collapsed.
8ce5925b9b924a3fc0fd5291079b3cde Mask-1.lbal
This diff is collapsed.
6e632d8df8ef2b7ca14be2b1f5b0541b Mask-1.out
This source diff could not be displayed because it is too large. You can view the blob instead.
99077ef3c82c5661c8f3c6deb07c8be8 Mask-1.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