aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/AcceleratorLattice/inputs_quad_moving_3d
blob: e5ec0a5958427a7e78b59bfcd68be6cff0eac922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
max_step = 50
amr.n_cell = 16 16 8
amr.max_level = 0
geometry.dims = 3
geometry.prob_lo     = -0.2 -0.2 -0.1
geometry.prob_hi     = +0.2 +0.2 +0.1

warpx.const_dt = 1e-9
warpx.do_electrostatic = labframe

# Boundary condition
boundary.field_lo = pec pec pec
boundary.field_hi = pec pec pec

warpx.do_moving_window = 1
warpx.moving_window_dir = z
warpx.moving_window_v = 0.1 # in units of the speed of light

# Order of particle shape factors
algo.particle_shape = 1

particles.species_names = electron
electron.charge = -q_e
electron.mass = m_e
electron.injection_style = "SingleParticle"
electron.single_particle_pos = 0.05 0.0 0.0
electron.single_particle_u = 0.0 0.0 0.1  # gamma*beta
electron.single_particle_weight = 1.0

lattice.elements = drift1 quad1 drift2 quad2

drift1.type = drift
drift1.ds = 0.2

quad1.type = quad
quad1.ds = 0.2
quad1.dEdx = 1.e4

drift2.type = drift
drift2.ds = 0.6

quad2.type = quad
quad2.ds = 0.4
quad2.dEdx = -1.e4

# Diagnostics
diagnostics.diags_names = diag1
diag1.intervals = 50
diag1.diag_type = Full