Skip to content

Commit f934439

Browse files
committed
Remove Electron Beam from 1D Test
1 parent 25725ec commit f934439

File tree

2 files changed

+10
-49
lines changed

2 files changed

+10
-49
lines changed

Examples/Physics_applications/laser_acceleration/PICMI_inputs_1d.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,6 @@
5151
name = 'electrons',
5252
initial_distribution = uniform_distribution)
5353

54-
# Particles: beam electrons
55-
q_tot = 1e-12
56-
x_m = 0.
57-
y_m = 0.
58-
z_m = -28e-06
59-
x_rms = 0.5e-06
60-
y_rms = 0.5e-06
61-
z_rms = 0.5e-06
62-
ux_m = 0.
63-
uy_m = 0.
64-
uz_m = 500.
65-
ux_th = 2.
66-
uy_th = 2.
67-
uz_th = 50.
68-
gaussian_bunch_distribution = picmi.GaussianBunchDistribution(
69-
n_physical_particles = q_tot / q_e,
70-
rms_bunch_size = [x_rms, y_rms, z_rms],
71-
rms_velocity = [c*ux_th, c*uy_th, c*uz_th],
72-
centroid_position = [x_m, y_m, z_m],
73-
centroid_velocity = [c*ux_m, c*uy_m, c*uz_m])
74-
beam = picmi.Species(
75-
particle_type = 'electron',
76-
name = 'beam',
77-
initial_distribution = gaussian_bunch_distribution)
78-
7954
# Laser
8055
e_max = 16e12
8156
position_z = 9e-06
@@ -127,11 +102,6 @@
127102
electrons,
128103
layout = picmi.GriddedLayout(grid = grid, n_macroparticle_per_cell = [10]))
129104

130-
# Add beam electrons
131-
sim.add_species(
132-
beam,
133-
layout = picmi.PseudoRandomLayout(grid = grid, n_macroparticles = 100))
134-
135105
# Add laser
136106
sim.add_laser(
137107
laser,
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"beam": {
3-
"particle_cpu": 0.0,
4-
"particle_id": 0.0,
5-
"particle_momentum_x": 0.0,
6-
"particle_momentum_y": 0.0,
7-
"particle_momentum_z": 0.0,
8-
"particle_position_x": 0.0,
9-
"particle_weight": 0.0
10-
},
112
"electrons": {
123
"particle_cpu": 0.0,
134
"particle_id": 0.0,
@@ -18,15 +9,15 @@
189
"particle_weight": 0.0
1910
},
2011
"lev=0": {
21-
"Bx": 178038.73328943978,
22-
"By": 21.80404352678598,
12+
"Bx": 178016.7504669478,
13+
"By": 0.0,
2314
"Bz": 0.0,
24-
"Ex": 6500587789.693293,
25-
"Ey": 40880870929309.17,
26-
"Ez": 2526222236149.224,
27-
"jx": 1073234194657.4467,
28-
"jy": 33548056437319.6,
29-
"jz": 1542998901893716.0,
30-
"rho": 18186572.727098644
15+
"Ex": 0.0,
16+
"Ey": 40878227583310.83,
17+
"Ez": 568254685.6950157,
18+
"jx": 0.0,
19+
"jy": 30442928969125.46,
20+
"jz": 1108530282155.6707,
21+
"rho": 3127749.1976868743
3122
}
32-
}
23+
}

0 commit comments

Comments
 (0)