Tutorials
Jupyter notebooks in this section are executed when the documentation is built. Download a notebook from its page to run it yourself.
- A global model in five steps: an argon discharge, its balances and the closed form of the textbook model.
- Sources and gas heating: external volume sources such as a beam’s, and the gas temperature as a balance.
- 1D boundaries:
Fluid1Dwith ions with momentum, the kinetic wall and an outflow. - OpenCR reaction sets: hydrogen’s effective rates from collisional-radiative models (
carafe.cr). - Beam neutralizer: a beam’s charge states and the plasma it makes.
- RF driver: from the 0D driver to the inductive field in r–z and a 2D fluid.
- 3D inductive field: the field on the edges of a 3D grid, checked on a solenoid.
- Spoke model: the 2D drift fluid of a magnetron and
spoke_report. - MHD on patches: ideal MHD on a patchwork hierarchy: the Orszag–Tang vortex, the order on an Alfvén wave and a loop across a refined patch.
- MHD test problems: the rotor, the magnetized blast wave and the energy budget of the Orszag–Tang vortex.

3D inductive field
InductiveField3D solves the time-harmonic magnetoquasistatic field of coils and conductors in 3D, on the edges of a Cartesian grid (EdgeGrid), for geometries without a symmetry, such as several…

1D boundaries
Fluid1D resolves a plasma along one dimension: drift-diffusion of every species, the electron energy and Poisson's equation, all implicit. This tutorial looks at its boundaries and at ions with…
Global model
A global model balances, averaged over a chamber, the density of every species and the electron energy. This tutorial builds the simplest one, an argon discharge with one ion species, checks it…
- Loading figure…
MHD on patches
MHD2D solves ideal MHD in the plane, with all three components of the velocity and the magnetic field, on the patches of a patchwork hierarchy. The model has no grid of its own: a uniform grid is a…
- Loading figure…
MHD test problems
Three classic benchmarks of ideal MHD with MHD2D, each showing another side of a magnetized flow: the rotor (torsional Alfvén waves), the magnetized blast wave (strong, anisotropic shocks at low…

Beam neutralizer
A fast beam of negative ions crosses a channel of gas. On the gas, and on the plasma it makes itself, it changes charge state (-, 0, +); in turn every charge change and every ionization of the gas…

OpenCR reaction sets
OpenCR derives effective rate coefficients of hydrogen from collisional-radiative models with resolved excited states. carafe.cr turns them into Reaction objects for the global and fluid models, in…

RF driver
The chain of RF driver models, from 0D to a 2D fluid, on one driver: the BUG driver of illustrativehydrogendriver (hydrogen at 0.3 Pa, 1 MHz), here as an infinitely long solenoid around a plasma…

Sources and gas heating
Two extensions of the global model of the first tutorial: external volume sources (VolumeSource), such as the electrons and ions a fast beam makes, and the gas temperature as a balance of heating by…

Spoke model
DriftFluid2D is a drift fluid in the plane of a magnetron discharge: x from the cathode to the anode across the magnetic field, y azimuthal and periodic. Electrons drift in E \times B and diffuse,…
Nothing matches.