Skip to content

Commit

Permalink
added superLU solver example to docs (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Nov 16, 2021
1 parent d4eaa37 commit 6ab9adb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Docs/source/usage/examples.rst
Expand Up @@ -90,3 +90,10 @@ PICMI test cases included that can be used as a reference:
* :download:`Langmuir plasma wave test in 3d <../../../Examples//Tests/Langmuir/PICMI_inputs_langmuir_rt.py>`
* :download:`Langmuir plasma wave test in RZ <../../../Examples//Tests/Langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py>`
* :download:`Langmuir plasma wave test in 2D <../../../Examples//Tests/Langmuir/PICMI_inputs_langmuir2d.py>`

Manipulating fields via Python
------------------------------

An example of using Python to access the simulation charge density, solve the Poisson equation (using ``superLU``) and write the resulting electrostatic potential back to the simulation is given in the input file below. This example uses the ``fields.py`` module included in the ``pywarpx`` library.

* :download:`Direct Poisson solver example <../../../Examples/Physics_applications/capacitive_discharge/PICMI_inputs_2d.py>`

0 comments on commit 6ab9adb

Please sign in to comment.