Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Jun 9, 2021
1 parent 0f120b3 commit 2af701c
Show file tree
Hide file tree
Showing 121 changed files with 3,709 additions and 21,552 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@
# Numerics parameters
# -------------------

# --- geometry and solver
em_solver_method = 'CKC'
geometry = '3D'
# Note that code-specific changes can be introduced with `picmi.codename`
if picmi.codename == 'fbpic':
em_solver_method = 'PSATD'
geometry = 'RZ'

# --- Nb time steps
max_steps = 1000

Expand Down Expand Up @@ -148,7 +140,7 @@
lower_boundary_conditions = [ None, 'open'],
upper_boundary_conditions = ['reflective', 'open'],
n_azimuthal_modes = 2,
moving_window_velocity = moving_window_velocity,
moving_window_zvelocity = moving_window_velocity[-1],
warpx_max_grid_size = 32)

smoother = picmi.BinomialSmoother( n_pass = 1,
Expand All @@ -160,14 +152,16 @@

# Diagnostics
# -----------
field_diag = picmi.FieldDiagnostic(grid = grid,
period = 100,
warpx_plot_raw_fields = 1,
warpx_plot_raw_fields_guards = 1,
warpx_plot_finepatch = 1,
warpx_plot_crsepatch = 1)
part_diag = picmi.ParticleDiagnostic(period = 100,
species = [beam])
field_diag = picmi.FieldDiagnostic(name = 'diag1',
grid = grid,
period = 100,
warpx_plot_raw_fields = 1,
warpx_plot_raw_fields_guards = 1,
warpx_plot_finepatch = 1,
warpx_plot_crsepatch = 1)
part_diag = picmi.ParticleDiagnostic(name = 'diag1',
period = 100,
species = [beam])

# Simulation setup
# -----------------
Expand All @@ -193,9 +187,9 @@
n_macroparticles = 10**5,
seed = 0)
initialize_self_field = True
if picmi.codename != 'warpx':
if picmi.codename == 'warpx':
initialize_self_field = False
sim.add_species(species=beam, layout=beam_layout,
sim.add_species(species=beam, layout=beam_layout,
initialize_self_field=initialize_self_field)

# Add the diagnostics
Expand Down
14 changes: 8 additions & 6 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@


<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/language_data.js"></script>
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/language_data.js"></script>
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>

<script type="text/javascript" src="../_static/js/theme.js"></script>

Expand Down Expand Up @@ -143,7 +143,9 @@
<div itemprop="articleBody">

<h1>All modules for which code is available</h1>
<ul><li><a href="picmistandard/fields.html">picmistandard.fields</a></li>
<ul><li><a href="picmistandard/applied_fields.html">picmistandard.applied_fields</a></li>
<li><a href="picmistandard/diagnostics.html">picmistandard.diagnostics</a></li>
<li><a href="picmistandard/fields.html">picmistandard.fields</a></li>
<li><a href="picmistandard/lasers.html">picmistandard.lasers</a></li>
<li><a href="picmistandard/particles.html">picmistandard.particles</a></li>
<li><a href="picmistandard/simulation.html">picmistandard.simulation</a></li>
Expand Down
308 changes: 308 additions & 0 deletions _modules/picmistandard/applied_fields.html

Large diffs are not rendered by default.

407 changes: 407 additions & 0 deletions _modules/picmistandard/diagnostics.html

Large diffs are not rendered by default.

176 changes: 102 additions & 74 deletions _modules/picmistandard/fields.html

Large diffs are not rendered by default.

101 changes: 87 additions & 14 deletions _modules/picmistandard/lasers.html

Large diffs are not rendered by default.

43 changes: 22 additions & 21 deletions _modules/picmistandard/particles.html

Large diffs are not rendered by default.

99 changes: 76 additions & 23 deletions _modules/picmistandard/simulation.html

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions _sources/standard/applied_field.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Applied Field descriptions
=============

.. warning::

This section is currently in development.

Constant fields
---------------

.. autoclass:: picmistandard.PICMI_ConstantAppliedField

Analytic fields
---------------

.. autoclass:: picmistandard.PICMI_AnalyticAppliedField

Refecting mirrors
-----------------

.. autoclass:: picmistandard.PICMI_Mirror

24 changes: 24 additions & 0 deletions _sources/standard/diagnostics.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Diagnostics
===========

.. warning::

This section is currently in development.

Standard PIC diagnostics
------------------------

.. autoclass:: picmistandard.PICMI_ParticleDiagnostic

.. autoclass:: picmistandard.PICMI_FieldDiagnostic

.. autoclass:: picmistandard.PICMI_ElectrostaticFieldDiagnostic

Lab-frame diagnostics
---------------------

These diagnostics are used when running boosted-frame simulations.

.. autoclass:: picmistandard.PICMI_LabFrameParticleDiagnostic

.. autoclass:: picmistandard.PICMI_LabFrameFieldDiagnostic
2 changes: 2 additions & 0 deletions _sources/standard/laser_profiles.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ Laser profiles
This section is currently in development.

.. autoclass:: picmistandard.PICMI_GaussianLaser

.. autoclass:: picmistandard.PICMI_AnalyticLaser
2 changes: 2 additions & 0 deletions _sources/standard/standard.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Simulation and grid setup
field
grid
constants
applied_field
diagnostics

Particles
---------
Expand Down
Loading

0 comments on commit 2af701c

Please sign in to comment.