Skip to content

Latest commit

 

History

History
99 lines (62 loc) · 4.65 KB

examples.rst

File metadata and controls

99 lines (62 loc) · 4.65 KB

Examples

This section allows you to download input files that correspond to different physical situations.

We provide two kinds of inputs:

For a complete list of all example input files, have a look at our Examples/ directory. It contains folders and subfolders with self-describing names that you can try. All these input files are automatically tested, so they should always be up-to-date.

Beam-driven electron acceleration

AMReX inputs:

PICMI:

Laser-driven electron acceleration

AMReX inputs:

PICMI files:

Plasma mirror

:download:`2D case <../../../Examples/Physics_applications/plasma_mirror/inputs_2d>`

Laser-ion acceleration

:download:`2D case <../../../Examples/Physics_applications/laser_ion/inputs>`

Note

The resolution of this 2D case is extremely low by default. You will need a computing cluster for adequate resolution of the target density, see comments in the input file.

Uniform plasma

:download:`2D case <../../../Examples/Physics_applications/uniform_plasma/inputs_2d>` :download:`3D case <../../../Examples/Physics_applications/uniform_plasma/inputs_3d>`

Capacitive discharge

The Monte-Carlo collision (MCC) model can be used to simulate capacitive discharges between parallel plates. The implementation has been tested against the benchmark results from Turner et. al. in Phys. Plasmas 20, 013507, 2013. The figure below shows a comparison of the ion density as calculated in WarpX (in June 2021) compared to the literature results (which can be found here). An input file with parameters for the 1st case is given below except the total simulation steps have been reduced.

MCC benchmark against Turner et. al. (2013).

Note

This example needs additional calibration data for cross sections. Download this data alongside your inputs file and update the paths in the inputs file:

git clone https://github.com/ECP-WarpX/warpx-data.git

Test cases

PICMI test cases included that can be used as a reference:

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.