aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/particles_in_PML/inputs.2d
blob: 9c5a649213db3279b13314db92a72dc5e5213a86 (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
50
51
52
53
54
55
max_step = 180
amr.plot_int = 30
amr.n_cell =  224 224

amr.blocking_factor = 8
amr.max_grid_size = 1024
amr.max_level = 0

warpx.dump_plotfiles = 1

# Geometry
geometry.coord_sys   = 0                  # 0: Cartesian
geometry.is_periodic = 0     0          # Is periodic?
geometry.prob_lo     = -32.e-6  -32.e-6       # physical domain
geometry.prob_hi     =  32.e-6   32.e-6

# PML
warpx.do_pml = 1
warpx.pml_ncell = 12
warpx.pml_delta = 6
warpx.pml_has_particles = 1
warpx.do_pml_in_domain = 1
warpx.do_pml_j_damping = 1


# Algorithms
algo.current_deposition = esirkepov
algo.charge_deposition = standard
algo.particle_pusher = vay
algo.maxwell_fdtd_solver = ckc
warpx.cfl = 1.0
warpx.use_filter = 1

# Particle species
particles.nspecies = 2
particles.species_names = electron proton

electron.charge = -q_e
electron.mass = m_e
electron.injection_style = "singleparticle"
electron.single_particle_pos = 0. 0. 0.
electron.single_particle_vel = 2. 0. 0.
electron.single_particle_weight = 1.

proton.charge = q_e
proton.mass = m_p    # Very heavy ; should not move
proton.injection_style = "singleparticle"
proton.single_particle_pos = 0. 0. 0.
proton.single_particle_vel = -2. 0. 0.
proton.single_particle_weight = 1.

# Particle shape factor in each direction
interpolation.nox = 3
interpolation.noy = 3
interpolation.noz = 3