Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 3c7cb1a3 authored by albajacas_a's avatar albajacas_a
Browse files

Resolve "Undulator Test"

parent 4beb353e
No related branches found
No related tags found
No related merge requests found
Showing with 4370 additions and 1 deletion
...@@ -136,6 +136,7 @@ RegressionTests/Slit-1/Slit-1.h5 ...@@ -136,6 +136,7 @@ RegressionTests/Slit-1/Slit-1.h5
RegressionTests/Slit-2/MSLIT1.h5 RegressionTests/Slit-2/MSLIT1.h5
RegressionTests/Slit-2/SLIT1.h5 RegressionTests/Slit-2/SLIT1.h5
RegressionTests/Slit-2/Slit-2.h5 RegressionTests/Slit-2/Slit-2.h5
RegressionTests/UndulatorAWA/UndulatorAWA.h5
RegressionTests/VKick-Test-1/VKick-Test-1.h5 RegressionTests/VKick-Test-1/VKick-Test-1.h5
RegressionTests/opalimpact-1/opalimpact-1.h5 RegressionTests/opalimpact-1/opalimpact-1.h5
RegressionTests/VFFA-1/RINGPROBE* RegressionTests/VFFA-1/RINGPROBE*
......
OPTION, PSDUMPFREQ = 100000000; // 6d data written every 300 time steps (h5).
OPTION, STATDUMPFREQ = 10; // Beam Stats written every 10 time steps (stat).
OPTION, BOUNDPDESTROYFQ=10; // Delete lost particles, if any
OPTION, AUTOPHASE=4; // Autophase is on, and phase of max energy
// gain will be found automatically for cavities.
OPTION, VERSION=20300;
REAL REPARTFREQ=1000000;
Title, string="AWA_WIGGLER";
//----------------------------------------------------------------------------
//Global Parameters
REAL rf_freq = 1.0; //RF frequency. (Hz)
REAL n_particles = 1e4; // number of particles
REAL beam_bunch_charge = 0.3 * 1e-9; //Charge of bunch. (C)
//Initial Momentum Calculation
REAL gamma = 44e-3 / EMASS; // Energy in GeV
REAL beta = sqrt(1-(1/gamma^2));
REAL P0 = gamma*beta*EMASS; //inital z momentum
// Undulator of length 85cm + 17cm fringe distance at the entrance and at exit
UND: UNDULATOR, ELEMEDGE = 1.0e-2, K = 10.81, LAMBDA = 8.5e-2, NUMPERIODS = 10, ANGLE = PI/2,
MESHLENGTH = {10e-3, 10e-3, 2e-3}, MESHRESOLUTION = {30e-6, 30e-6, 8e-6};
DRIVE: Line = (UND);
//----------------------------------------------------------------------------
// INITIAL DISTRIBUTION
Dist: DISTRIBUTION, TYPE = GAUSS,
SIGMAX = .4e-3,
SIGMAY = .4e-3,
SIGMAZ = .1e-3,
WRITETOFILE = FALSE,
EMITTED = FALSE;
//----------------------------------------------------------------------------
FS_SC: Fieldsolver, FSTYPE = FFT,
MX = 8, MY = 8, MT = 8, // SC grid size is 8^3
PARFFTX = true,
PARFFTY = true,
PARFFTT = true,
BCFFTX = open,
BCFFTY = open,
BCFFTT = open,
BBOXINCR = 1,
GREENSF = INTEGRATED;
//----------------------------------------------------------------------------
// Electron Beam Definition
BEAM1: BEAM, PARTICLE = ELECTRON, GAMMA = gamma, NPART = n_particles,
BFREQ = 1, BCURRENT = beam_bunch_charge * 1e6 , CHARGE = -1;
//----------------------------------------------------------------------------
// Simulate the beamline using TRACK and RUN.
TRACK, LINE = DRIVE, BEAM = BEAM1, MAXSTEPS = 1000000, DT = 3.E-12, ZSTOP= 1.5;
RUN, METHOD = "PARALLEL-T", BEAM = BEAM1,
FIELDSOLVER = FS_SC, DISTRIBUTION = Dist;
ENDTRACK;
Quit;
#!/bin/bash
mpirun -np 4 $OPAL_EXE_PATH/opal UndulatorAWA.in --commlib mpi --info 3 --warn 0 "$@" 2>&1
"UndulatorAWA"
stat "rms_x" last 1E-8 #this is a comment
stat "rms_y" last 1E-8 #this is a comment
stat "rms_s" last 1E-8 #this is a comment
stat "rms_ps" last 1E-8 #this is a comment
\ No newline at end of file
SDDS1
&description
text="Processor statistics 'UndulatorAWA.in' 01/10/202011:36:14",
contents="lbal 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
&column
name="processor-2",
type=long,
units=1,
description="4 Number of particles of processor 2"
&end
&column
name="processor-3",
type=long,
units=1,
description="5 Number of particles of processor 3"
&end
&data
mode=ascii,
no_row_counts=1
&end
4
OPAL 2.3.0 git rev. #ca7285a24d24df62d44b408737444d7f873a59cc
opal-t
3.000000000000000e-02 2514 2540 2422 2524
3.876992106737661e+00 2461 2523 2429 2587
3.906992106737662e+00 2455 2525 2426 2594
3.936992106737663e+00 2450 2528 2423 2599
3.966992106737664e+00 2448 2530 2420 2602
3.996992106737665e+00 2441 2532 2420 2607
4.026992106737666e+00 2433 2535 2423 2609
4.056992106737667e+00 2428 2536 2424 2612
4.086992106737668e+00 2420 2541 2423 2616
4.116992106737669e+00 2416 2543 2420 2621
4.146992106737669e+00 2416 2542 2415 2627
4.176992106737671e+00 2414 2541 2415 2630
4.206992106737672e+00 2408 2543 2415 2634
4.236992106737673e+00 2406 2543 2412 2639
4.266992106737673e+00 2402 2544 2409 2645
4.296992106737674e+00 2398 2547 2405 2650
4.326992106737675e+00 2389 2551 2404 2656
4.356992106737676e+00 2383 2549 2404 2664
4.386992106737677e+00 2380 2549 2402 2669
4.416992106737678e+00 2374 2552 2399 2675
4.446992106737679e+00 2368 2554 2401 2677
4.476992106737680e+00 2364 2551 2404 2681
4.506992106737680e+00 2359 2551 2403 2687
4.536992106737681e+00 2356 2547 2402 2695
4.566992106737683e+00 2351 2548 2403 2698
4.596992106737684e+00 2349 2546 2403 2702
4.626992106737685e+00 2341 2545 2408 2706
4.656992106737685e+00 2337 2545 2410 2708
4.686992106737686e+00 2337 2543 2410 2710
4.716992106737687e+00 2332 2546 2408 2714
4.746992106737689e+00 2333 2543 2406 2718
4.776992106737689e+00 2327 2540 2409 2724
4.806992106737690e+00 2323 2540 2408 2729
4.836992106737691e+00 2321 2536 2407 2736
4.866992106737692e+00 2316 2536 2409 2739
4.896992106737692e+00 2313 2537 2411 2739
4.926992106737694e+00 2311 2536 2409 2744
4.956992106737695e+00 2306 2538 2411 2745
4.986992106737696e+00 2302 2539 2411 2748
5.013992106737697e+00 2300 2538 2409 2753
4a70648763f1a80858c78b9eb0047f73 UndulatorAWA.lbal
source diff could not be displayed: it is too large. Options to address this: view the blob.
5b1b57eeeaa2c9f1f3a15c13e24e9776 UndulatorAWA.out
This diff is collapsed.
0c15416a3554f019e208a77635b0a17a UndulatorAWA.stat
cmake_config+=( "-DENABLE_AMR=1" ) cmake_config+=( "-DENABLE_AMR=1" )
cmake_config+=( "-DENABLE_AMR_MG_SOLVER=1" ) cmake_config+=( "-DENABLE_AMR_MG_SOLVER=1" )
cmake_config+=( "-DENABLE_OPAL_FEL=yes" )
\ No newline at end of file
...@@ -15,3 +15,4 @@ module load OpenBLAS/0.2.20 ...@@ -15,3 +15,4 @@ module load OpenBLAS/0.2.20
module load trilinos/12.12.1 module load trilinos/12.12.1
module load gtest/1.7.0 module load gtest/1.7.0
module load gnuplot/5.2.7 module load gnuplot/5.2.7
module load MITHRA/2.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment