You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/a-beam-beam-collision.Rmd
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Learn how to setup, run, and visualize your own beam-beam ☄️☄️ simulatio
22
22
## Setup
23
23
24
24
In this example we will simulate a bunch of electrons colliding against a bunch of positrons.
25
-
We have selected the parameters of the C$^3$ linear collider, arbitrarily.
25
+
We have selected the parameters of the C$^3$ linear collider.
26
26
27
27
Whenever you need to prepare an input file, [this is where you want to go](https://warpx.readthedocs.io/en/latest/usage/parameters.html).
28
28
@@ -45,8 +45,8 @@ The full 3D version of this solver is also available with `warpx.use_2d_slices_f
45
45
46
46
* Resolution: the number of grid cells is reduced to fit in a laptop. For production simulations, make sure you increase the resolution.
47
47
48
-
* Timestep: since the beams travel at the speed of light along $z$, it makes sense to choose $dt =
49
-
However this is not strictly necessary. Sometimes it can be useful to save resources by choosing a larger timestep.
48
+
* Timestep: since the beams travel at the speed of light along $z$ and the simulation frame is the center of mass frame,
49
+
it makes sense to choose $dt = dz / ( 2 c ) $. However this is not strictly necessary. Sometimes it can be useful to save resources by choosing a larger timestep.
50
50
Just make sure you resolve ''well-enough'' the shortest timescale that you're interested in.
51
51
52
52
* QED lookup tables: here we use the built-in ones for convenience. For production runs, make sure to use tables with enough points and set the
@@ -107,7 +107,6 @@ On my laptop's CPU (12th Gen Intel® Core™ i9-12900H × 20) the serial simulat
107
107
108
108
109
109
### With Python 🐍
110
-
12th Gen Intel® Core™ i9-12900H × 20
111
110
Now that we have the results, we can analyze them using Python.
112
111
We will use the [openPMD-viewer][openpmd-viewer] library to grab the data that the simulation produced in `openPMD` format.
113
112
Here you can find [a few great tutorials on how to use the viewer](https://openpmd-viewer.readthedocs.io/en/latest/tutorials/tutorials.html).
0 commit comments