Commit 88e9e626 authored by snuverink_j's avatar snuverink_j
Browse files

Merge branch '290-cleanup-tests-directory-from-non-unit-tests' into 'master'

Resolve "Cleanup tests directory from non-unit tests"

Closes #290

See merge request OPAL/src!62
parents f789e041 c745d179
This diff is collapsed.
OPTION, ECHO=FALSE;
OPTION, PSDUMPFREQ=10;
MINBINEMITTED = 1;
TITLE,STRING="degrader-1";
Edes = 0.072;
gamma = (Edes+PMASS)/PMASS;
beta = sqrt(1-(1/gamma^2));
gambet = gamma*beta;
P0 = gamma*beta*PMASS;
brho = (PMASS*1.0e9*gambet) / CLIGHT;
rf = 50.6328; //need to be confirmed
VALUE,{gamma,brho,Edes,beta,gambet};
DEGPHYS: PARTICLEMATTERINTERACTION, TYPE="DEGRADER", MATERIAL="Graphite";
DEG1: DEGRADER, L=0.01, ELEMEDGE=0.02, OUTFN="DEG1.h5", PARTICLEMATTERINTERACTION=DEGPHYS;
M0: Monitor, L=0.001, ELEMEDGE=0.010, OUTFN="M0.h5";
M1: Monitor, L=0.001, ELEMEDGE=0.035, OUTFN="M1.h5";
DEGTEST: LINE=(M0,DEG1,M1);
D1: DISTRIBUTION, DISTRIBUTION=GAUSS,
SIGMAX= 5.0e-03, SIGMAPX=0.0, CORRX=0.0,
SIGMAY= 5.0e-03, SIGMAPY=0.0, CORRY=0.0,
T = 0.005, SIGMAT= 0.0005,
SIGMAPT=0.0, CORRT=0.0, R61=0.0, INPUTMOUNITS=EV;
FS1:FIELDSOLVER, FSTYPE=NONE, MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM1: BEAM, PARTICLE=PROTON, PC=P0, NPART=1E6, BCURRENT=2.0e-03, BFREQ=rf, CHARGE=1;
SELECT, LINE=DEGTEST;
TRACK, LINE=DEGTEST, BEAM=BEAM1, MAXSTEPS=230, DT=1.0e-12;
RUN, METHOD = "PARALLEL-T", BEAM=BEAM1, FIELDSOLVER=FS1, DISTRIBUTION=D1;
ENDTRACK;
STOP;
#!/bin/bash
mpirun -np 4 $OPAL_EXE_PATH/opal Degrader-1.in --info 3 --warn 0 2>&1
"Simple slab of carbon as degrader of a 72 MeV proton beam"
out "Ekin" last 1E-03
out "rms beam size" last 1E-04
out "rms emittance" last 1E-04
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe orte 4
#$ -N Degrader-1-RT
#$ -v LD_LIBRARY_PATH,OPAL_EXE_PATH,OPENMPI,REG_TEST_DIR
MACHINE_FILE=$TMPDIR/machinefile
awk '/^merlin/ {print $1" slots="$2}' $PE_HOSTFILE > $MACHINE_FILE
cp $MACHINE_FILE machinefile.last
cd $REG_TEST_DIR
OPAL="$OPAL_EXE_PATH/opal Degrader-1.in --commlib mpi --info 3 --warn 0 2>&1"
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
# 4
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
251711 249251 249803 249235
211380 209328 209973 209210
26696 26630 26738 27042
558 619 607 670
81700 79779 82478 81679
251772 238260 242227 230729
300494 223378 272346 203712
270454 193007 312186 224302
272891 187145 319390 220531
275103 181469 326711 216684
293715 185933 317812 202512
298958 182042 321731 197243
ced37056158396d2b54ba6d38c77b175 Degrader-1.lbal
This diff is collapsed.
dac3e9ef7dd5b21a53358950f3958e16 Degrader-1.out
This diff is collapsed.
421a5d9002cf2097c65e6f4a9442dead Degrader-1.stat
collimator.in
\ No newline at end of file
collimator.in
\ No newline at end of file
collimator.in
\ No newline at end of file
collimator.in
\ No newline at end of file
collimator.in
\ No newline at end of file
#!/bin/bash
#
#
for NP in 1
do
mkdir -p ${NP}p
mpirun -np ${NP} $OPAL_EXE_PATH/opal collimator-${NP}p.in | tee collimator-${NP}p.out
mv *.h5 *.out *.stat *.lbal ${NP}p
done
\ No newline at end of file
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
Option, PSDUMPFREQ=1;
Option, SPTDUMPFREQ = 50;
Option, STATDUMPFREQ=1;
OPTION, VERSION=10900;
TITLE, STRING="MAP Test";
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;
REAL brho = (PMASS*1.0e9*gambet) / CLIGHT;
REAL rf = 50.6328e6; //need to be confirmed
VALUE,{gamma,brho,Edes,beta,gambet};
D1: DRIFT, L=1., ELEMEDGE=0.000, NSLICES=1 ;
QP1: QUADRUPOLE, L=0.3, K1= 8.64195, ELEMEDGE=1.000, NSLICES=15;
DG1: DRIFT, L=0.3, ELEMEDGE=1.300 , NSLICES=1;
QP2: QUADRUPOLE, L=0.3, K1=-11.57456, ELEMEDGE=1.600, NSLICES=15;
DG2: DRIFT, L=0.3, ELEMEDGE=1.900, NSLICES=1;
QP3: QUADRUPOLE, L=0.3, K1= 8.64195, ELEMEDGE=2.200, NSLICES=15;
D2: DRIFT, L=1., ELEMEDGE=2.500,NSLICES=1;
D3: DRIFT, L=1., ELEMEDGE=3.500,NSLICES=1;
AMF1: SBEND, K0=-0.804307, L=1.4929, ELEMEDGE=0.0,
//ANGLE=1.01229,
HAPERT=46.5*2/1000, K1=0,
E1=0.188146, E2=0.188146,
FMAPFN="1DPROFILE1-DEFAULT",
DESIGNENERGY=7.381e+01, GAP=30*2/1000, NSLICES=10;
AMF3: SBEND, K0=-0.811531, L=2.17747, ELEMEDGE=1.0,
//ANGLE=1.5708, HAPERT=75*2/1000, K1=0,
E1=0.207694, E2=0.401426,
FMAPFN="1DPROFILE1-DEFAULT",
DESIGNENERGY=7.381e+07, GAP=75*2/1000, NSLICES=30;
BENDS: SBend, ANGLE = 30.0*Pi / 180.0,
FMAPFN = "1DPROFILE1-DEFAULT", ELEMEDGE = 5.0,
DESIGNENERGY = Edes*1e3, L = 1.0, GAP = 0.02, NSLICES= 5;
BENDR: RBend, ANGLE = 30.0*Pi / 180.0, FMAPFN = "1DPROFILE1-DEFAULT", ELEMEDGE = 5.0, DESIGNENERGY = Edes*1e3, L = 1.0, GAP = 0.02, NSLICES= 5;
D3: DRIFT, L=1., ELEMEDGE=2.500;
//QUADTEST: LINE=(D1);
//QUADTEST: LINE=( D1, QP1 , DG1, QP2, DG2, QP3, D2);
//QUADTEST: LINE=( D1, QP1, DG1, QP2, DG2, QP3, D2, BENDS, BENDR, D3);
QUADTEST: LINE= (AMF1);
DIST: DISTRIBUTION, TYPE=GAUSS,
SIGMAX= 5*1.0e-03, SIGMAPX= 0.696*1.0e06, CORRX= 0.0,
SIGMAY= 5*1.0e-03, SIGMAPY= 0.310*1.0e06, CORRY= 0.0,
OFFSETZ = 0.000, SIGMAT= 0.0005,
SIGMAPT= 0.0, CORRT= 0.0, R61= 0.0, INPUTMOUNITS=EV;
DIST1: DISTRIBUTION, TYPE = FROMFILE, FNAME="PartDatabase1.dat";
FS1:FIELDSOLVER, FSTYPE=NONE, MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM1: BEAM, PARTICLE=PROTON, PC=P0, NPART=1000, BCURRENT=2.0e-03, BFREQ=rf, CHARGE=1;
SELECT, LINE=QUADTEST;
TRACK, LINE= QUADTEST, BEAM=BEAM1, MAXSTEPS=10000, DT=1.0e-10, ZSTART= 0., ZSTOP=8.0, MAP_ORDER=1;
RUN, METHOD = "THICK", BEAM=BEAM1, FIELDSOLVER=FS1, DISTRIBUTION=DIST;
ENDTRACK;
STOP;
OPTION, ECHO=FALSE;
OPTION, INFO=TRUE;
Option, PSDUMPFREQ=1;
Option, SPTDUMPFREQ = 50;
Option, STATDUMPFREQ=1;
OPTION, VERSION=10900;
TITLE, STRING="FODO Test";
REAL Edes = 0.10;
REAL gamma = (Edes+PMASS)/PMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL gambet = gamma*beta;
REAL P0 = gamma*beta*PMASS;
REAL brho = (PMASS*1.0e9*gambet) / CLIGHT;
REAL rf = 50.6328e6; //need to be confirmed
VALUE,{gamma,brho,Edes,beta,gambet};
D1: DRIFT, L=1., ELEMEDGE=0.000, NSLICES=10;
QP1: QUADRUPOLE, L=0.3, K1= 8.64195, ELEMEDGE=1.000, NSLICES=15;
DG1: DRIFT, L=0.3, ELEMEDGE=1.300, NSLICES=10;
QP2: QUADRUPOLE, L=0.3, K1=-11.57456,ELEMEDGE=1.600, NSLICES=15;
DG2: DRIFT, L=0.3, ELEMEDGE=1.900, NSLICES=10;
QP3: QUADRUPOLE, L=0.3, K1= 8.64195, ELEMEDGE=2.200, NSLICES=15;
D3: DRIFT, L=.9, ELEMEDGE=2.500, NSLICES=5;
D4: DRIFT, L=.3, ELEMEDGE=3.400, NSLICES=20;
//QUADTEST: LINE=(D1);
QUADTEST: LINE=( D1, QP1 , DG1, QP2, DG2, QP3, D3, D4);
DIST: DISTRIBUTION, TYPE=GAUSS,
SIGMAX= 0, SIGMAPX= 1.0e06, CORRX= 0.0,
SIGMAY= 0, SIGMAPY= 1.0e06, CORRY= 0.0,
OFFSETZ = 0.005, SIGMAT= 0.0005,
SIGMAPT= 0.0, CORRT= 0.0, R61= 0.0,
INPUTMOUNITS=EV,WRITETOFILE= TRUE;
DIST1: DISTRIBUTION, TYPE = FROMFILE, FNAME="data/FODO_DIST.dat"; //FNAME="PartDatabase.dat";
FS1:FIELDSOLVER, FSTYPE=NONE, MX=64, MY=64, MT=64,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=STANDARD;
BEAM1: BEAM, PARTICLE=PROTON, PC=P0, NPART=200, BCURRENT=2.0e-03, BFREQ=rf, CHARGE=1;
SELECT, LINE=QUADTEST;
TRACK, LINE= QUADTEST, BEAM=BEAM1, MAXSTEPS=10000, DT=1.0e-10, ZSTOP=4.0, MAP_ORDER=2;
RUN, METHOD = "THICK", BEAM=BEAM1, FIELDSOLVER=FS1, DISTRIBUTION=DIST1;
ENDTRACK;
STOP;
This diff is collapsed.
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