DCGun-Cornell-1.in 1.41 KB
Newer Older
adelmann's avatar
adelmann committed
1 2 3 4 5 6 7 8 9
//-----------------
// Cornell DC gun injector test
//
//-----------------
TITLE, STRING="DCGun-Cornell";


OPTION, ECHO=TRUE; //ECHO Controls printing of an echo of input lines on the standard error file.
OPTION, INFO=TRUE; //INFO If this option is turned off, OPAL suppresses all information messages.
10
OPTION, PSDUMPFREQ=10000; //Defines after how many time steps the phase space is dumped into the H5Part file. Default value is 10.
adelmann's avatar
adelmann committed
11
OPTION, AUTOPHASE = 1;
12
Option, VERSION=10900;
adelmann's avatar
adelmann committed
13 14


15 16 17
REAL QB               = 100e-12;
REAL BFREQ            = 1.3e9;
REAL BCURRENT         = QB*BFREQ;
18
REAL P0               = 1.95695E+00 * EMASS;
adelmann's avatar
adelmann committed
19 20
call, file = "lat.opal";

21
file_distribution:DISTRIBUTION, TYPE=fromfile, FNAME="lat.opal_particles";
adelmann's avatar
adelmann committed
22 23 24 25 26 27 28 29

no_fieldsolver:FIELDSOLVER,
	FSTYPE = NONE, MX = 16, MY = 16, MT = 32,
	PARFFTX = true, PARFFTY = true, PARFFTT = true,
	BCFFTX = open, BCFFTY = open, BCFFTT = open,
	BBOXINCR = 1, GREENSF = INTEGRATED;

my_beam: BEAM,
30
	PARTICLE=ELECTRON,
adelmann's avatar
adelmann committed
31
	//pc = 10,          // momentum per particle in GeV/c
32
	NPART = 27,     //number of test particles simulated
adelmann's avatar
adelmann committed
33
	BCURRENT = BCURRENT, // beam current in A
34
	BFREQ = BFREQ * 1e-6;
adelmann's avatar
adelmann committed
35 36 37 38

SELECT, LINE=lattice;

// Simulation
39 40
TRACK, 	LINE = lattice,
	BEAM = my_beam,
adelmann's avatar
adelmann committed
41 42 43
	MAXSTEPS = 100000,
	DT=1.0e-12, //Timestep size in s
	ZSTOP=12.0; //Stopping position z in meters
44 45 46
RUN,	METHOD = "PARALLEL-T",
	BEAM = my_beam,
	FIELDSOLVER = no_fieldsolver,
adelmann's avatar
adelmann committed
47 48 49
	DISTRIBUTION = file_distribution;
ENDTRACK;

50
STOP;