Skip to content

Commit 162b36f

Browse files
committed
Update doc
1 parent ee04455 commit 162b36f

11 files changed

Lines changed: 158 additions & 145 deletions

File tree

_modules/fbpic/lpa_utils/laser/laser.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ <h1>Source code for fbpic.lpa_utils.laser.laser</h1><div class="highlight"><pre>
200200

201201
<span class="sd"> .. math::</span>
202202

203-
<span class="sd"> E(\\boldsymbol{x},t) = a_0\\times E_0\,</span>
204-
<span class="sd"> \exp\left( -\\frac{r^2}{w_0^2} - \\frac{(z-z_0-ct)^2}{c^2\\tau^2} \\right)</span>
203+
<span class="sd"> E(\boldsymbol{x},t) = a_0\times E_0\,</span>
204+
<span class="sd"> \exp\left( -\frac{r^2}{w_0^2} - \frac{(z-z_0-ct)^2}{c^2\tau^2} \right)</span>
205205
<span class="sd"> \cos[ k_0( z - z_0 - ct ) - \phi_{cep} ]</span>
206206

207-
<span class="sd"> where :math:`k_0 = 2\pi/\\lambda_0` is the wavevector and where</span>
207+
<span class="sd"> where :math:`k_0 = 2\pi/\lambda_0` is the wavevector and where</span>
208208
<span class="sd"> :math:`E_0 = m_e c^2 k_0 / q_e` is the field amplitude for :math:`a_0=1`.</span>
209209

210210
<span class="sd"> .. note::</span>
@@ -233,7 +233,7 @@ <h1>Source code for fbpic.lpa_utils.laser.laser</h1><div class="highlight"><pre>
233233

234234
<span class="sd"> ctau: float (in meter)</span>
235235
<span class="sd"> The duration of the laser (in the lab frame),</span>
236-
<span class="sd"> defined as :math:`c\\tau` in the above formula.</span>
236+
<span class="sd"> defined as :math:`c\tau` in the above formula.</span>
237237

238238
<span class="sd"> z0: float (in meter)</span>
239239
<span class="sd"> The initial position of the centroid of the laser</span>
@@ -249,7 +249,7 @@ <h1>Source code for fbpic.lpa_utils.laser.laser</h1><div class="highlight"><pre>
249249

250250
<span class="sd"> lambda0: float (in meter), optional</span>
251251
<span class="sd"> The wavelength of the laser (in the lab frame), defined as</span>
252-
<span class="sd"> :math:`\\lambda_0` in the above formula.</span>
252+
<span class="sd"> :math:`\lambda_0` in the above formula.</span>
253253

254254
<span class="sd"> cep_phase: float (in radian), optional</span>
255255
<span class="sd"> The Carrier Enveloppe Phase (CEP), defined as :math:`\phi_{cep}`</span>

_modules/fbpic/lpa_utils/laser/laser_profiles.html

Lines changed: 55 additions & 55 deletions
Large diffs are not rendered by default.

_modules/fbpic/particles/particles.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -638,29 +638,29 @@ <h1>Source code for fbpic.particles.particles</h1><div class="highlight"><pre>
638638
<span class="sd"> vector throughout the simulation.</span>
639639

640640
<span class="sd"> .. math::</span>
641-
<span class="sd"> \\frac{d\\boldsymbol{s}}{dt} = (\\boldsymbol{\\Omega}_T +</span>
642-
<span class="sd"> \\boldsymbol{\\Omega}_a) \\times \\boldsymbol{s}</span>
641+
<span class="sd"> \frac{d\boldsymbol{s}}{dt} = (\boldsymbol{\Omega}_T +</span>
642+
<span class="sd"> \boldsymbol{\Omega}_a) \times \boldsymbol{s}</span>
643643

644644
<span class="sd"> where</span>
645645

646646
<span class="sd"> .. math::</span>
647-
<span class="sd"> \\boldsymbol{\\Omega}_T = \\frac{q}{m}\\left(</span>
648-
<span class="sd"> \\frac{\\boldsymbol{B}}{\\gamma} -</span>
649-
<span class="sd"> \\frac{\\boldsymbol{B}}{1+\\gamma}</span>
650-
<span class="sd"> \\times \\frac{\\boldsymbol{E}}{c} \\right)</span>
647+
<span class="sd"> \boldsymbol{\Omega}_T = \frac{q}{m}\left(</span>
648+
<span class="sd"> \frac{\boldsymbol{B}}{\gamma} -</span>
649+
<span class="sd"> \frac{\boldsymbol{B}}{1+\gamma}</span>
650+
<span class="sd"> \times \frac{\boldsymbol{E}}{c} \right)</span>
651651

652652
<span class="sd"> and</span>
653653

654654
<span class="sd"> .. math::</span>
655-
<span class="sd"> \\boldsymbol{\\Omega}_a = a_e \\frac{q}{m}\\left(</span>
656-
<span class="sd"> \\boldsymbol{B} -</span>
657-
<span class="sd"> \\frac{\\gamma}{1+\\gamma}\\boldsymbol{\\beta}</span>
658-
<span class="sd"> (\\boldsymbol{\\beta}\\cdot\\boldsymbol{B}) -</span>
659-
<span class="sd"> \\boldsymbol{\\beta} \\times \\frac{\\boldsymbol{E}}{c} \\right)</span>
655+
<span class="sd"> \boldsymbol{\Omega}_a = a_e \frac{q}{m}\left(</span>
656+
<span class="sd"> \boldsymbol{B} -</span>
657+
<span class="sd"> \frac{\gamma}{1+\gamma}\boldsymbol{\beta}</span>
658+
<span class="sd"> (\boldsymbol{\beta}\cdot\boldsymbol{B}) -</span>
659+
<span class="sd"> \boldsymbol{\beta} \times \frac{\boldsymbol{E}}{c} \right)</span>
660660

661661
<span class="sd"> Here, :math:`a_e` is the anomalous magnetic moment of the particle,</span>
662-
<span class="sd"> :math:`\\gamma` is the Lorentz factor of the particle,</span>
663-
<span class="sd"> :math:`\\boldsymbol{\\beta}=\\boldsymbol{v}/c` is the normalised velocity</span>
662+
<span class="sd"> :math:`\gamma` is the Lorentz factor of the particle,</span>
663+
<span class="sd"> :math:`\boldsymbol{\beta}=\boldsymbol{v}/c` is the normalised velocity</span>
664664

665665
<span class="sd"> The implementation of the push algorithm is detailed in</span>
666666
<span class="sd"> https://arxiv.org/abs/2303.16966.</span>

api_reference/lpa_utilities/laser.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ <h2>Compact function for a Gaussian pulse<a class="headerlink" href="#compact-fu
240240
<p>More precisely, the electric field <strong>near the focal plane</strong>
241241
is given by:</p>
242242
<div class="math notranslate nohighlight">
243-
\[\begin{split}E(\\boldsymbol{x},t) = a_0\\times E_0\,
244-
\exp\left( -\\frac{r^2}{w_0^2} - \\frac{(z-z_0-ct)^2}{c^2\\tau^2} \\right)
245-
\cos[ k_0( z - z_0 - ct ) - \phi_{cep} ]\end{split}\]</div>
246-
<p>where <span class="math notranslate nohighlight">\(k_0 = 2\pi/\\lambda_0\)</span> is the wavevector and where
243+
\[E(\boldsymbol{x},t) = a_0\times E_0\,
244+
\exp\left( -\frac{r^2}{w_0^2} - \frac{(z-z_0-ct)^2}{c^2\tau^2} \right)
245+
\cos[ k_0( z - z_0 - ct ) - \phi_{cep} ]\]</div>
246+
<p>where <span class="math notranslate nohighlight">\(k_0 = 2\pi/\lambda_0\)</span> is the wavevector and where
247247
<span class="math notranslate nohighlight">\(E_0 = m_e c^2 k_0 / q_e\)</span> is the field amplitude for <span class="math notranslate nohighlight">\(a_0=1\)</span>.</p>
248248
<div class="admonition note">
249249
<p class="admonition-title">Note</p>
@@ -264,15 +264,15 @@ <h2>Compact function for a Gaussian pulse<a class="headerlink" href="#compact-fu
264264
<li><p><strong>w0</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em>) – Laser waist at the focal plane, defined as <span class="math notranslate nohighlight">\(w_0\)</span> in the
265265
above formula.</p></li>
266266
<li><p><strong>ctau</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em>) – The duration of the laser (in the lab frame),
267-
defined as <span class="math notranslate nohighlight">\(c\\tau\)</span> in the above formula.</p></li>
267+
defined as <span class="math notranslate nohighlight">\(c\tau\)</span> in the above formula.</p></li>
268268
<li><p><strong>z0</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em>) – The initial position of the centroid of the laser
269269
(in the lab frame), defined as <span class="math notranslate nohighlight">\(z_0\)</span> in the above formula.</p></li>
270270
<li><p><strong>zf</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em><em>, </em><em>optional</em>) – The position of the focal plane (in the lab frame).
271271
If <code class="docutils literal notranslate"><span class="pre">zf</span></code> is not provided, the code assumes that <code class="docutils literal notranslate"><span class="pre">zf=z0</span></code>, i.e.
272272
that the laser pulse is at the focal plane initially.</p></li>
273273
<li><p><strong>theta_pol</strong> (<em>float</em><em> (</em><em>in radian</em><em>)</em><em>, </em><em>optional</em>) – The angle of polarization with respect to the x axis.</p></li>
274274
<li><p><strong>lambda0</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em><em>, </em><em>optional</em>) – The wavelength of the laser (in the lab frame), defined as
275-
<span class="math notranslate nohighlight">\(\\lambda_0\)</span> in the above formula.</p></li>
275+
<span class="math notranslate nohighlight">\(\lambda_0\)</span> in the above formula.</p></li>
276276
<li><p><strong>cep_phase</strong> (<em>float</em><em> (</em><em>in radian</em><em>)</em><em>, </em><em>optional</em>) – The Carrier Enveloppe Phase (CEP), defined as <span class="math notranslate nohighlight">\(\phi_{cep}\)</span>
277277
in the above formula (i.e. the phase of the laser
278278
oscillation, at the position where the laser enveloppe is maximum)</p></li>

api_reference/lpa_utilities/laser_profiles/donut_laguerre.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@ <h1>Donut-like Laguerre-Gauss profile<a class="headerlink" href="#donut-like-lag
104104
<dd><p>Define a linearly-polarized donut-like Laguerre-Gauss laser profile.</p>
105105
<p>Unlike the <a class="reference internal" href="laguerre.html#fbpic.lpa_utils.laser.LaguerreGaussLaser" title="fbpic.lpa_utils.laser.LaguerreGaussLaser"><code class="xref any py py-class docutils literal notranslate"><span class="pre">LaguerreGaussLaser</span></code></a> profile, this
106106
profile has a phase which depends on the azimuthal angle
107-
<span class="math notranslate nohighlight">\(\\theta\)</span> (cork-screw pattern), and an intensity profile which
108-
is independent on <span class="math notranslate nohighlight">\(\\theta\)</span> (donut-like).</p>
107+
<span class="math notranslate nohighlight">\(\theta\)</span> (cork-screw pattern), and an intensity profile which
108+
is independent on <span class="math notranslate nohighlight">\(\theta\)</span> (donut-like).</p>
109109
<p>More precisely, the electric field <strong>near the focal plane</strong>
110110
is given by:</p>
111111
<div class="math notranslate nohighlight">
112-
\[ \begin{align}\begin{aligned}\begin{split}E(\\boldsymbol{x},t) = a_0\\times E_0 \, f(r) \,
113-
\exp\left( -\\frac{r^2}{w_0^2} - \\frac{(z-z_0-ct)^2}{c^2\\tau^2}
114-
\\right) \cos[ k_0( z - z_0 - ct ) - m\\theta - \phi_{cep} ]\end{split}\\\begin{split}\mathrm{with} \qquad f(r) =
115-
\sqrt{\\frac{p!}{(|m|+p)!}}
116-
\\left( \\frac{\sqrt{2}r}{w_0} \\right)^{|m|}
117-
L^{|m|}_p\\left( \\frac{2 r^2}{w_0^2} \\right)\end{split}\end{aligned}\end{align} \]</div>
112+
\[ \begin{align}\begin{aligned}E(\boldsymbol{x},t) = a_0\times E_0 \, f(r) \,
113+
\exp\left( -\frac{r^2}{w_0^2} - \frac{(z-z_0-ct)^2}{c^2\tau^2}
114+
\right) \cos[ k_0( z - z_0 - ct ) - m\theta - \phi_{cep} ]\\\mathrm{with} \qquad f(r) =
115+
\sqrt{\frac{p!}{(|m|+p)!}}
116+
\left( \frac{\sqrt{2}r}{w_0} \right)^{|m|}
117+
L^{|m|}_p\left( \frac{2 r^2}{w_0^2} \right)\end{aligned}\end{align} \]</div>
118118
<p>where <span class="math notranslate nohighlight">\(L^m_p\)</span> is a Laguerre polynomial,
119-
<span class="math notranslate nohighlight">\(k_0 = 2\pi/\\lambda_0\)</span> is the wavevector and where
119+
<span class="math notranslate nohighlight">\(k_0 = 2\pi/\lambda_0\)</span> is the wavevector and where
120120
<span class="math notranslate nohighlight">\(E_0 = m_e c^2 k_0 / q_e\)</span>.</p>
121121
<p>(For more info, see
122122
<a class="reference external" href="https://www.osapublishing.org/books/bookshelf/lasers.cfm">Siegman, Lasers (1986)</a>,
@@ -142,23 +142,23 @@ <h1>Donut-like Laguerre-Gauss profile<a class="headerlink" href="#donut-like-lag
142142
<li><p><strong>p</strong> (<em>int</em>) – The order of the Laguerre polynomial. (Increasing <code class="docutils literal notranslate"><span class="pre">p</span></code> increases
143143
the number of “rings” in the radial intensity profile of the laser.)</p></li>
144144
<li><p><strong>m</strong> (<em>int</em><em> (</em><em>positive</em><em> or </em><em>negative</em><em>)</em>) – The azimuthal order of the pulse. The laser phase in a given
145-
transverse plane varies as <span class="math notranslate nohighlight">\(m \\theta\)</span>.</p></li>
145+
transverse plane varies as <span class="math notranslate nohighlight">\(m \theta\)</span>.</p></li>
146146
<li><p><strong>a0</strong> (<em>float</em><em> (</em><em>dimensionless</em><em>)</em>) – The amplitude of the pulse, defined so that the total
147147
energy of the pulse is the same as that of a Gaussian pulse
148-
with the same <span class="math notranslate nohighlight">\(a_0\)</span>, <span class="math notranslate nohighlight">\(w_0\)</span> and <span class="math notranslate nohighlight">\(\\tau\)</span>.
148+
with the same <span class="math notranslate nohighlight">\(a_0\)</span>, <span class="math notranslate nohighlight">\(w_0\)</span> and <span class="math notranslate nohighlight">\(\tau\)</span>.
149149
(i.e. The energy of the pulse is independent of <code class="docutils literal notranslate"><span class="pre">p</span></code> and <code class="docutils literal notranslate"><span class="pre">m</span></code>.)</p></li>
150150
<li><p><strong>waist</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em>) – Laser waist at the focal plane, defined as <span class="math notranslate nohighlight">\(w_0\)</span> in the
151151
above formula.</p></li>
152152
<li><p><strong>tau</strong> (<em>float</em><em> (</em><em>in second</em><em>)</em>) – The duration of the laser (in the lab frame),
153-
defined as <span class="math notranslate nohighlight">\(\\tau\)</span> in the above formula.</p></li>
153+
defined as <span class="math notranslate nohighlight">\(\tau\)</span> in the above formula.</p></li>
154154
<li><p><strong>z0</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em>) – The initial position of the centroid of the laser
155155
(in the lab frame), defined as <span class="math notranslate nohighlight">\(z_0\)</span> in the above formula.</p></li>
156156
<li><p><strong>zf</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em><em>, </em><em>optional</em>) – The position of the focal plane (in the lab frame).
157157
If <code class="docutils literal notranslate"><span class="pre">zf</span></code> is not provided, the code assumes that <code class="docutils literal notranslate"><span class="pre">zf=z0</span></code>, i.e.
158158
that the laser pulse is at the focal plane initially.</p></li>
159159
<li><p><strong>theta_pol</strong> (<em>float</em><em> (</em><em>in radian</em><em>)</em><em>, </em><em>optional</em>) – The angle of polarization with respect to the x axis.</p></li>
160160
<li><p><strong>lambda0</strong> (<em>float</em><em> (</em><em>in meter</em><em>)</em><em>, </em><em>optional</em>) – The wavelength of the laser (in the lab frame), defined as
161-
<span class="math notranslate nohighlight">\(\\lambda_0\)</span> in the above formula.
161+
<span class="math notranslate nohighlight">\(\lambda_0\)</span> in the above formula.
162162
Default: 0.8 microns (Ti:Sapph laser).</p></li>
163163
<li><p><strong>cep_phase</strong> (<em>float</em><em> (</em><em>in radian</em><em>)</em><em>, </em><em>optional</em>) – The Carrier Enveloppe Phase (CEP), defined as <span class="math notranslate nohighlight">\(\phi_{cep}\)</span>
164164
in the above formula (i.e. the phase of the laser

0 commit comments

Comments
 (0)