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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
#################################
####### GENERAL PARAMETERS ######
#################################
max_step = 1
amr.n_cell = 8 8 8
amr.max_grid_size = 8
amr.blocking_factor = 8
amr.max_level = 0
geometry.dims = 3
geometry.prob_lo = -1.0 -1.0 -1.0
geometry.prob_hi = 1.0 1.0 1.0
#################################
####### Boundary Condition ######
#################################
boundary.field_lo = periodic periodic periodic
boundary.field_hi = periodic periodic periodic
#################################
############ NUMERICS ###########
#################################
warpx.verbose = 1
warpx.cfl = 1.e-8
warpx.use_filter = 0
# Order of particle shape factors
algo.particle_shape = 1
#################################
############ PLASMA #############
#################################
particles.species_names = gaussian maxwell_boltzmann maxwell_juttner beam maxwell_juttner_parser velocity_constant velocity_parser uniform
particles.rigid_injected_species = beam
gaussian.charge = -q_e
gaussian.mass = m_e
gaussian.injection_style = "NRandomPerCell"
gaussian.num_particles_per_cell = 1000
gaussian.profile = constant
gaussian.density = 1.0e21
gaussian.momentum_distribution_type = "gaussian"
gaussian.ux_th = 0.01
gaussian.uy_th = 0.01
gaussian.uz_th = 0.01
maxwell_boltzmann.charge = -q_e
maxwell_boltzmann.mass = m_e
maxwell_boltzmann.injection_style = "NRandomPerCell"
maxwell_boltzmann.num_particles_per_cell = 1000
maxwell_boltzmann.profile = constant
maxwell_boltzmann.density = 1.0e21
maxwell_boltzmann.momentum_distribution_type = "maxwell_boltzmann"
maxwell_boltzmann.theta = 9.99900009999001e-5
maxwell_juttner.charge = -q_e
maxwell_juttner.mass = m_e
maxwell_juttner.injection_style = "NRandomPerCell"
maxwell_juttner.num_particles_per_cell = 1000
maxwell_juttner.profile = constant
maxwell_juttner.density = 1.0e21
maxwell_juttner.momentum_distribution_type = "maxwell_juttner"
maxwell_juttner.theta = 1.0
beam.charge = -q_e
beam.mass = m_e
beam.injection_style = "gaussian_beam"
beam.x_rms = 0.25
beam.y_rms = 0.25
beam.z_rms = 0.25
beam.z_cut = 2.
beam.x_m = 0.0
beam.y_m = 0.0
beam.z_m = 0.0
beam.npart = 512000
beam.q_tot = -1.e-20
beam.momentum_distribution_type = "gaussian"
beam.ux_m = 0.0
beam.uy_m = 0.0
beam.uz_m = 0.0
beam.ux_th = 1.0
beam.uy_th = 1.0
beam.uz_th = 1.0
beam.zinject_plane = 0.0
beam.rigid_advance = true
maxwell_juttner_parser.charge = -q_e
maxwell_juttner_parser.mass = m_e
maxwell_juttner_parser.injection_style = "NRandomPerCell"
maxwell_juttner_parser.num_particles_per_cell = 1000
maxwell_juttner_parser.profile = constant
maxwell_juttner_parser.density = 1.0e21
maxwell_juttner_parser.momentum_distribution_type = "maxwell_juttner"
maxwell_juttner_parser.theta_distribution_type = "parser"
maxwell_juttner_parser.theta_function(x,y,z) = "1.0 + heaviside(x,0)"
velocity_constant.charge = -q_e
velocity_constant.mass = m_e
velocity_constant.injection_style = "NRandomPerCell"
velocity_constant.num_particles_per_cell = 1000
velocity_constant.profile = constant
velocity_constant.density = 1.0e21
velocity_constant.momentum_distribution_type = "maxwell_boltzmann"
velocity_constant.theta_distribution_type = "constant"
velocity_constant.theta = 1e-9
velocity_constant.beta_distribution_type = "constant"
velocity_constant.beta = 0.2
velocity_constant.bulk_vel_dir = -y
velocity_parser.charge = -q_e
velocity_parser.mass = m_e
velocity_parser.injection_style = "NRandomPerCell"
velocity_parser.num_particles_per_cell = 1000
velocity_parser.profile = constant
velocity_parser.density = 1.0e21
velocity_parser.momentum_distribution_type = "maxwell_boltzmann"
velocity_parser.theta_distribution_type = "constant"
velocity_parser.theta = 1e-9
velocity_parser.beta_distribution_type = "parser"
velocity_parser.beta_function(x,y,z) = "-0.2 + 0.4 * heaviside(z,0)"
velocity_parser.bulk_vel_dir = -y
uniform.charge = q_e
uniform.mass = m_e
uniform.injection_style = "NRandomPerCell"
uniform.num_particles_per_cell = 1000
uniform.profile = constant
uniform.density = 1.0e21
uniform.momentum_distribution_type = "uniform"
uniform.ux_min = -0.2
uniform.ux_max = 0.3
uniform.uy_min = -0.1
uniform.uy_max = 0.1
uniform.uz_min = 10
uniform.uz_max = 11.2
#################################
########## DIAGNOSTIC ###########
#################################
# 1 for gaussian
# 2 for maxwell-boltzmann with constant temperature
# 3 for maxwell-juttner with constant temperature
# 4 for beam
# 5 for maxwell-juttner with parser function temperature
# 6 for maxwell-boltzmann with constant velocity
# 7 for maxwell-boltzmann with parser velocity
# 8 for cuboid in momentum space
warpx.reduced_diags_names = h1x h1y h1z h2x h2y h2z h3 h3_filtered h4x h4y h4z bmmntr h5_neg h5_pos h6 h6uy h7 h7uy_pos h7uy_neg h8x h8y h8z
h1x.type = ParticleHistogram
h1x.intervals = 1
h1x.path = "./"
h1x.species = gaussian
h1x.bin_number = 50
h1x.bin_min = -4.0e-2
h1x.bin_max = +4.0e-2
h1x.histogram_function(t,x,y,z,ux,uy,uz) = "ux"
h1y.type = ParticleHistogram
h1y.intervals = 1
h1y.path = "./"
h1y.species = gaussian
h1y.bin_number = 50
h1y.bin_min = -4.0e-2
h1y.bin_max = +4.0e-2
h1y.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h1z.type = ParticleHistogram
h1z.intervals = 1
h1z.path = "./"
h1z.species = gaussian
h1z.bin_number = 50
h1z.bin_min = -4.0e-2
h1z.bin_max = +4.0e-2
h1z.histogram_function(t,x,y,z,ux,uy,uz) = "uz"
h2x.type = ParticleHistogram
h2x.intervals = 1
h2x.path = "./"
h2x.species = maxwell_boltzmann
h2x.bin_number = 50
h2x.bin_min = -4.0e-2
h2x.bin_max = +4.0e-2
h2x.histogram_function(t,x,y,z,ux,uy,uz) = "ux"
h2y.type = ParticleHistogram
h2y.intervals = 1
h2y.path = "./"
h2y.species = maxwell_boltzmann
h2y.bin_number = 50
h2y.bin_min = -4.0e-2
h2y.bin_max = +4.0e-2
h2y.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h2z.type = ParticleHistogram
h2z.intervals = 1
h2z.path = "./"
h2z.species = maxwell_boltzmann
h2z.bin_number = 50
h2z.bin_min = -4.0e-2
h2z.bin_max = +4.0e-2
h2z.histogram_function(t,x,y,z,ux,uy,uz) = "uz"
h3.type = ParticleHistogram
h3.intervals = 1
h3.path = "./"
h3.species = maxwell_juttner
h3.bin_number = 50
h3.bin_min = 1.0
h3.bin_max = 12.0
h3.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0+(ux*ux+uy*uy+uz*uz))"
h3_filtered.type = ParticleHistogram
h3_filtered.intervals = 1
h3_filtered.path = "./"
h3_filtered.species = maxwell_juttner
h3_filtered.bin_number = 50
h3_filtered.bin_min = 1.0
h3_filtered.bin_max = 12.0
h3_filtered.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0+(ux*ux+uy*uy+uz*uz))"
h3_filtered.filter_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0+(ux*ux+uy*uy+uz*uz)) > 5.5"
h4x.type = ParticleHistogram
h4x.intervals = 1
h4x.path = "./"
h4x.species = beam
h4x.bin_number = 50
h4x.bin_min = -1.0
h4x.bin_max = +1.0
h4x.histogram_function(t,x,y,z,ux,uy,uz) = "x"
h4y.type = ParticleHistogram
h4y.intervals = 1
h4y.path = "./"
h4y.species = beam
h4y.bin_number = 50
h4y.bin_min = -1.0
h4y.bin_max = +1.0
h4y.histogram_function(t,x,y,z,ux,uy,uz) = "y"
h4z.type = ParticleHistogram
h4z.intervals = 1
h4z.path = "./"
h4z.species = beam
h4z.bin_number = 50
h4z.bin_min = -1.0
h4z.bin_max = +1.0
h4z.histogram_function(t,x,y,z,ux,uy,uz) = "z"
h5_neg.type = ParticleHistogram
h5_neg.intervals = 1
h5_neg.path = "./"
h5_neg.species = maxwell_juttner_parser
h5_neg.bin_number = 50
h5_neg.bin_min = 1.0
h5_neg.bin_max = 12.0
h5_neg.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0 + ux*ux + uy*uy + uz*uz)"
h5_neg.filter_function(t,x,y,z,ux,uy,uz) = "x < 0.0"
h5_pos.type = ParticleHistogram
h5_pos.intervals = 1
h5_pos.path = "./"
h5_pos.species = maxwell_juttner_parser
h5_pos.bin_number = 50
h5_pos.bin_min = 1.0
h5_pos.bin_max = 12.0
h5_pos.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0 + ux*ux + uy*uy + uz*uz)"
h5_pos.filter_function(t,x,y,z,ux,uy,uz) = "x > 0.0"
h5_pos.type = ParticleHistogram
h5_pos.intervals = 1
h5_pos.path = "./"
h5_pos.species = maxwell_juttner_parser
h5_pos.bin_number = 50
h5_pos.bin_min = 1.0
h5_pos.bin_max = 12.0
h5_pos.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0 + ux*ux + uy*uy + uz*uz)"
h5_pos.filter_function(t,x,y,z,ux,uy,uz) = "x > 0.0"
h6.type = ParticleHistogram
h6.intervals = 1
h6.path = "./"
h6.species = velocity_constant
h6.bin_number = 50
h6.bin_min = 1.0
h6.bin_max = 1.2
h6.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0 + ux*ux + uy*uy + uz*uz)"
h6uy.type = ParticleHistogram
h6uy.intervals = 1
h6uy.path = "./"
h6uy.species = velocity_constant
h6uy.bin_number = 50
h6uy.bin_min = -1.0
h6uy.bin_max = 1.0
h6uy.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h7.type = ParticleHistogram
h7.intervals = 1
h7.path = "./"
h7.species = velocity_parser
h7.bin_number = 50
h7.bin_min = 1.0
h7.bin_max = 1.2
h7.histogram_function(t,x,y,z,ux,uy,uz) = "sqrt(1.0 + ux*ux + uy*uy + uz*uz)"
h7uy_pos.type = ParticleHistogram
h7uy_pos.intervals = 1
h7uy_pos.path = "./"
h7uy_pos.species = velocity_parser
h7uy_pos.bin_number = 50
h7uy_pos.bin_min = -1.0
h7uy_pos.bin_max = 1.0
h7uy_pos.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h7uy_pos.filter_function(t,x,y,z,ux,uy,uz) = "z > 0.0"
h7uy_neg.type = ParticleHistogram
h7uy_neg.intervals = 1
h7uy_neg.path = "./"
h7uy_neg.species = velocity_parser
h7uy_neg.bin_number = 50
h7uy_neg.bin_min = -1.0
h7uy_neg.bin_max = 1.0
h7uy_neg.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h7uy_neg.filter_function(t,x,y,z,ux,uy,uz) = "z < 0.0"
h8x.type = ParticleHistogram
h8x.intervals = 1
h8x.path = "./"
h8x.species = uniform
h8x.bin_number = 50
h8x.bin_min = -1
h8x.bin_max = 1
h8x.histogram_function(t,x,y,z,ux,uy,uz) = "ux"
h8y.type = ParticleHistogram
h8y.intervals = 1
h8y.path = "./"
h8y.species = uniform
h8y.bin_number = 50
h8y.bin_min = -1
h8y.bin_max = 1
h8y.histogram_function(t,x,y,z,ux,uy,uz) = "uy"
h8z.type = ParticleHistogram
h8z.intervals = 1
h8z.path = "./"
h8z.species = uniform
h8z.bin_number = 200
h8z.bin_min = 0
h8z.bin_max = 15
h8z.histogram_function(t,x,y,z,ux,uy,uz) = "uz"
# our little beam monitor
bmmntr.type = BeamRelevant
bmmntr.intervals = 1
bmmntr.path = "./"
bmmntr.species = beam
# Diagnostics
diagnostics.diags_names = diag1
diag1.intervals = 1000
diag1.diag_type = Full
|