Commit 05be899d authored by ext-rogers_c's avatar ext-rogers_c

Add OpalRingTest regression test

parent f5cb6316
......@@ -157,6 +157,21 @@ RegressionTests/LaserProfile_fixme/LaserEmission.in -text
RegressionTests/LaserProfile_fixme/LaserEmission.sge -text
RegressionTests/LaserProfile_fixme/NormalSave.h5 -text
RegressionTests/LaserProfile_fixme/QuickSave.h5 -text
RegressionTests/OpalRingTest/OpalRingTest.in -text
RegressionTests/OpalRingTest/OpalRingTest.local -text
RegressionTests/OpalRingTest/OpalRingTest.rt -text
RegressionTests/OpalRingTest/OpalRingTest.sge -text
RegressionTests/OpalRingTest/data/OpalRingTest.field -text
RegressionTests/OpalRingTest/data/beam.dat -text
RegressionTests/OpalRingTest/data/dist.dat -text
RegressionTests/OpalRingTest/reference/OpalRingTest.lbal -text
RegressionTests/OpalRingTest/reference/OpalRingTest.lbal.md5 -text
RegressionTests/OpalRingTest/reference/OpalRingTest.out -text
RegressionTests/OpalRingTest/reference/OpalRingTest.out.md5 -text
RegressionTests/OpalRingTest/reference/OpalRingTest.stat -text
RegressionTests/OpalRingTest/reference/OpalRingTest.stat.md5 -text
RegressionTests/OpalRingTest/reference/PROBE1.loss -text
RegressionTests/OpalRingTest/reference/PROBE1.loss.md5 -text
RegressionTests/PSIGUN-1/NEW_SINGLE_SOL_NOFRINGE_ASTRA.opal -text
RegressionTests/PSIGUN-1/PHINGU1.T7 -text
RegressionTests/PSIGUN-1/PSIGUN-1.in -text
......
RegressionTests/OpalRingTest/OpalRingTest-trackOrbit.dat
RegressionTests/OpalRingTest/OpalRingTest.h5
RegressionTests/OpalRingTest/PROBE1.loss
RegressionTests/OpalRingTest/timing.dat
Option, ECHO=TRUE;
//////////////////////////////////////////////////////////////////////////////
// Input file for single bunch tracking through ERIT FFAG ring //
//////////////////////////////////////////////////////////////////////////////
Title,string="ERIT test simulation using OPAL code";
Option, ASCIIDUMP=TRUE;
Edes=0.011;
e_tot = (Edes+PMASS);
p_tot = (e_tot^2-PMASS^2)^0.5;
gamma = e_tot/PMASS;
beta = p_tot/e_tot;
gambet = gamma*beta;
P0 = gamma*beta*PMASS;
brho = (PMASS*1.0e9*gambet) / CLIGHT;
x_closed_orbit = 2349.008;
// print to terminal
value,{gamma,brho,Edes,beta,gambet,x_closed_orbit};
n_turns=100.0;
revolution_period=327;
step_size=0.1; // ns
max_steps=n_turns*revolution_period/step_size;
steps_per_turn=revolution_period/step_size;
frequency=6000/revolution_period;
value,{step_size_mm,n_turns,revolution_period,step_size};
Probe1: PROBE, xstart=0, xend=+4000., ystart=0, yend=0.;
ringdef: RINGDEFINITION, HARMONIC_NUMBER=6, LATTICE_RINIT=2350.0, LATTICE_PHIINIT=0.0,
LATTICE_THETAINIT=0.0, BEAM_PHIINIT=0.0, BEAM_PRINIT=0.0,
BEAM_RINIT=x_closed_orbit, SYMMETRY=8.0, RFFREQ=frequency, IS_CLOSED=true;
triplet: SBEND3D, FMAPFN="data/OpalRingTest.field", LENGTH_UNITS=10., FIELD_UNITS=-1e-4;
l1: Line = (ringdef, probe1, probe2, triplet);
Dist1: DISTRIBUTION, DISTRIBUTION=fromfile, FNAME="data/beam.dat";
Fs1:FIELDSOLVER, FSTYPE=FFT, MX=32, MY=32, MT=32,
PARFFTX=true, PARFFTY=true, PARFFTT=false,
BCFFTX=open, BCFFTY=open, BCFFTT=open,BBOXINCR=2;
beam1: BEAM, PARTICLE=PROTON, pc=P0, SPACECHARGE=false, NPART=30, BCURRENT=1.0E-19, CHARGE=1.0, BFREQ=frequency;
track, line=l1, beam=beam1,MAXSTEPS=max_steps,STEPSPERTURN=steps_per_turn;
run, file = "track_output", turns = 1, method = "CYCLOTRON-T", beam=beam1,
fieldsolver=Fs1, distribution=Dist1;
endtrack;
Stop;
#!/bin/bash
$OPAL_EXE_PATH/opal OpalRingTest.in 2>&1
"One hundred turn RK-4 tracking in ERIT FFAG using SBend3D; no space charge"
PROBE1.loss "x" all 1E-15
PROBE1.loss "y" all 1E-15
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe mpi 4
#$ -N OpalRingTest-RT
#$ -v OPENMPI,LD_LIBRARY_PATH,OPAL_EXE_PATH,REG_TEST_DIR
MACHINE_FILE=$TMPDIR/machinefile
awk '/^felsim/ {print $1" slots="$2}' $PE_HOSTFILE > $MACHINE_FILE
cp $MACHINE_FILE machinefile.last
echo "PE_HOSTFILE:"
cat $PE_HOSTFILE
echo "MACHINE_FILE:"
cat $MACHINE_FILE
echo "SLOTS=$NSLOTS"
cd $REG_TEST_DIR
OPAL="$OPAL_EXE_PATH/opal OpalRingTest.in --commlib mpi --info 0 --warn 0 2>&1"
CMD="$MPIHOME/bin/mpirun -machinefile $MACHINE_FILE -np $NSLOTS --mca ras localhost --mca pls rsh $OPAL "
$CMD
This diff is collapsed.
12
0.000 0.00 0.000 0.00 0.00 0.00
0.001 0.00 0.000 0.00 0.00 0.00
0.010 0.00 0.000 0.00 0.00 0.00
0.100 0.00 0.000 0.00 0.00 0.00
0.120 0.00 0.000 0.00 0.00 0.00
0.150 0.00 0.000 0.00 0.00 0.00
0.000 0.00 0.00 0.00 0.001 0.00
0.000 0.00 0.00 0.00 0.010 0.00
0.000 0.00 0.00 0.00 0.020 0.00
0.000 0.00 0.00 0.00 0.030 0.00
0.000 0.00 0.00 0.00 0.040 0.00
0.000 0.00 0.00 0.00 0.050 0.00
d41d8cd98f00b204e9800998ecf8427e OpalRingTest.lbal
d2502efda1431b29bba8fe966db6295b OpalRingTest.lbal
d41d8cd98f00b204e9800998ecf8427e OpalRingTest.out
d41d8cd98f00b204e9800998ecf8427e OpalRingTest.stat
This diff is collapsed.
50b561127b98fdd00c5e16964e519442 PROBE1.loss
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