Skip to content

Commit 0d5822f

Browse files
Francesco MassimoFrancesco Massimo
Francesco Massimo
authored and
Francesco Massimo
committed
improve envelope tutorial
1 parent 7039dd4 commit 0d5822f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

_extra/laser_wake_envelope.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
######################### Simulation parameters
3535

3636
##### mesh resolution
37-
dx = 0.15*um # longitudinal mesh resolution
38-
dr = 1*um # transverse mesh resolution
37+
dx = 0.14*um # longitudinal mesh resolution
38+
dr = 0.75*um # transverse mesh resolution
3939
dt = 0.9*dx/c_normalized # integration timestep
4040

4141
##### simulation window size
42-
nx = 352 # number of mesh points in the longitudinal direction
42+
nx = 384 # number of mesh points in the longitudinal direction
4343
nr = 96 # number of mesh points in the transverse direction
4444
Lx = nx * dx # longitudinal size of the simulation window
4545
Lr = nr * dr # transverse size of the simulation window
@@ -90,8 +90,8 @@
9090

9191
#### laser parameters
9292
a0 = 1.8
93-
laser_fwhm = 25.5*math.sqrt(2)*fs # laser FWHM duration in field, i.e. FWHM duration in intensity*sqrt(2)
94-
laser_waist = 20.*um # laser waist, conversion from um
93+
laser_fwhm = 25*math.sqrt(2)*fs # laser FWHM duration in field, i.e. FWHM duration in intensity*sqrt(2)
94+
laser_waist = 16.*um # laser waist, conversion from um
9595
center_laser = Lx-1.7*laser_fwhm # laser position at the start of the simulation
9696
x_focus_laser = 500*um
9797

@@ -125,7 +125,7 @@
125125
# atomic density
126126
plasma_plateau_density_1_ov_cm3 = 1.3e18
127127
n_at = plasma_plateau_density_1_ov_cm3*1e6/ncrit # plasma plateau density in units of critical density defined above
128-
R_plasma = 90.*um # Radius of plasma
128+
R_plasma = 65.*um # Radius of plasma
129129

130130
# Define the density function
131131
# this plasma density profile tries to create the density distribution

advanced_wakefield_envelope.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ the ``"explicit_reduced_dispersion"``. Try have at least ``dt>=0.9*dx`` to use
307307
the B-TIS3, but check that the solver results (i.e. the envelope fields) do not
308308
increase exponentially due to a too high ``dt``.
309309

310-
**Action**: Run a new simulation, changing the variable ``use_BTIS3_interpolation``
310+
**Action**: Run the same simulation again in a new folder, changing the variable ``use_BTIS3_interpolation``
311311
before the ``Main`` block to ``True``. Note how this changes the ``pusher``
312312
to ``"ponderomotive_borisBTIS3"`` and adds some fields to the ``Probes`` in the namelist.
313313
Check how the electron beam shape changes::

0 commit comments

Comments
 (0)