Kinetic background

CanonicalMaxwellian2D

Canonical Maxwellian distribution function in

coordinates. Uses caching for evaluation of the canonical toroidal momentum in these coordinates.

The distribution is parameterized by the density and thermal speed as functions of the canonical toroidal momentum :

  • Energy

  • Magnetic moment

where is the poloidal magnetic flux function, is the poloidal current function and is the Heaviside function.

With the three constants of motion, a canonical Maxwellian distribution function is defined as

Phase space

Velocity dimension
2
Velocity coordinates
vpara_mu
Axes
v∥ · μ
Volume form
yes — includes the velocity Jacobian

Velocity-space distribution

f₀ over (v∥, μ), at logical position η = (0.5, 0.5, 0.5).

f₀(v∥, μ)v∥–μ · 1.67e-10 to 7.93e-1
v∥
-5 to 5
μ
0 to 5

Reduced profiles

The distribution along each velocity axis, with every other phase-space axis integrated out.

v∥-5 to 5 · peak 3.98e-1
μ0 to 5 · peak 2.00e+0

Parameters

Constructor defaults. Moments are given as a background value (a float or a callable) paired with an optional perturbation. This class cannot be built from defaults alone; the catalogue constructs it with equil.

ParameterDefaultPerturbationDescription
n1NoneMoments of the canonical Maxwellian as tuples. The first entry defines the background (float for constant background or callable), the second entry defines a Perturbation (can be None).
u_para0None—
u_perp0None—
vth_para1None—
vth_perp1None—
volume_formtrue—If ``True``, represent the distribution as a volume form and include the appropriate velocity-space Jacobian when evaluating it.
B0absB0——
uniform_on_discfalse——
vth1NoneThermal-speed background and optional perturbation.
equilAdhocTorus—Fluid equilibrium used to evaluate background profiles in the magnetic geometry.
epsilon1——
cache_sizenull—Number of rows in the cache buffer for :math:`\psi_c` evaluation. If ``None``, no caching is used. Must be able to accomodate all markers on the current process.