Commit dfbcbfe2 authored by kraus's avatar kraus
Browse files

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
SDDS1
&description
text="Processor statistics 'Mask-1.in' 21/09/201821:25:28",
contents="stat parameters"
&end
&parameter
name=processors,
type=long,
description="Number of Cores used"
&end
&parameter
name=revision,
type=string,
description="git revision of opal"
&end
&parameter
name=flavor,
type=string,
description="OPAL flavor that wrote file"
&end
&column
name=t,
type=double,
units=ns,
description="1 Time"
&end
&column
name=processor-0,
type=long,
units=1,
description="2 Number of particles of processor 0"
&end
&column
name=processor-1,
type=long,
units=1,
description="3 Number of particles of processor 1"
&end
&data
mode=ascii,
no_row_counts=1
&end
2
OPAL 2.0.0 git rev. #8f9323eaef572c7086959b4c3b501282f001ad1c
opal-t
2.847516841804781e+02 50000 50000
2.847716841804781e+02 50000 50000
2.847916841804781e+02 50000 50000
2.848116841804782e+02 50000 50000
2.848316841804782e+02 50000 50000
2.848516841804782e+02 50000 50000
2.848716841804782e+02 50000 50000
2.848916841804783e+02 50000 50000
2.849116841804782e+02 50000 50000
2.849316841804783e+02 50000 50000
2.849516841804783e+02 50000 50000
2.849716841804783e+02 50000 50000
2.849916841804783e+02 50000 50000
2.850116841804784e+02 50000 50000
2.850316841804784e+02 50000 50000
2.850516841804784e+02 50000 50000
2.850716841804784e+02 50000 50000
2.850916841804785e+02 50000 50000
2.851116841804785e+02 50000 50000
2.851316841804785e+02 50000 50000
2.851516841804785e+02 50000 50000
2.851716841804786e+02 50000 50000
2.851916841804786e+02 50000 50000
2.852116841804786e+02 50000 50000
2.852316841804786e+02 50000 50000
2.852516841804787e+02 50000 50000
2.852716841804786e+02 50000 50000
2.852916841804787e+02 50000 50000
2.853116841804787e+02 50000 50000
2.853316841804788e+02 50000 50000
2.853516841804787e+02 50000 50000
2.853716841804788e+02 50000 50000
2.853916841804788e+02 50000 50000
2.854116841804788e+02 50000 50000
2.854316841804788e+02 50000 50000
2.854516841804789e+02 50000 50000
2.854716841804789e+02 50000 50000
2.854916841804789e+02 50000 50000
2.855116841804789e+02 50000 50000
2.855316841804790e+02 50000 50000
2.855516841804790e+02 50000 50000
2.855716841804790e+02 50000 50000
2.855916841804790e+02 50000 50000
2.856116841804791e+02 50000 50000
2.856316841804791e+02 50000 50000
2.856516841804791e+02 50000 50000
2.856716841804791e+02 50000 50000
2.856916841804791e+02 50000 50000
2.857116841804792e+02 50000 50000
2.857316841804792e+02 50000 50000
2.857516841804792e+02 50000 50000
2.857716841804792e+02 50000 50000
2.857916841804793e+02 50000 50000
2.858116841804793e+02 50000 50000
2.858316841804793e+02 50000 50000
2.858516841804793e+02 50000 50000
2.858716841804793e+02 50000 50000
2.858916841804794e+02 50000 50000
2.859116841804794e+02 50000 50000
2.859316841804794e+02 50000 50000
2.859516841804794e+02 50000 50000
2.859716841804795e+02 50000 50000
2.859916841804795e+02 50000 50000
2.860116841804795e+02 50000 50000
2.860316841804795e+02 50000 50000
2.860516841804795e+02 50000 50000
2.860716841804796e+02 50000 50000
2.860916841804796e+02 50000 50000
2.861116841804796e+02 50000 50000
2.861316841804796e+02 50000 50000
2.861516841804797e+02 50000 50000
2.861716841804797e+02 50000 50000
2.861916841804797e+02 50000 50000
2.862116841804797e+02 50000 50000
2.862316841804798e+02 50000 50000
2.862516841804798e+02 50000 50000
2.862716841804798e+02 50000 50000
2.862916841804798e+02 50000 50000
2.863116841804799e+02 50000 50000
2.863316841804799e+02 50000 50000
2.863516841804799e+02 50000 50000
2.863716841804799e+02 50000 50000
2.863916841804800e+02 50000 50000
2.864116841804799e+02 50000 50000
2.864316841804800e+02 50000 50000
2.864516841804800e+02 50000 50000
2.864716841804801e+02 50000 50000
2.864916841804800e+02 50000 50000
2.865116841804801e+02 50000 50000
2.865316841804801e+02 50000 50000
2.865516841804801e+02 50000 50000
2.865716841804801e+02 50000 50000
2.865916841804802e+02 50000 50000
2.866116841804802e+02 50000 50000
2.866316841804802e+02 50000 50000
2.866516841804802e+02 50000 50000
2.866716841804803e+02 50000 50000
2.866916841804803e+02 50000 50000
2.867116841804803e+02 50000 50000
2.867316841804803e+02 50000 50000
2.867516841804804e+02 50000 50000
2.867716841804803e+02 50000 50000
2.867916841804804e+02 50000 50000
2.868116841804804e+02 50000 50000
2.868316841804804e+02 50000 50000
2.868516841804804e+02 50000 50000
2.868716841804805e+02 50000 50000
2.868916841804805e+02 50000 50000
2.869116841804805e+02 50000 50000
2.869316841804805e+02 50000 50000
2.869516841804806e+02 50000 50000
2.869716841804806e+02 50000 50000
2.869916841804806e+02 50000 50000
2.870116841804806e+02 50000 50000
2.870316841804807e+02 50000 50000
2.870516841804807e+02 50000 50000
2.870716841804807e+02 50000 50000
2.870916841804807e+02 50000 50000
2.871116841804808e+02 50000 50000
2.871316841804808e+02 50000 50000
2.871516841804808e+02 50000 50000
2.871716841804808e+02 50000 50000
2.871916841804808e+02 50000 50000
2.872116841804809e+02 50000 50000
2.872316841804809e+02 50000 50000
2.872516841804809e+02 50000 50000
2.872716841804809e+02 50000 50000
2.872916841804810e+02 50000 50000
2.873116841804810e+02 50000 50000
2.873316841804810e+02 50000 50000
2.873516841804810e+02 50000 50000
2.873716841804811e+02 50000 50000
2.873916841804811e+02 50000 50000
2.874116841804811e+02 50000 50000
2.874316841804811e+02 50000 50000
2.874516841804812e+02 50000 50000
2.874716841804811e+02 50000 50000
2.874916841804812e+02 50000 50000
2.875116841804812e+02 50000 50000
2.875316841804812e+02 50000 50000
2.875516841804812e+02 50000 50000
2.875716841804813e+02 50000 50000
2.875916841804813e+02 50000 50000
2.876116841804813e+02 50000 50000
2.876316841804813e+02 50000 50000
2.876516841804814e+02 50000 50000
2.876716841804814e+02 50000 50000
2.876916841804814e+02 50000 50000
2.877116841804814e+02 50000 50000
2.877316841804815e+02 50000 50000
2.877516841804815e+02 50000 50000
2.877716841804815e+02 50000 50000
2.877916841804815e+02 50000 50000
2.878116841804816e+02 50000 50000
2.878316841804815e+02 50000 50000
2.878516841804816e+02 50000 50000
2.878716841804816e+02 50000 50000
2.878916841804817e+02 50000 50000
2.879116841804816e+02 50000 50000
2.879316841804817e+02 50000 50000
2.879516841804817e+02 50000 50000
2.879716841804817e+02 50000 50000
2.879916841804817e+02 50000 50000
2.880116841804818e+02 50000 50000
2.880316841804818e+02 50000 50000
2.880516841804818e+02 50000 50000
2.880716841804818e+02 50000 50000
2.880916841804819e+02 50000 50000
2.881116841804819e+02 50000 50000
2.881316841804819e+02 50000 50000
2.881516841804819e+02 50000 50000
2.881716841804820e+02 50000 50000
2.881916841804820e+02 50000 50000
2.882116841804820e+02 50000 50000
2.882316841804820e+02 50000 50000
2.882516841804821e+02 50000 50000
2.882716841804821e+02 50000 50000
2.882916841804821e+02 50000 50000
2.883116841804821e+02 50000 50000
2.883316841804821e+02 50000 50000
2.883516841804822e+02 50000 50000
2.883716841804822e+02 50000 50000
2.883916841804822e+02 50000 50000
2.884116841804822e+02 50000 50000
2.884316841804823e+02 50000 50000
2.884516841804823e+02 50000 50000
2.884716841804823e+02 50000 50000
2.884916841804823e+02 50000 50000
2.885116841804823e+02 50000 50000
2.885316841804824e+02 49994 49994
2.885516841804824e+02 48978 48978
2.885716841804824e+02 34872 34872
2.885916841804824e+02 8910 8910
2.886116841804824e+02 1999 1998
2.886316841804825e+02 1773 1773
2.886516841804825e+02 1772 1771
2.886716841804825e+02 1772 1771
2.886916841804825e+02 1772 1771
2.887116841804826e+02 1772 1771
2.887316841804826e+02 1772 1771
2.887516841804826e+02 1772 1771
2.887716841804826e+02 1772 1771
2.887916841804827e+02 1772 1771
2.888116841804827e+02 1772 1771
2.888316841804827e+02 1772 1771
2.888516841804827e+02 1772 1771
2.888716841804828e+02 1772 1771
2.888916841804828e+02 1772 1771
2.889116841804828e+02 1772 1771
2.889316841804828e+02 1772 1771
2.889516841804829e+02 1772 1771
2.889716841804828e+02 1772 1771
2.889916841804829e+02 1772 1771
2.890116841804829e+02 1772 1771
2.890316841804830e+02 1772 1771
2.890516841804829e+02 1772 1771
2.890716841804830e+02 1772 1771
2.890916841804830e+02 1772 1771
2.891116841804830e+02 1772 1771
2.891316841804830e+02 1772 1771
2.891516841804831e+02 1772 1771
2.891716841804831e+02 1772 1771
2.891916841804831e+02 1772 1771
2.892116841804831e+02 1772 1771
2.892316841804832e+02 1772 1771
2.892516841804832e+02 1772 1771
2.892716841804832e+02 1772 1771
2.892916841804832e+02 1772 1771
2.893116841804833e+02 1772 1771
2.893316841804833e+02 1772 1771
2.893516841804833e+02 1772 1771
2.893716841804833e+02 1772 1771
2.893916841804834e+02 1772 1771
2.894116841804833e+02 1772 1771
2.894316841804834e+02 1772 1771
2.894516841804834e+02 1772 1771
2.894716841804834e+02 1772 1771
2.894916841804834e+02 1772 1771
2.895116841804835e+02 1772 1771
2.895316841804835e+02 1772 1771
2.895516841804835e+02 1772 1771
2.895716841804835e+02 1772 1771
2.895916841804836e+02 1772 1771
2.896116841804836e+02 1772 1771
2.896316841804836e+02 1772 1771
2.896516841804836e+02 1772 1771
2.896716841804837e+02 1772 1771
2.896916841804837e+02 1772 1771
2.897116841804837e+02 1772 1771
2.897316841804837e+02 1772 1771
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