Skip to content

Commit

Permalink
more dark theming
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Perez committed Feb 9, 2024
1 parent f152f64 commit 4c8d551
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
14 changes: 7 additions & 7 deletions doc/Sphinx/Overview/highlights.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Following is a comparison of the accelerated electron spectra at the end of thes
In the green line it is shown the result of the previously known averaged ionization model. Without the longitudinal
momentum initialization, few electrons obtained through ionization are trapped and accelerated in the plasma wave.
The red line shows the result with the new averaged ionization model implemented in :program:`Smilei`, which accurately reproduces
the spectrum obtained with the simulation without an envelope model (blue line).
the spectrum obtained with the *standard laser* simulation without an envelope model.


The envelope simulation required an amount of computing resources orders of magnitude smaller than those required by the simulation without a
Expand Down Expand Up @@ -145,7 +145,7 @@ an amount of resources greater by at least an order of magnitude.

The laser (in red) propagates through a low density plasma and drives a nonlinear Langmuir wave (in blue) that
propagates at a velocity close to that of light in its wake. In this simulation, a moving window is used
so we can follow the laser as it propagates through the plasma. We see electrons (in white) being self-injected
so we can follow the laser as it propagates through the plasma. We see electrons being self-injected
in this wakefield where they see a strong electric field that accelerates them up to ultra-relativistic (GeV) energy level.

An animation generated from the simulation data can be found `here <https://www.youtube.com/watch?v=-LX_yT29nAU>`_
Expand Down Expand Up @@ -230,7 +230,7 @@ shows how this balancing reduces the time of the simulation.
:align: center

The red curve is the best situation obtained in the previous section, while
the black curve corresponds to the DLB algorithm enabled.
the curves with dynamic load balancing are indicated as *DLB*.

The portion of the box belonging to each MPI process varies when the load balancing
occurs. The following figure shows how each of these portions evolve with time.
Expand All @@ -239,7 +239,7 @@ occurs. The following figure shows how each of these portions evolve with time.

The four panels correspond to four timesteps during the simulation.
The colorscale represents the log-scaled load of each patch.
The black lines show the borders of each MPI process' portion of the box.
The lines show the borders of each MPI process' portion of the box.
The MPI processes that are close to the hotspot tend to handle a smaller portion
of the box.

Expand All @@ -266,7 +266,7 @@ with a total of :math:`\sim 1.4` billion quasi-particles in the box.
The following figure (top panel) shows half of the simulation box in the
y-direction, and the laser field is reported at three different times.
The reflected laser pulse (at time :math:`t_2`) shows a different spectral content than
the incident pulse (at time :math:`t_0`). The plasma electron density is shown in black.
the incident pulse (at time :math:`t_0`).
A close-up view of the interaction region is given in the bottom panel, illustrating
the electron bunches being pulled out from the plasma surface.

Expand Down Expand Up @@ -317,8 +317,8 @@ A 2-dimensional simulation, in conditions close to actual experiments, ran
on a box size of 1024 µm x 512 µm for 10 ps
with 25 billion quasi-particles. The following figure shows the evolution
of the pump and seed intensities in the head-on collision at three different times.
The blue-yellow maps correspond to the plasma density while the white-red maps
correspond to the lasers intensity.
Surfaces corresponding to the laser intensity are overlaid on top of surfaces
corresponding to the plasma density.

.. image:: /_static/pump_seed.jpg
:align: center
Expand Down
Binary file modified doc/Sphinx/_static/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/Sphinx/_static/PWFA.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 15 additions & 5 deletions doc/Sphinx/smilei_theme/static/smilei_theme.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
--header_color : {{ theme_header_color }};
--header_pushed: {{ theme_header_pushed }};
--header_text : {{ theme_header_text }};
--nav_bg : {{ theme_nav_bg }};

--alt-bg: #181818;
}
Expand All @@ -61,8 +62,17 @@
--header_color : {{ theme_dark_header_color }};
--header_pushed: {{ theme_dark_header_pushed }};
--header_text : {{ theme_dark_header_text }};
--nav_bg : {{ theme_dark_nav_bg }};

--alt-bg: #ccc;

.highlight span {
filter: saturate(1.5) brightness(1.3);
}

section img {
filter: invert(77%) hue-rotate(0.5turn) saturate(1.3) contrast(1.51);
}
}

body {
Expand Down Expand Up @@ -438,7 +448,7 @@ li.toctree-l1 > ul {
}

pre {
background: {{ theme_pre_bg }};
background: rgba(120,120,120,0.15);
padding: 7px 1em;
margin: 15px 0px;
line-height: 1.3em;
Expand All @@ -449,13 +459,13 @@ div.highlight > pre {
}

code {
background-color: {{ theme_pre_bg }};
background-color: rgba(160,160,160,0.2);
color: {{ theme_body_text }}; color: var(--text)
word-break: break-word;
}

code.xref {
background-color: {{ theme_pre_bg }};
background-color: rgba(160,160,160,0.2);
border-bottom: 1px solid transparent;
}

Expand Down Expand Up @@ -571,7 +581,7 @@ div.header > * {
right:0;
cursor:pointer;
text-align: center;
background-color: {{ theme_pale_text }}; background-color: var(--pale_text);
background-color: {{ theme_nav_bg }}; background-color: var(--nav_bg);
color: {{ theme_body_text }}; color: var(--text);
margin-right:12px;
padding:0.2em 1em;
Expand All @@ -589,7 +599,7 @@ div.header > * {
}
#nav_list {
display:none;
background-color: {{ theme_pale_text }}; background-color: var(--pale_text);
background-color: {{ theme_nav_bg }}; background-color: var(--nav_bg);
position: relative;
border-left: 2px solid rgba(128,128,128,0.6);
border-right: 2px solid rgba(128,128,128,0.6);
Expand Down
8 changes: 4 additions & 4 deletions doc/Sphinx/smilei_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ pale_text = #EAF4FD
header_color = #0672BA
header_pushed = #409ddb
header_text = white
nav_bg = #eee

dark_main_color_bold = #0672BA
dark_main_color_med = #409ddb
dark_main_color_pale = #26313A
dark_keyword_color = #05baa8
dark_body_text = #ccc
dark_bold_text = #C5DCEA
dark_bold_text = #7ECDFF
dark_pale_text = #26313A
dark_header_color = #26313A
dark_header_color = #003765
dark_header_pushed = #0672BA
dark_header_text = #C5DCEA
dark_nav_bg = #252525

footer_text = #777

Expand All @@ -49,8 +51,6 @@ warn_border = rgba(123,123,123,0.2)
footnote_bg = rgba(123,123,123,0.2)
footnote_border = rgba(123,123,123,0.2)

pre_bg = rgba(123,123,123,0.3)

code_font_size = 0.9em
code_font_family = 'Consolas', "BPmonoRound", 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace
font_family = tahoma, sans-serif
Expand Down

0 comments on commit 4c8d551

Please sign in to comment.