Representation and modeling of charged particle distributions in tokamaks
Abstract
Experimental diagnostics, analysis tools and simulations represent particle distributions in various forms and coordinates. Algorithms to manage these data are needed on platforms like the ITER Integrated Modelling & Analysis Suite (IMAS), performing tasks such as archiving, modeling, conversion and visualization. A method that accomplishes some of the required tasks for distributions of charged particles with arbitrarily large magnetic drifts in axisymmetric tokamak geometry is described here. Given a magnetic configuration, we first construct a database of guiding center orbits, which serves as a basis for representing particle distributions. The orbit database contains the geometric information needed to perform conversions between arbitrary coordinates, modeling tasks, and resonance analyses. Using that database, an imported or newly modeled distribution is mapped to an exact equilibrium, where the dimensionality is reduced to three constants of motion (CoM). The orbit weight is uniquely given when the input is a true distribution: one that measures the number of physical particles per unit of phase space volume. Less ideal inputs, such as distributions estimated without drifts, or models of particle sources, can also be processed. As an application example, we reconstruct the drift-induced features of a distribution of fusion-born alpha particles in a large tokamak, given only a birth profile, which is not a function of the alpha’s CoM. Repeated back-and-forth transformations between CoM space and energy-pitch-cylinder coordinates are performed for verification and as a proof of principle for IMAS.
1 Introduction and workflow
1.1 Motivation, purpose and scope
The ITER Integrated Modelling & Analysis Suite (IMAS) PinchesFEC18 offers various ways to store particle distributions for the study of magnetically confined fusion plasmas. Different representations include different choices of coordinates and different discretization methods (mesh grids or marker particles). The Energetic Particle Topical Group of the International Tokamak Physics Activity (ITPA) is currently driving an action to equip IMAS with tools to model and convert distributions of fast particles between different representations that arise in experimental and computational work.
In experimental work, the observed position space of an energetic particle diagnostic is often given by the line-of-sight of the diagnostic in cylinder coordinates , where is the major radius, the height and the toroidal angle. In tokamaks, is often an ignorable symmetry coordinate. For many diagnostics, the observed velocity-space is given by weight functions that are derived from energy and momentum conservation Salewski15 ; Salewski16 ; Salewski18a ; Salewski19 . The diagnostic weights are often expressed as functions of kinetic energy and velocity pitch , where is the magnitude of the velocity vector , its component parallel to the magnetic field vector , and the particle mass. Diagnosticians hence have a good understanding of the observation regions of diagnostics in phase space . Synthetic diagnostics calculating expected measurements based on numerical simulations are usually based on such representations of local velocity distributions.
Given the uncertainties of experimental measurements, no distinction is usually made between the gyro-averaged distribution of physical particles and the distribution of their guiding centers (GC), at least in the plasma core. The modeling of distribution functions is therefore often limited to GC statistics (except near the wall where the geometry of gyro-orbits matters for the interpretation of loss diagnostics and for the estimation of heat loads on plasma-facing hardware).
If one assumes that the plasma is not only toroidally symmetric but also quiescent, the distribution functions of confined charged particles and their GCs can be taken to depend only on three constants of motion (CoM). Analyses of resonant instabilities are usually performed with respect to such an equilibrated reference state, where the orbit time , gyrophase and toroidal angle are ignorable symmetry coordinates. The respective conserved actions — namely, the kinetic energy , magnetic moment , and canonical toroidal angular momentum — combined with an index specifying the sign of on passing orbits, constitute a natural set of CoM coordinates that is common in theoretical analyses, although other useful (and equivalent) sets of CoM exist. Recently, an experimental measurement of a fast ion distribution function in three-dimensional (3-D) CoM space was demonstrated for fast-ion D- spectroscopy Stagner22 . Efforts are underway to apply this orbit tomography method StagnerPhdThesis to other fast-ion diagnostics Jaerleblad21 .
In order to make predictions of a measurement based on a stability calculation or carry out stability analyses based on measured data, we must be able to transform distribution functions between 3-D CoM space and 4-D representations given in various coordinates as illustrated in Fig. 1. Related problems have been tackled to various degrees by different research groups with different codes and methods. For instance, TRANSP/NUBEAM BreslauTRANSP17 and LIGKA/HAGIS LauberFEC20 employ binning and smoothing techniques to map distributions represented by marker particles onto a mesh and compute their gradients in CoM space. While TRANSP/NUBEAM uses Monte-Carlo sampling, LIGKA/HAGIS uses a database of GC orbits for all particle species. Related activities were reported by the ASCOT TholerusASCOT17 and MEGA BierwageVSTART12 groups. These methods have been used for many years, but detailed documentations are rarely published. The above references BreslauTRANSP17 ; LauberFEC20 ; TholerusASCOT17 ; BierwageVSTART12 all point to presentations given at technical meetings. Useful elements can be found in many papers, but it is necessary to assemble that information into a complete goal-oriented workflow.

Thus motivated, this paper documents the workflow used in our computer code VisualStart BierwageVSTART12 ; Bierwage12a . Since 2009, we have used this code to initialize hybrid simulations with modeled or numerically computed beam ion distributions Bierwage13a ; Bierwage14a ; Bierwage17a ; Bierwage18 and to analyze their resonant interactions with Alfvén waves Bierwage14b ; Bierwage16a ; Bierwage16b . VisualStart represents GC distributions using marker particles, which can be directly used in full- simulations111For instance, see Fig. 3 in Ref. Bierwage13a , and Fig. 4 in Ref. Bierwage14a for fast ion tails, and Fig. 4 in Ref. Bierwage17a for a birth distribution. and yield a quiet start Bierwage12a . The representation in CoM space with an underlying GC orbit database will also allow us to directly embed the distribution functions in general phase-space transport theories Zonca15b ; Chen16 ; Falessi19 ; Zonca21 , both formally and technically.
Here we propose the orbit-based representation and modeling technique as a solution for ITER IMAS and other platforms that need to store and process distributions of charged particles in magnetically confined plasmas. The subject of smoothing is discussed briefly in the following section, but the documentation and verification of smoothing algorithms is left for future work, as is the associated problem of initializing delta- simulations that require the evaluation of gradients. We note that a similar and in many ways complementary effort has been undertaken by S. Benjamin et al. BenjaminBachelorThesis .
1.2 Basic rules for practical situations
The theoretical foundations for transforming distribution functions are relatively straightforward, but it is also clear that compromises and creativity are needed when tackling real-world data with numerical techniques, where accuracy has to be traded for computational performance and where data may have varying degrees of quality and completeness. For instance, the singularities and topological boundaries of CoM space Rome79 require attention when cutting a mesh to define phase space volume elements. Experimentally measured distributions and numerically computed distributions are often incomplete and noisy, so some amount of modeling is needed, including smoothing, interpolation and extrapolation.
In view of these challenges, some basic rules should be followed in order to maintain the physical and numerical integrity of the data, independently of the particular workflow used to process distribution functions:
-
(i)
Smoothing, interpolation and extrapolation are best applied at the preparation stage, where a new distribution function is first constructed or imported. Such potentially irreversible manipulations should be minimized in all subsequent operations.
-
(ii)
Pay attention to the fact that, in toroidal geometry, resolution and noise levels inevitably vary in space and in time, because the mirror force and magnetic drifts cause GCs to be distributed nonuniformly along their orbits. In particular:
-
•
Inherent topological discontinuities and singularities, as found in CoM space, should be preserved; e.g., through mesh accumulation and by smoothing only around, not across trapped-passing boundaries and loss cones.
-
•
The optimal representation method (maximizing accuracy) may differ between archiving a distribution function and using it in a simulation. While archiving merely requires adequate resolution, simulations should also minimize signal-noise correlations Bierwage12a .
These issues are most pronounced in but not limited to cases with large magnetic drifts.
-
•
-
(iii)
Ensure that the distribution to be transformed is an exact equilibrium in the given magnetic configuration; i.e., its shape must not vary in time when evolved using unperturbed equations of motion.
The equilibrium constraint (iii) is crucial, so it deserves further explanation: Any distribution function can be mapped to CoM space, where the result measures the time-averaged particle densities on unperturbed GC orbits. This operation is indicated by a blue arrow in Fig. 1. However, when the original is not an equilibrium, this mapping operation is time-dependent and it is impractical to store the information needed to invert it. The equilibrium constraint reduces the effective dimensionality to three CoM by determining the longitudinal distribution of GCs along their orbit, which is now time-independent and with it all coordinate transformations as well. The coordinate transformations can then be readily performed in any direction, as indicated by a red double arrow in Fig. 1.
Nonequilibrium distributions are very likely to be encountered in IMAS, where one can expect to receive particle data from a measurement for which the magnetohydrodynamic (MHD) equilibrium is not exactly known or from a simulation where waves or magnetic islands were present. Enforcing the equilibrium constraint means that the input data are transformed into a distribution that is consistent with a modeled magnetic configuration, which generally differs somewhat from the conditions where the input data originated from.

1.3 Orbit-based representation and modeling
The above considerations suggest that it is useful and advantageous to represent distribution functions in CoM space with an underlying database of unperturbed GC orbits. With that geometric information, it is straightforward to reconstruct a 4-D distribution in arbitrary coordinates by loading a suitable number of markers uniformly in time along each GC orbit Bierwage12a . Projections to various coordinates and views of user-defined sub-spaces with user-defined resolution can then be readily obtained by binning the markers on demand. This minimizes the amount of transformations and associated data corruption, as demanded in items (i) and (ii) above. Marker particles are a natural choice for representing fast particle distributions since the latter are often computed using particle codes. Moreover, by organizing the markers on orbit contours, one can identify and deal with inherent singularities and discontinuities as required in item (ii). Last but not least, by representing a distribution function in CoM orbit space, the equilibrium constraint (iii) is automatically enforced.
We note that the implementation and enforcement of the equilibrium constraint only requires a conversion to CoM coordinates: . The Jacobians required for such transformations can be determined using the Monte-Carlo method as implemented in TRANSP/NUBEAM by Breslau & Liu BreslauTRANSP17 . In this way, it is possible to avoid integration along GC orbits.
However, the computational cost associated with building an orbit database is more than repaid by the information one gains about the shape of the orbits, the longitudinal particle distribution, and the transit times. The transit times are needed for resonance analyses and their variation near trapped-passing boundaries can be used for mesh accumulation. The information about the orbit geometry is also useful for reduced models, for instance to capture finite-orbit-width effects Lauber18 , and it allows to define and make use of a variety of specialized GC coordinates, like the radii where an orbit crosses the midplane. Last but not least, the information contained in the orbit database is also valuable for carrying out modeling tasks, such as the following example:
Given a model function that may not be an exact solution of a kinetic equation for the GCs of physical particles, we wish to construct an equilibrium GC orbit distribution . A common example are models of the form that contain measured radial profiles as functions of flux and a velocity distribution computed by a bounce-averaged Fokker-Planck code. In such a case, the orbit database allows to incorporate the effect of magnetic drifts a posteriori Bierwage17c . There are, of course, various possibilities to perform this operation; in other words, there is some freedom to interpret the values of as weights in an orbit distribution .222Functions such as described in this example will here be called “quasi-distributions”, because they do not measure the true number of objects of interest (here GCs) in a volume element but require more elaborate transformations than a mere conversion of coordinates. See Section 2.An intuitive and physically meaningful choice is to perform an orbit-time average followed by a suitable normalization: .
1.4 Workflow
The workflow described in this paper is shown schematically in Fig. 2 and consists of five steps:
-
•
Step 1: Define an axisymmetric magnetic field ; e.g., using a dedicated MHD equilibrium code.
-
•
Step 2: Define samples in 3-D CoM orbit space, with cell indices . The blue and red workflow branches in Fig. 2 begin with different inputs:
-
(blue)
Import marker particles from another code as in earlier works Bierwage14a ; Bierwage17a ; Bierwage18 . The weights of the imported samples are reinterpreted as orbit weights: .
-
(red)
Use a meshing algorithm to divide the CoM space into cells of size . This path is described in detail in this paper.
-
(blue)
-
•
Step 3: Integrate along GC orbits starting from the samples defined in Step 2. Store in a database.
-
•
Step 4: Represent an equilibrium distribution function using weighted markers loaded on the orbits in the database. When loading markers uniformly in time, their weight is an ’s fraction of the orbit weight: . In the case of the red workflow in Fig. 2, is the product of the volume element and the desired phase space density function . The latter may be imported or constructed from a model.
-
•
Step 5: Visualize and verify. Iterate if necessary; e.g., changing the resolution in CoM space (Step 2), the number of markers on the orbits, or the weight assignment (Step 4). Export when ready.
Note that MHD wave spectra can be obtained from the data available in Step 1, and resonance maps can be computed from the orbit database built in Step 3. Procedures for smoothing the distribution, computing phase space gradients and analyzing the stability of resonant modes remain to be added in or around Step 5.
1.5 Outline
Clear definitions of symbols and terminology are a prerequisite for successful conversion operations. Thus, we begin our treatise in Section 2 with a discussion of different classes of distributions functions and how they are transformed. Step 1 of our workflow is part of Section 3, where we describe the tokamak plasma that serves as a working example, define coordinates and normalizations. Step 2, the construction of a phase space mesh, is covered in Section 4, where we also discuss orbit classes and the phase space topology in our scenario. The GC equations of motion we solve to construct the orbit database in Step 3 are given in Section 5, and the formula for the orbit volume elements is derived in Section 6. Steps 4 & 5 are covered in Sections 7 and 8, where we construct a distribution function from a model, visualize and analyze the result, and verify the integrity and accuracy of our scheme by transforming back and forth between two different representations. Modeling is a rich subject on its own, and our example is only meant to highlight the utility of an orbit database and to serve as a proof-of-principle for IMAS applications. The Appendices contain supplementary information on binning procedures and numerical accuracy.
2 Classes of distributions and transformations
There are not only different coordinates and different numerical representations of distributions; the latter also come in different types whose identity must be clearly defined since it determines how they are transformed. Here, we distinguish between three types of distributions: (i) density functions, (ii) histograms, and (iii) quasi-distributions.
The first two can be characterized as follows:
-
(i)
The symbols represent phase space densities, which have units of and whose values are independent of the coordinates appearing in the argument, so . The argument merely specifies the representation space. The same is true for velocity and volume integrals:
(1a) (1b) -
(ii)
The symbols represent histograms, which have the units of the inverse volume element of the coordinates used for “binning” (counting the objects of interest). Histograms are convenient to construct and integrate since no Jacobian is required (except for coordinate conversions).
The phase space density function is related to histogram functions , , etc., as
(2) |
where is the Jacobian for the transformation from Cartesian coordinates to another arbitrary set of phase space coordinates .
A phase space density function is an exact solution of a kinetic equation for the objects of interest; in our case, guiding centers (GC). In this work, we assume that all GC coordinates are defined such that they preserve the form of the kinetic equation
(3) | ||||
(4) |
This is the case when the Jacobian for the transformation from Cartesian to GC coordinates satisfies the phase space conservation law
(5) |
Equation (5) is trivially satisfied for canonical coordinates, since their volume elements differ only by a constant factor, so . All our CoM coordinates — namely, and any equivalent set of GC orbit coordinates, such as — are, by definition, conserved by the GC equations of motion that we solve. This means that, even when the equations of motion are not written in Hamiltonian form, our orbit coordinates combined with the triplet of ignorable angle variables — orbit time, gyrophase, toroidal angle — can be considered to be canonical coordinates, whose Jacobians are constants satisfying Eq. (5) down to the numerical accuracy of our particle-pushing algorithm.
A well-known set of noncanonical GC coordinates is , whose volume elements transform as
(6) |
The Jacobian factor satisfies Eq. (5) as shown by Littlejohn Littlejohn83 . Equation (6) is very useful, because it can be easily converted to other velocity coordinates that are defined locally in position space — such as the pitches and — since their Jacobian factors can be derived analytically (A) Moseev19 .
Both (i) densities and (ii) histograms are true distributions in the sense that, when integrated over a phase space volume element ,
(7) |
they yield the true number of objects contained inside that volume element. Functions or data that do not satisfy this condition for the specified kind of objects constitute the third type in our classification scheme:
-
(iii)
The symbol represents quasi-distributions, which do not yield the true number of objects by mere volume integration in the configuration at hand, but require more complex transformations.
Quasi-distributions often arise in experimental or modeling work. A typical example in experimental measurements is the line-of-sight density, where the transformation takes the form of an inverse problem.
In fact, since the magnetic configuration in an experiment is rarely known accurately, any experimentally measured particle statistics should be treated as quasi-distributions when used as input for modeling distributions in a numerically constructed MHD equilibrium. Conversely, it should be kept in mind that the spatial distribution of GCs differs from that of physical particles since the latter is broadened by gyration around the GCs. This means that, strictly speaking, the GC distributions that we deal with in this work constitute quasi-distributions from the viewpoint of physical particles. Even if our GC phase space density function is normalized to give the correct number of physical particles in the entire plasma volume, , the values of and given by Eq. (7) for an arbitrary subvolume may differ in the case of fast ions with a steep density gradient.
In general, the process of “modeling” essentially consists of choosing a physically meaningful transformation . We will return to this topic in Sections 7 and 8, where we apply our methods to model a distribution of fusion-born alpha particles, based on a quasi-distribution that represents their birth profile.
Finally, we emphasize that when a GC orbit distribution function is given in the form , or an equivalent set of CoM coordinates, the Jacobian must be accompanied by instructions concerning how to deal with the index that specifies the sign of the parallel velocity. First, it must be clarified whether is the sign relative to the magnetic field or the plasma current if their directions differ. Second, it must be clarified how particles trapped in a magnetic mirror are to be counted, because is redundant for such trapped particle orbits. Depending on the choice made, the integral in Eq. (7) can be written in at least three ways:
(8a) | ||||
(8b) | ||||
(8c) |
In the first case (8a), the summation over counts each trapped orbit twice, which means that the histogram has two sets of identical entries each representing half of the particles in the domain of trapped orbits. In the second case (8b), the summation index is three-valued, identifying trapped (), co- and counter-passing orbits (), so that represents the full number of particles in all regions of GC phase space without duplicate entries. In mathematical form:
(9) | |||
(10) |
The values of the density function itself are, of course, independent of the convention used. The point we want to make is that it is crucial to ensure consistency between the summation over and the Jacobian when counting marker particles by integrating in space as in Eq. (8).
In this paper, we adopt the third option (8c), with the single-valued constant Jacobian . Our CoM phase space mesh defined in Section 4 will double-count all orbits — passing and trapped — when they cross the plasma midplane: once on the high-field side (HFS) and once on the low-field side (LFS). The factor dividing the Jacobian in Eq. (8c) compensates this.
3 Geometry, coordinates and normalization
System geometry
The magnetic field vector is written
(11) | ||||
(12) |
where is the toroidal flux and the poloidal flux. These fluxes are related via the tokamak safety factor measuring the mean magnetic field line pitch. is the Jacobian for the transformation from Cartesian position coordinates to the toroidal flux coordinates , where is a poloidal angle and is the geometric toroidal angle, whose orientations are indicated in Fig. 3. Also shown in Fig. 3 are the axes of the right-handed cylinder coordinate system , with major radius and vertical coordinate .


The magnetic flux surface geometry and profiles for the MHD equilibrium that we use as a working example in this paper is shown in Fig. 4. This plasma is partly based on recent experiments with central radio-frequency (RF) heating using a 3-ion scheme Nocente20 ; Kazakov21 performed at the Joint European Torus (JET). The magnetic X-point has been removed and the profile of the safety factor is chosen to increase monotonically from values near unity in the core ( on axis) to at the boundary. This simulation scenario is also used in ongoing studies of MHD instabilities and fast ion physics Bierwage22b . The profile in the above-mentioned experiments varied dynamically and is likely to differ from ours at most times.
Besides and , we will also use the auxiliary coordinates and measuring horizontal and vertical positions relative to the magnetic axis, which is located here at .
Magnetic flux labels
The normalized toroidal and poloidal fluxes (, ) or their square roots (, ) can serve as convenient minor radial coordinates:
(13) |
where is the volume within the flux surface labeled . and are the values of the poloidal flux at the magnetic axis () and boundary (). For the toroidal flux we have . In some occasions, we use a volume-averaged minor radius , which is defined here as
(14) |
Our reduces the geometric minor radius in the limit of a cylindrical plasma with circular cross-section. For , we have , and is the minor radius of the plasma boundary.
Particle and orbit coordinates
In the guiding center (GC) description, the velocity space consists of the ignorable gyrophase , the perpendicular particle velocity , and the parallel GC velocity relative to the magnetic field vector with unit vector and magnitude . The canonical momentum can be written in the form for a particle with gyrofrequency , charge and mass . In GC coordinates, its covariant toroidal component,
(15) |
is called the canonical toroidal angular momentum and is chosen here to have units of area per radian, . Together with the lowest-order magnetic moment and the signed kinetic energy ,
(16) |
this yields a set of coordinates that belongs to the class of constants of motion (CoM), which are conserved by our equations of motion (presented in Section 5) when they are solved in a time-independent field that is symmetric along (or “axisymmetric” around ), satisfying .
The sign of the parallel velocity is measured relative to the parallel current density . While redundant or unnecessary for orbits trapped in a magnetic mirror (both signs are present), identifies whether a passing orbit with coordinates is co- or counter-going. In mathematical treatments, usually appears as a separate index, , but this is inconvenient for numerical representations. In our orbit database, we define at a certain reference point; namely, the starting point used for the orbit calculation. This or any equivalent convention allows us to attach to as in Eq. (16) and obtain a compact representation where all CoM arrays in the computer code have the same dimensionality: three.
It is also useful to define several different coordinates measuring the velocity pitch:
(17) |
with and . Each pitch coordinate has its advantages in practical applications:
- •
-
•
The coordinate is a true angle, so its value measures the velocity pitch in a very intuitive form. Moreover, the domains of co- and counter-passing particles are enlarged along the -axis, making this coordinate a good choice for sampling the velocity distribution of tangentially injected beam ions Bierwage18 and distributions produced by central RF heating using a 3-ion scheme Nocente20 ; Kazakov21 ; Stancar21 .
-
•
The coordinate has the advantage of being a CoM and that (in contrast to ) its upper limit is independent of energy: , where is the minimal field strength in the considered domain. This makes a convenient choice for defining the lines along which to divide the phase space as will be done in Section 4.

Unlike the conserved quantities , and , the pitch coordinates and vary along a GC orbit. The latter can be turned into orbit coordinates (i.e., CoM), and , by evaluating them at a well-defined reference point, as we did earlier for the sign .
Reference points for orbit coordinates
In cases where we import computed particle distributions (blue workflow in Fig. 2), the initial reference point is taken to be the position of an imported marker particle, which may be located anywhere inside the plasma or in the surrounding vacuum.
In cases where we need to construct a new CoM mesh (red workflow in Fig. 2) the reference points lie in the midplane, which (at least in a usual tokamak plasma) contains all O-type stagnation points and is defined as the curve along which the magnetic field is perpendicular to its gradient,
(18) |
The midplane is shown as a dash-dotted green line in Fig. 4. It contains the magnetic axis, , but deviates from the horizontal plane in up-down asymmetric plasmas like ours. Every GC orbit crosses the midplane twice, once in a region with higher field strength and once in a region with lower field strength. Figure 5 shows an example, where the orbit’s high- and low-field side crossings of the midplane are labeled “HFS” and “LFS”, respectively.
Normalization
Spatial positions and lengths are given in meters unless stated otherwise. Velocities are normalized by a reference value . Energy is normalized by (for each particle species) and the magnetic field by its on-axis value (here ):
(19) |
4 CoM mesh and drift orbit types
In this section, we describe how we sample the GC orbit space. The example in Fig. 6 is used for illustration. A low resolution is chosen in order to make all grid points clearly visible. All coordinates shown in Fig. 6 are evaluated at the height of the midplane as defined in Eq. (18). This means that all coordinates appearing in this section are constants of motion (CoM). The set used in panels (a) and (b) yields particularly compact and, in our opinion, intuitive plots. Another view of pitch-position space in coordinates is shown in panel (c). The plasma boundary is also taken to be the loss boundary for the GC orbits, so we do not include the vacuum here and our midplane mesh covers only the width of the plasma itself: .

The reference velocity used for normalization is chosen to be , which corresponds to for fusion-born alpha particles () or for deuterons (). Both species have the same charge-to-mass ratio and their characteristic gyroradius in this example is . We consider the full energy range with and define a mesh consisting of grid points that are the boundaries of cells. The value of energy at the center of cell is denoted . The example in Fig. 6(a) has cells with equal sizes .
The remaining phase space is divided along the coordinate lines of the conserved pitch . These lines appear parabolic in the -plane of panel (b) and horizontal in the -plane of panel (c). Two different procedures are used in the domains above and below the red line in Fig. 6, which represents :
-
•
: At , namely the left vertical axis of panel (b), we define a grid in the pitch angle coordinate . In the present example, it consists of equally sized cells with . The circles at in panel (b) indicate the cell centers with . These points are the starting points for lines . plotted gray in Fig. 6(b). Along each of these lines, we define a grid in the radial coordinate . In the present example, it consists of cells with . The upper part of panel (c) shows the resulting samples at the cell centers in the portion of panel (b).
-
•
: At , namely the horizontal axis at the center of panel (b), we define a grid in the radial coordinate . Our example has equally sized cells. The circles at indicate the cell centers with , which form a diagonal () in the lower part of panel (c). They are the origins of grid lines ., which are plotted gray in panel (b). Here, we choose to have an approximately uniform sample density. For this purpose, we define an auxiliary coordinate that measures the distance along a grid line in the -plane, with and . Along each grid line, we create cells with roughly equal sizes . The number of cells satisfies and the cell index covers positive and negative pitches, so there is at least 1 cell and at most cells in each domain, , respectively. The lower part of panel (c) shows the resulting samples at the cell centers in the portion of panel (b).
The above procedure samples the phase space of confined GC orbits twice, once on the LFS and once on the HFS. This ensures full coverage of the phase space and eliminates the need to distinguish between orbit types inside the mesh-cutting algorithm. The double-counting will be corrected by a factor in the volume elements derived in Section 6 below.
The color of each sample in Fig. 6(b) identifies the type of an orbit for a given energy. Here, we have chosen . In the case of alpha particles with , this corresponds to an energy of . Orbits are divided into two groups: orbits that are trapped in a magnetic mirror, and passing orbits (co- and counter-current). Trapped orbits contain a point where changes sign, while passing orbits do not. Each group is further divided into two sub-categories as defined in Table 1. This orbit classification scheme is relatively simple; see Ref. Rome79 for more elaborate discussions. Note that for every tuple , the midplane contains a pair of O-type stagnation points, where co- or counter-passing stagnation orbits are point-like in the poloidal plane. Since these O-type stagnation points alone are insignificant, we have chosen to expand the class of “stagnation orbits” to include all passing orbits that do not encircle the magnetic axis.
Encircle magnetic axis at | ||
---|---|---|
Yes | No | |
Trapped: | Potato orbits | Banana orbits |
Passing: | Circulating orbits | Stagnation orbits |
The classes of potato and stagnation orbits arise from magnetic drifts. The magnitude of the magnetic drift velocity (see Eq. (23) below) is proportional to the inverse aspect ratio and the kinetic energy. Furthermore, its -component is inversely proportional to the poloidal field , which tends to divert it into the toroidal direction. This means that magnetic drifts tend to be large for energetic particles in tokamak plasmas with relatively low plasma current and in compact tori. In such cases, the overall fraction of potato and stagnation orbits can be significant.
The mesh in Fig. 6(b) is rather sparse, and our automatic classification algorithm identified only 3 samples as potato orbits (see Fig. 8(a) for a denser mesh and higher energy). The legs of potato orbits are found around the upper rim of the trapped-passing boundary on the side of Fig. 6(b). On the side, they are located slightly below the line.

It is important to note that the trapped-passing (t-p) boundary on the side also lies below the line. This is due to the magnetic drifts and has the implication that the turning points — where the magnetic mirror force causes a sign reversal in — are near but not identical to the V-type stagnation points of trapped particle orbits.333The discussion below Eq. (19) in Ref. Porcelli94 is related to this. The example in Fig. 7(a) illustrates this for the case of an orbit very close to a t-p boundary.
The t-p boundary refers to a separatrix in the orbit topology; i.e., it marks the topological transition of two V-type stagnation points via an X-type stagnation point as illustrated schematically in the box at the top left of Fig. 7. The marginally trapped orbit in panel (a) has two V-type stagnation points that nearly form an X. Across the t-p boundary, this orbit decomposes into a counter-passing orbit and a trapped orbit, each with a single V-type stagnation point that turns into a smooth part of the orbit contour as one departs from the t-p boundary.
We use the word “stagnation” to indicate that GCs spend a relatively large amount of time in a relatively small region of the poloidal plane. Around O-type stagnation points, this is the case for the entire orbit. In the case of X- and V-type stagnation points as in Fig. 7, GCs spend a large amount of time in a small portion of the orbit contour. Spatial stagnation also means that stagnates as shown in panel (b).
The pitch angle scans of the poloidal and toroidal transit times in panels (c)–(f) of Fig. 7 show true singularities in and , and a topological discontinuity (see also Fig. 3 of Ref. Zhao97 ). The role of the transit time singularities will be discussed later in Section 6. The discontinuity is a matter of perspective, as it merely reflects how a larger volume element of GC phase space is divided into two components represented by a pair of orbits that were unified on the other side of the t-p boundary. In some sense, the transition is smooth if one views the disconnected orbits as a pair.
Finally, we note that constitutes a degeneracy in CoM space, since and cannot be varied independently for fixed at that location. This is why, geometrically, the parabolic . curves have their pole at that location in Fig. 6. Since we are defining our CoM mesh in the midplane, we are able to avoid these degenerate points entirely by locating them along the cell boundary on . lines. All cell centers are, thus, ensured to have .
5 Equations of motion
As indicated by the red and blue arrows between Steps 2 & 3 in our workflow Fig. 2, the GC phase space samples that are provided by
-
(a)
the mesh constructed in Section 4, or
- (b)
serve as initial conditions for the GC equations of motion, which we solve once around each orbit.
VisualStart solves the same equations with the same numerical scheme as its current target code MEGA. Following the formalism introduced by Littlejohn Littlejohn83 and reviewed by Cary & Brizard Cary09 , we use the effective electromagnetic fields and , with the potentials and . Here, we consider the motion of GCs in an unperturbed magnetic field and in the absence of any electric field (), so the effective fields reduce to
(20) |
and the equations for the GC velocity and its parallel acceleration become
(21) | ||||
(22) |
is the unit vector along , and is Littlejohn’s GC Jacobian for the noncanonical set of GC coordinates with (see also the discussion on p. 704 of Ref. Cary09 ). The GC velocity is composed of a parallel component (modified by curvature effects) and magnetic drifts due to and curvature :
(23) |
In the normalization of VisualStart (Section 4):
(24) |
with . The computed GC orbits are recorded in a database, following accuracy checks (B).
The example in Fig. 6, gives a total of about 8000 orbit samples, 52% of which lie inside the region bounded by the red curve () for the present setup. About 1100 orbits (14%) are lost as they hit the (artificial) boundary of the simulation domain due to magnetic drifts. Using 3 processes on an 8th Generation Intel CORE i7-8565U processor (), it took about 35 minutes to compute these 8000 orbits with our simple Matlab code in which there is much room left for optimization. A proper orbit database for the entire plasma volume may require at least 100 times more samples, which would take 150 core-hours with the present implementation. An optimized code in a language such as Fortran, C or Julia is expected to need only a small fraction of this time.444An experimental Julia version of our orbit solver runs 50 times faster. Making use of GPUs, the time required to compute such an orbit database should be reasonably short for routine work.
6 Volume elements and weighting
6.1 Derivation
Having computed the GC orbits using the unperturbed equations of motion in Section 5 starting from the midplane mesh defined in Section 4, the next step is to represent the distribution function in discretized form using an ensemble of marker particles labeled , which sample the orbits in our database. In other words, we seek the Klimontovich representation555A describes in detail how we evaluate Eq. (25).
(25) |
At this point, is the marker position in an arbitrary set of GC coordinates including ignorable angles, for instance . The Dirac distribution has units of inverse phase space volume and may be viewed as a proxy for any sort of particle shape factor needed to map the weights onto a discrete mesh. Each marker follows the trajectory of a GC as indicated by the subscript in . Its weight factor represents a certain number of GCs of physical particles:
(26) |
where is a 6-D volume element of GC phase space in Cartesian coordinates that is attached to marker .
Since we are considering only exact equilibrium distributions, the orbit time is an ignorable angle coordinate with period and all factors in Eq. (26) are independent of the three angle coordinates . These distributions depend only on three CoM coordinates, whose values we will represent by cell indices . When we load markers uniformly in time along an unperturbed GC orbit, neighboring markers are indistinguishable. Each marker carries precisely an ’s fraction of their orbit’s volume and weight :
(27) | ||||
(28) |
As indicated in Eq. (27), the markers also represent equal fractions of an orbit’s poloidal period :
(29) |
Recalling from Eqs. (26) that the volume element is eventually applied to a distribution function , it is clear that Eq. (29) actually implies an orbit time average:
(30) |
The average is trivial for true equilibrium distributions, which are independent of , so that . However, in Eq. (30) may also be replaced by an arbitrary quasi-distribution , so this equation also constitutes a recipe for transforming arbitrary models into true equilibria. In summary, Eq. (26) becomes
(31) |
In applications where we merely import particle data computed by another code (blue workflow in Fig. 2), the weights are provided with the data. Each sample is interpreted as the initial position of a new GC orbit, so the input weight is interpreted as the weight of an orbit: . This step enforces the equilibrium constraint and the first equality of Eq. (31) yields the marker weights. The volume element and distribution function do not appear explicitly in such a case.
In applications where we construct a new distribution function from a model or where we reexpress a mesh-based distribution function in the orbit-based representation (red workflow in Fig. 2), it is necessary to determine the GC orbit volume element for a given mesh in CoM space. In our case, the mesh has the form shown in Fig. 6 and the associated volume elements in units of can be readily obtained when written in terms of the canonical action coordinates associated with the ignorable angles , taking advantage of the fact that the Jacobian for a canonical transformation is constant in both space and time (see, for instance, Ref. Porcelli94 ).
With our definition , which has units of , the transformation between Cartesian coordinates for the phase space of physical particles and canonical coordinates for the phase space of GCs has the form
(32) |
The index determines in which domain (co- or counter-going) a volume element lies, irrespective of the orbit type (trapped or passing). Using the fact that canonical volume elements are identical anywhere on a GC orbit , Eq. (32) adds the volume elements at the high- and low-field side (HFS, LFS) midplane crossings and divides the result by 2, in accordance with our double-counting convention in Eq. (8c). Integrating over the angles and , using the pitch coordinate instead of the magnetic moment, and applying our normalizations and , we obtain
(33) |
for our CoM mesh with indices as defined in Section 4, where the cell index covers positive and negative signs of for both the HFS and LFS midplane crossings. It remains to specify the increment .
Since our CoM mesh in Fig. 6 is defined in the midplane, the canonical toroidal momentum for fixed and is a function of major radius only, which is here expressed in terms of :
(34) |
Its increment can then be evaluated as
(35) |
where and are the grid points adjacent to cell . Alternatively, using , the increment can be expressed in terms of as
(36) |
where radial derivatives like are taken along the midplane with fixed and , and they are evaluated at cell centers .
In summary, substituting Eq. (29) into (33) and multiplying by the number of markers used to represent an orbit, we obtain the GC phase space volume element represented by the orbit sample in cell in a form that can be readily evaluated numerically:666Eq. (37) differs from the formula for the volume element given in Eq. (40) of Ref. Bierwage12a . We consider the present derivation to be more rigorous. This affects mainly trapped particle orbits, which were effectively absent in previous applications of the code VisualStart.
(37) |
The final factor originates from Eq. (8c) via Eq. (32) and compensates our double-counting of all orbits in the domain in Fig. 6(b) via index .


6.2 Discussion
The formula for the volume element in Eq. (37) may look harmless, but the factor should be evaluated with care so as to minimize numerical inaccuracies. We have already seen in Fig. 7(c,d) that possesses singularities at t-p boundaries, although not all of them are problematic as we will see shortly. The existence of zeros and singularities in the increment can be readily anticipated from the derivative in Eq. (36), which can be approximated at leading order as
(38) |
Clearly, constitutes a singularity and there are at least two points where the terms on the right-hand side cancel, giving . Figure 8 shows an example for alpha particles. We consider orbits along the black parabolic line in Fig. 8(a), where .
Figure 8(b) shows the form of the increment evaluated using Eq. (35) (solid curves) and Eq. (36) (dotted). The values agree nicely nearly everywhere, except in the vicinity of the singularity labeled (E).777We expect that the red and blue curves in Fig. 8(b,c) connect smoothly near if one adds grid points closer to . A verification exercise similar to that performed later in Section 8.4 showed systematic errors when using Eq. (36). These errors seemed to be effectively absent when is evaluated using Eq. (35), which is therefore our default choice.
The zeros of correspond to stagnation points and imply that these and nearby orbits have a small weight factor . In the example in Fig. 8 there are three such points: (C) and (F) are the O-type stagnation points in the domains of counter- and co-passing particles; whereas (D) is an X-type stagnation point situated on the separatrix of the t-p boundary.
The zero of at point (D) plays an important role: it cancels one of the three singularities of the poloidal transit time in Fig. 8(c). In fact, a glance at the nearby barely trapped orbit in Fig. 8(e) shows that points (B,D,G) actually refer to the same transit time singularity; i.e., the same t-p separatrix. Strictly speaking, our algorithm counts such separatrices thrice, but one of these instances — namely the X-point at (D) — vanishes, owing to being zero at that location. This confirms that all orbits are effectively double-counted, so that the overall factor appearing in Eq. (37) is justified even near the t-p boundary. Of course, on a discrete mesh the cancellation of the third sample at point (D) is unlikely to be perfect, so some amount of numerical inaccuracy must be expected.
The remaining transit time singularities — namely points (B) and (G) in our example — have the consequence that orbits representing those and nearby portions of GC phase space may accumulate a relatively large weight. One could compensate these singularities by demanding that the value of the distribution function vanishes at the t-p boundary; e.g., by including a factor in . However, this may not be physically meaningful as the following arguments show.
The particles populating the barely trapped orbit in Fig. 8(e) as well as nearby potato and counter-passing orbits spend a relatively large amount of time in a small portion of pitch-position space near V-type stagnation points. This fact is highlighted by the bunching of the small black circle symbols in Fig. 8(e,f), which represent 16 marker particles distributed uniformly in time. However, unlike the tiny O-type stagnation orbits around points (C) and (F), the large orbits near t-p boundaries like (B) and (G) can actually become densely populated in real plasmas. This becomes evident if one thinks in terms of particle sources: particles deposited on orbits located near a t-p boundary, like our example in Fig. 8(e), will be conveyed to the V-type stagnation points and spend a long time in that region, producing a local spike in the particle density.
Of course, the finite particle supply rate along with instabilities and collisions will prevent the formation of a true singularity in a real plasma. Nevertheless, the above arguments show that, within certain limits, the spikes in the transit times in Fig. 8(c) and resulting spikes in the orbit volume elements (37) and marker weights (31), are physical meaningful.
Such spikes can however cause numerical problems. In some cases, the resulting inaccuracies may be tolerable. In the worst case, the presence of singularities may prevent the attainment of numerical convergence, since a finer mesh will have grid points closer to the singularity. If necessary, one may adjust the weights as mentioned a few paragraphs earlier; e.g., by imposing an upper limit on their values (or their gradients) as in the flux limiter scheme of fluid dynamics. Although this trick may ensure convergence, it is likely to converge to a somewhat inaccurate value. On the other hand, one may argue that the correct value is unknown as it depends on physical mechanisms that have been ignored, such as scattering by collisions and field fluctuations. Perhaps the most elegant solution in the collisionless limit is to use an analytical estimate of a volume element near the singularity, provided that a well-behaved solution exists. Anyhow, we believe that the optimal approach to dealing with singularities depends on the application at hand, so we leave it for future research. It seems meaningful to deal with this problem in the context of smoothing techniques that will be needed to evaluate phase space gradients for instability analyses and may be based on physical scattering mechanisms.
7 Modeling CoM distributions with large drifts
A computed or modeled equilibrium distribution is needed to determine the weight factor in Eq. (31). A model that is a function of CoM only, such as , would directly yield an exact equilibrium distribution . While simple models may suffice for physics studies at a fundamental level, predictive simulations and simulations used to interpret observations require more realism. It would be convenient to have given in an explicit, purely analytical form. However, for fast ions with significant magnetic drifts, a large number of control parameters is usually necessary to mimic realistic distribution functions, which tends to make the modeling job cumbersome, at least for non-artificial intelligence.888With a human-manageable amount of control parameters, it can be difficult to design a CoM distribution that has both the desired radial profile and the desired pitch distribution, because both vary simultaneously when one varies parameters controlling the dependence of on the canonical toroidal angular momentum .
For instance, consider the problem of constructing a model for fusion-born alpha particles. Even if one assumes that their pitch angle distribution is uniform at birth time,999Precisely speaking, when an anisotropy exists in the distribution of fusion fuel particles, this anisotropy may also be imprinted on the fusion products due to angular correlations in nuclear reactions (e.g., see Ref. Deutsch51 and Fig. 10 in Ref. Hanson49 ). Here this effect is neglected. strong pitch angle nonuniformities can promptly arise within one poloidal transit time. The loss cone, which contains orbits whose trajectories intersect plasma-facing components, is an obvious example. The magnetic drifts that cause those losses in toroidal geometry also affect the pitch angle distribution of confined orbits. For instance, for fusion-born alpha particles in ITER, the anisotropy associated with drift orbit topology was estimated to be around (see Section 7 of Ref. Salewski18b ). Pitch anisotropies and bump-on-tail structures along the energy axis are also a well-known cause of velocity space instabilities that can be observed as ion cyclotron emissions (ICE) (e.g., see Refs. Sumida19 ; Sumida21 ).

Let us consider a more concrete example. Figure 9 shows the GC orbit of a barely trapped alpha particle, which traverses both the hot plasma core and the cooler plasma periphery. If one uses a slowly varying function to model the overall distribution of alpha particles in this range of energies and pitch angles, the density will be similar on the barely trapped orbit shown in Fig. 9 and on the neighboring large potato and small counter-passing orbits indicated by dashed lines, because their coordinates have similar values.101010In our example: and with normalized and . In other words, the particle density will be similar on both sides of the t-p boundary.
However, this may not be an accurate representation of a real distribution of fusion-born alphas, in particular when the fusion reactivity varies substantially in different portions of the orbit. To illustrate this, the alpha particle orbit in Fig. 9 has been underlaid with the contours of the sharply peaked MHD pressure field from of our working example (cf., Fig. 4), which is characteristic for the bulk component of a JET plasma where 3-ion RF heating was applied near the magnetic axis Nocente20 ; Kazakov21 . In such a case, fusion-born alphas from the plasma center will populate the entire orbit shown in Fig. 9, albeit in a nonuniform manner as indicated by the small black circles. Just across the t-p boundary, however, most of the newly born alphas will be concentrated on the small counter-passing orbit, while the large potato orbit would be populated only sparsely, since it is topologically disconnected from the particle source. In principle, this can produce a steep gradient in the distribution function across the t-p boundary. In reality, collisions or instabilities can be expected to have a smoothing effect, but depending on the relevant time scales, a strong nonuniformity may be sustained. Such information may be necessary for interpreting experimentally observed signals or for reproducing them in simulations, and it is advantageous to have the ability to construct suitable models.
A viable recipe for doing so can be found in Eq. (30). Such an orbit time average can be readily realized using our orbit database and constitutes a physically meaningful way to convert an arbitrary model function into a true equilibrium distribution :
(39) |
where is the position of marker on orbit . For instance, in the example discussed in the previous paragraphs, one may let , so that the MHD pressure field in Fig. 9 acts as a particle source.
This approach can be viewed as taking the path of “self-organization”, where we leave it to the equations of motion to determine a distribution function that is consistent with the magnetic geometry and system boundaries at hand, and the constraints encoded in determine the particular spatial profile and velocity distribution for a certain case. This idea also underlies Monte-Carlo codes that follow GC orbits many times around the torus in the presence of sources and collisions. We mimic a part of this process with reduced computational effort: the GC orbits in our database are followed for only one poloidal turn in the absence of any perturbations (field fluctuations and collisions).
Form of | Sampling parameters | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
-distrib. | ||||||||||
Mono- | (min.: 16) | 33,335 | 1.88M | 31,841 | 1.70M | 27,684 | 1.29M | |||
Flat- | (min.: 16) | 112,483 | 2.74M | — | — | 99,308 | 2.18M |
Circ. | Stagn. | Banana | Potato | Lost | |
25,780 | 359 | 7,158 | 38 | 780 | |
24,430 | 1,066 | 6,191 | 154 | 2,280 | |
20,531 | 3,165 | 3,505 | 483 | 6,430 | |
87,368 | 612 | 24,456 | 47 | 1,710 | |
75,178 | 7,208 | 15,861 | 1,061 | 14,880 |
8 Application and verification
In this section, we demonstrate how the methods that we presented in this paper can be applied to a practical example. Section 8.1 describes the setup and how we construct — from a simple model — an equilibrium distribution of alpha particles that are assumed to be born near the center of a large tokamak plasma with an isotropic distribution of pitch angles at birth time. The results are discussed in Sections 8.2 and 8.3. In the final Section 8.4, we demonstrate how we use our orbit database to convert a binned 4-D distribution function (or any other coordinates) back to an orbit-based representation in CoM space. The result is binned again to give for comparison with the original . The procedure is then iterated one more time, yielding , in order to reveal systematic errors. The contents of this section may be summarized in diagrammatic form like this:
(40) |
Strictly speaking, we transform only between 2-D and 3-D spaces, , since both sets share the energy coordinate , which is a conserved quantity, so the mapping in that direction is identical. We will work here with an arbitrary normalization (henceforth indicated by hats), so the values of of must match but bear no particular meaning.
Our distribution functions will be inspected here in the same way as an experimental diagnostician would: measure spatial distributions by integrating over certain portions of velocity space, and measure velocity distributions by integrating over certain portions of position space. The required binning operations and Jacobians are described in A.

8.1 Setup and parameters
In order to highlight how toroidal geometry affects the form of the constructed equilibrium distribution function via the mirror force and magnetic drifts, we start from a quasi-distribution that is independent of pitch and has a relatively sharp peak in minor radius:
(41) |
where is a normalization constant that is arbitrary here.
The radial density profile is shown as a solid black line in Fig. 10(a). Although this is primarily meant to be a toy model for testing our algorithms with a localized particle source and large magnetic drifts, we note that this profile is physically feasible if one considers scenarios with a sharply peaked ion temperature profile as produced in 3-ion-heated JET plasmas Nocente20 ; Kazakov21 .
The energy dependence of particle distributions in a real plasma is governed by processes such as collisional drag and instabilities (e.g., see Fig. 4 in Ref. Bierwage18 ). These processes are not considered here. We use energy only to exemplify the effects of magnetic drifts, which increase with ; or, rather, with its square root , because the effect of magnetic drifts is roughly proportional to the ratio of the drift velocity to the particle velocity. For this purpose, we use two types of distributions: one mono-energetic with , and one that is flat in the range and zero beyond:
(44) |
where is the Dirac delta distribution.
Table 2 shows the parameters for five test cases that we will consider here: three mono-energetic alpha distributions with and two distributions that are uniform in the energy range with . Table 3 summarizes the numbers of circulating, stagnation, banana, potato and lost orbit samples (CoM mesh points) in each case. Panels (b) and (c) of Fig. 10 show how the contours of a banana orbit (A) and a circulating orbit (B) change due to magnetic drifts when the kinetic energy is increased from to .
While the model in Eq. (41) has a simple appearance, the actual form of the alpha particle distributions we construct here is determined by the combination of Eq. (41) and the equations of GC motion (21) and (22), whose solutions are folded into the simple model via the integral (39). In other words, the geometric effects are captured by the GC orbits in our database, whereas the model effectively describes the structure of the particle sources that populate those orbits, and the integral (39) combines all that information.
The geometric effects that we expect to see in this setup may be summarized as follows. These properties of a toroidally confined and radially bounded plasma are well-known and are listed here only for completeness and to simplify the discussion of the results:
-
•
The peripheral plasma will be populated by particles on orbits that also pass through the core as in Fig. 10(c). Such orbits are found in a certain range of pitch angles around the t-p boundary.
-
•
Flux surface-averaged profiles tend to be smoothed on the scale length of the magnetic drifts. The gyroradii have a similar effect and may be included via satellite particles Bierwage16c (not done here).
-
•
Magnetic drifts shift co-passing orbits outward in and counter-passing orbits inward.
-
•
The mirror force confines some particles to the low-field side of the plasma and causes them to accumulate near V-type stagnation points.
-
•
The energy- and pitch-dependence of the above-mentioned spatial nonuniformities gives rise to net flows both poloidally (due to radial nonuniformity) and toroidally (due to a local imbalance between co- and counter-going particles).
8.2 Properties of mono-energetic distributions
Figure 10(a) shows the computed density profiles on a mesh that is uniformly spaced in normalized poloidal flux . The profile for alphas is similar to the model . The small discrepancy at can be eliminated with a finer mesh as shown in the inset. The magnetic drifts increase with increasing energy, causing the profile to broaden and the central value to drop. The total number of particles in the plasma is nearly the same in all three cases, since prompt losses are relatively small: less than for and about for .
Figures 11 and 12 show the form of various moments of the alpha distributions with kinetic energies and in the poloidal plane :
-
•
Particle density (a): Even for , our model yields an alpha density that is peaked at the axis, but the peak is wider than in the case, especially in the horizontal () direction.
-
•
Markers/cell (b): Since we have set a lower bound of 16 markers per orbit, the smallest stagnation orbits stand out in the plots showing the number of markers per cell, while the surroundings are fairly uniform. At , the co- and counter-passing stagnation points effectively coincide with the magnetic axis. At , their mean separation along is about (cf. Fig. 8(b)).
-
•
Temperature (c): With the density nonuniformity divided out, the temperature field clearly shows that our alpha particle distribution effectively consists of two partially overlapping co- and counter-going mono-energetic beams, which are shifted radially out- and inward, respectively.
-
•
Flows (d–g): The relative shift of the co- and counter-going beams causes net local currents. The poloidal current field (consisting of and ) forms two vortices, one on the high-field side (HFS) of the magnetic axis rotating clockwise, and one on the low-field side (LFS) rotating counter-clockwise. Toroidal and parallel currents and are very similar here, since the magnetic pitch is relatively uniform () in the plasma center. The structure and spatial extent of the currents is similar at lower and higher energies, but the magnitude should be proportional to and, thus, differ by about a factor of 10. This seems to be the case here if one accounts for the fact that the case has a smaller signal-to-noise ratio.



Figure 13 shows the pitch angle distribution of our mono-energetic alpha particles. The spatially integrated distributions in panel (a) show that a pitch nonuniformity exists around , up to intermediate pitch angles, . The deviation from the mean increases from about for to about for . At larger pitch angles, , the distributions are flat (except for aliasing noise, to be discussed later). More detailed views of the nonuniformities in the region of the cases with and are provided in panels (b) and (c), where we plot the contours of to show the radial dependence of the pitch angle distribution in the range . Here, the summation over markers was performed over the coordinate for radial bins of size .
The structures seen in Fig. 13 can be readily explained on the basis of our model function , the effects of toroidal geometry (mirror force and magnetic drifts), and the loss boundary. Rather than saying anything new, the purpose of the following discussion is to show that our procedures work reliably and produce the expected results. We focus on the case.
Figure 13(c) clearly shows the opposite radial shift of co- and counter-going particles due to their opposite magnetic drifts: the peak in the region is shifted towards the right () and the peak in the region is shifted to the left (). The wedge-shaped structure of the pitch anisotropy around represents the widening of the domain of trapped particles towards the low-field side as expected from Fig. 8(a).
In order to explain the structure of the pitch anisotropy in the region , it is helpful to consider the trajectories of a few GC orbits in that region. For this purpose, Fig. 13(d) shows the GC orbits of four simulation particles with energy . Two of them (solid lines) are launched near the midplane (): the small orange orbit starts from , and the blue orbit starts from , as indicated by the crosses in panels (c) and (d). The blue orbit is a large potato orbit that passes both near the center of the plasma and through the periphery. The small orange orbit is a stagnation orbit. Now recall Eq. (39), where we defined the orbit distribution to be the orbit time-average of the model that represents our alpha particle birth profile. Since the latter is sharply peaked near the plasma center, the values of can differ substantially on the above-mentioned pair of orbits.
Generally speaking, orbits that spend most of their time inside the peak of the source profile are densely populated with physical particles, so our GC markers representing them have larger weights . Orbits that spend most of the time outside are sparsely populated. The mirror force and magnetic drifts have the consequence that particles on counter-passing orbits spend less time inside the central peak of than co-passing orbits. In addition, the losses of co- and counter-going particles are asymmetric, especially in the vicinity of the trapped-passing boundary. These effects are manifested in the minima and maxima of and in Fig. 13, which are most pronounced in the high-energy case due to its larger drifts.
Note that the distribution in Fig. 13(c) was computed by integrating along the vertical coordinate , so it also includes particles on orbits like those shown by dashed lines in panel (d). The dashed orbits were launched from , but more than half a meter above the midplane, from , as indicated by pluses in panels (c) and (d). The orbit starting with a positive pitch (orange) passes through the central plasma, where it acquires a relatively large weight due to the centrally peaked source profile . In contrast, the orbit starting with a negative pitch travels outward and nearly hits the boundary (light green curve).
In fact, the entire peak of around can be explained in that way. We have verified this with a test case where the plasma boundary had been placed at () instead of , so that orbits are constrained to the inner 25% of the present flux space Bierwage22b . In that case, the plasma boundary is located around at the height of the outer midplane, so that the three large orbits in Fig. 13(d) are all lost. The resulting pitch angle profile is shown as a black dotted line in Fig. 13(a). It has a deeper and wider loss cone, and there is no peak at .


8.3 Properties of flat-energy distributions
Realistic alpha particle distributions are nonuniform in energy. The reason for our use of a model that is flat in energy is that the -dependence of geometrically induced nonuniformities can be easily seen, and it is also easier to verify that our method works as expected.
The densities and current fields are very similar to those in the mono-energetic cases shown in Figs. 11 and 12 above. A few different features can be observed in the high energy case, , whose moments are shown in Fig. 14. The presence of particles with a wide range of energies can be inferred primarily from the blurring of the stagnation points in panel (b), and from the nonuniformity of the temperature field in (c). The latter resembles somewhat the letters “IO” as fast particles dominate outside the central density peak; especially the co-passing ones (forming the “O” shifted to the right) for the same reasons as discussed in the last paragraphs of Section 8.2 above.
Figure 15 shows the velocity distributions integrated over position space. One can see that, apart from noise, our result has the desired uniformity in both energy and pitch in the domains populated by passing particles. As discussed in Section 8.2 above, the pitch anisotropy around is induced by toroidal geometry (mirror force, magnetic drifts and resulting losses) in combination with the centrally peaked source profile. The anisotropy clearly increases with increasing energy.
Our orbit database is relatively sparse (, see Table 2), and the bins used in Figs. 14 and 15 have effectively the same resolution: . The binned results are smooth along energy, because the orbit samples coincide with the bins. Most of the noise in Fig. 15 is in the pitches and , where the distribution of bins is similar but not identical to the distribution of orbit samples (CoM space). In other words, the noise in the range and is effectively an aliasing effect. The noise is largely suppressed in the poloidal plane in Fig. 14, and in -space shown in the central column of Fig. 15, since the bins in these coordinates have a shape very different from the mesh we used to sample the CoM space (cf. Figs. 6 and 8).
Figure 15 also highlights potential difficulties in attempts to convert the binned distributions from one set of coordinates to another. In particular, the small region around the origin in the central column of Fig. 15 is expanded to the full length of an axis in and spaces on the left and right sides of Fig. 15, so some features of the distribution functions are likely to get lost in direct conversions unless a polar mesh is used in coordinates, which is equivalent to using another set of coordinates, such as . We emphasize that we have not performed direct conversions between binned distributions in Fig. 15. They were all obtained by binning, on the respective mesh, the marker particles of the orbit-based representation .

The binning in Figs. 10–15 was performed using a 1st-order (linear) interpolation scheme as commonly used in particle-in-cell (PIC) codes, where each marker is assumed to have the shape of a top-hat function whose width is equal to the bin size. Naturally, the noise is larger with a 0th-order (binary) binning scheme, where markers resemble functions. The difference between 1st- and 0th-order binning can be seen by comparing panels (a) and (b) of Fig. 16, where we show the spatially integrated velocity distribution with . Note also that the result in Fig. 16(a) appears smoother than that in 15(d) simply by using instead of , because this change in coordinates reduces the above-mentioned aliasing effect. Another difference is that Fig. 16 was obtained with 10 times more markers per orbit, but this does not have a strong influence on the aliasing in the domain of deeply passing particles, since those markers rarely cross the bin boundaries.
8.4 Verification of reversibility and accuracy of coordinate conversions via an orbit-based representation
The results discussed in the previous sections were obtained by binning the marker weights of our orbit-based representation in CoM space to a mesh in arbitrary coordinates. The reverse transformation is also easily performed as we will demonstrate in this section. On platforms like ITER IMAS, we expect this to be an essential part of the transformation toolbox, especially if an orbit-based representation is used as a reference. Here, this operation serves us primarily as a verification exercise to test with what degree of accuracy we can perform and reverse coordinate conversions without applying any smoothing algorithms.
We consider the flat-energy case with and follow the procedure that was outlined in Eq. (40). Let us now define the relevant steps in detail:
-
1.
Using Eqs. (39) and (41), we construct a distribution function in the orbit-based representation:
(45) The CoM mesh that underlies our orbit database has the same number of cells as specified in Table 2: . The number of markers per boundary length is increased by a factor 10 to (min. 16), giving a total of markers.
-
2.
The orbit-based CoM distribution is binned on a uniform 4-D mesh in the widely used coordinates . In compact form, this operation can be written as
(46) where is the iteration number. The initial result is referred to as the “input” distribution for the subsequent back-and-forth transformations. More precisely, the binning operation we perform is given by Eq. (53) in the form
(47) where the shape factor is a top-hat function, which means that the markers resemble functions. That is, we use the 0th-order binning scheme as in Fig. 16(b) and the number of bins (= cells) is . The pitch resolution was reduced from to in order to reduce noise and aliasing (cf. Section 8.3).
-
3.
For each orbit in the database, we compute new weight factors by integrating in time along the orbit contour as
(48) which gives a new orbit-based distribution:
(49) -
4.
Repeat step 2 and compare the result with the previous iteration:
(50)
We have then iterated steps 3 and 4 one more time, looking for increasing deviations that may hint at systematic errors. The results are summarized in Figs. 17 and 18.


Figure 17(a) shows that the overall shape of the radial density profile is reproduced well. A closer inspection of the relative errors in Fig. 17(b) reveals that the first iteration changes the particle density by about in the densely populated region . Around the increase is about , and near the boundary we have a reduction by about . The relative error roughly doubles in the second iteration, indicating that it is not random but systematic. As indicated in the legend of Fig. 17(a), the total number of GCs increases by in the first and in the second iteration, where the error accumulates to .
Figure 17(b) shows that our procedure has the tendency to increase the particle density in the plasma interior and reduce it near the plasma boundary. We have not investigated why the systematic errors have this particular form and it may, in fact, depend on the particular magnetic configuration at hand. However, the larger errors in the outer region of the plasma are likely related to the fact that, in our test case, this region is populated almost exclusively by particles on large orbits near the trapped-passing boundary (cf. Fig. 10(c)), where the poloidal transit time exhibits singular behavior (see Fig. 8) and inaccuracies can be expected. In the present case, the magnitude of these errors can be reduced by increasing the number of phase space samples as shown in Appendix B.4.
Figure 18 shows the results for the velocity space distributions and for iterations . No significant differences can be seen in the energy direction, which is to be expected since it is a conserved quantity and our energy bins are identical in both representations. But even along the pitch coordinates and , excellent agreement is obtained after dividing out the systematic increase of . The noise at large pitch values retains its form as expected for an aliasing effect, and its magnitude increases systematically from one iteration to the next. The minimum associated with the loss cone tends to deepen with each iteration, which is also to be expected due to the irreversibility of losses. As was noted in connection with Fig. 16, we see again in Fig. 18 that binning on a uniform mesh in instead of reduces aliasing and, thus, yields smoother results in the deeply passing domain ( or ).
Before proceeding to the conclusion of this paper, we shall add a few encouraging words for readers who may find the results in this section somewhat unsatisfactory. First, it should be noted that we have chosen a fairly challenging setup for our application example: Our density peak is localized deeply in the plasma core, where derivatives of the poloidal magnetic flux are small so that is dominated by drift terms. This means the so-called “non-standard” orbits are actually prevalent here. Second, we have sampled the CoM space only relatively sparsely (Table 2) and used no smoothing procedure whatsoever. Even the binning of particles was done using a 0th-order scheme, which is why the noise in Fig. 18 is larger than in Fig. 13.
In other words, one may say the we have been looking here at a worst-case scenario with the least degree of sophistication. This should be taken in a positive way, because it means that there is much room for improvement even with well-established techniques. Higher resolution in CoM space, higher-order binning schemes and other smoothing techniques are obvious solutions to reduce noise to a level where the distribution becomes sufficiently smooth to measure local phase space gradients of a particle distribution. The application of such techniques in combination with the orbit-based representation method described here is left for future work.
9 Summary and conclusion
This paper was motivated by the need to model and process distributions of charged particles in tokamak plasmas in a unified framework like the ITER Integrated Modelling & Analysis Suite (IMAS), which has to address the needs of a diverse community of users dealing with experimental and numerical data. One of the tasks IMAS will need to perform is the conversion of distribution functions between various coordinates. Our proposal is to construct a database of unperturbed GC drift orbits and use it as a basis for representing distribution functions in constants-of-motion (CoM) space. A working prototype of a concrete workflow as implemented in the code VisualStart BierwageVSTART12 ; Bierwage12a is described here.
It should be noted that dedicated IMAS data structures for storing GC orbit properties and quantities along GC trajectories of marker distributions have recently been added into the ‘distributions’ IDS (Interface Data Structures) ITER_IDS , making IMAS readily compatible with the representation and methods proposed here.
An orbit-based representation maps any input distribution to an exact equilibrium that is consistent with the specified magnetic field configuration. While the result may generally differ from the original input, the equilibrium constraint ensures that all subsequent mappings from 3-D CoM orbit space back to arbitrary 4-D sets of coordinates become unique and straightforward. In fact, further operations like visualization or exporting are reduced to binning marker particles on user-defined meshes in arbitrary coordinates and arbitrary subspaces.
A new orbit database needs to be set up for each MHD equilibrium, and one may even have to set up one for different energy ranges (say, , and ). The required computational effort should be manageable if the code is optimized and capable of exploiting state-of-the art computing technology. Once the database has been constructed, it can be used to represent and model various populations of charged particles that may be present in the same plasma, such as beam ions, RF-heated ions and fusion products. One orbit database may be shared between particle species with identical charge-to-mass ratio by scaling their energies.
The time spent on preparing the orbit database is also justified by the fact that the acquired information can be used for other important tasks, such as resonance analyses and modeling, which must also be part of the IMAS toolbox. The degrees of freedom for modeling are vast, since each orbit can be assigned an independent weight. Rather than prescribing parametric functions of CoM — whose limitations were briefly discussed in Section 7 — it is worth exploring unconventional ways that make better use of the degrees of freedom available and take advantage of the fact that our orbit-based representation automatically enforces the equilibrium condition and physical constraints associated with toroidal geometry; namely, the mirror force, magnetic drifts and the resulting velocity space nonuniformities and boundary losses. As an example, we have demonstrated in Section 8 how the orbit database can be used to model a distribution of alpha particles with a core-localized birth profile that is not a function of the fast alpha’s CoM. This method to design distribution functions was inspired by orbit-following Monte-Carlo simulations, but is much cheaper computationally. We expect that similar strategies can be used to model distribution functions based on various types of experimentally measured data or from results of bounce-averaged Fokker-Planck codes that ignore magnetic drifts Bierwage17c .
Finally, we demonstrated in Section 8.4 how a distribution of energetic alpha particles with large magnetic drifts can be converted back and forth between a 4-D mesh in arbitrary coordinates and the orbit-based representation in 3-D CoM space. Besides being an essential part of the coordinate transformation toolbox needed by platforms like IMAS, this procedure served us as a method to verify the numerical accuracy and logical integrity of the workflow. In fact, this procedure enabled us to identify and correct subtle problems that arose in early versions of our implementation of the algorithm. The lessons we learned are documented in this paper.
The methods presented here can serve as a starting point that already provides much of the required functionality required by IMAS. One of the next steps should be the adoption or development of smoothing techniques with the goal to mitigate the effect of discretization noise, while minimizing systematic errors associated with such irreversible data manipulations. This is a prerequisite for performing stability analyses of resonant modes and for preparing initial conditions for delta- simulations, which require explicit information about gradients in the phase space density.
We suggest the reader to also follow related and complementary developments in orbit tomography Stagner22 ; StagnerPhdThesis ; Jaerleblad21 ; BenjaminBachelorThesis . For instance, those studies demonstrate an alternative way to sample the orbit space and employ methods for adaptive meshing and reducing binning errors.
Acknowledgments
One of the authors (A.B.) acknowledges insightful discussions with Yasushi Todo concerning the handling of the Jacobian factor , and with Stuart Benjamin and David Pfefferle concerning methods for phase space discretization and mapping techniques. On a broader note, A.B. would like to thank Liu Chen, Zhihong Lin, Fulvio Zonca as well as Sergio Briguglio, Claudio DiTroia and Gregorio Vlad for their support during the early development stages of VisualStart in 2008–2010 for the hybrid code HMGC. Subsequent extensions enabling VisualStart to initialize long-time simulations performed for JT-60U with the code MEGA benefited from support by Kouji Shinohara, Yasushi Todo and Masatoshi Yagi, to whom A.B. would also like to express his gratitude. Finally, A.B. is grateful to Jeronimo Garcia and Shunsuke Ide for encouraging and supporting a fruitful collaboration between JET and QST. The working example used in the present paper was inspired by plasmas produced in recent JET experiments with central 3-ion RF heating, which posed a suitably challenging and practically relevant scenario for testing our numerical algorithms and workflow. We would like to thank all JET contributors for making these interesting experiments possible and allowing us to participate.
The workstation used for the numerical calculations reported here was funded by QST President’s Strategic Grant (Creative Research). This work has been partially carried out within the framework of the EUROfusion Consortium and has received funding from the Euratom research and training programme 2014-2018 and 2019-2020 under Grant Agreement No. 633053. The views and opinions expressed herein do not necessarily reflect those of the European Commission.
Appendix A Binning operations and Jacobians
In this section, we describe how we evaluated the Klimontovich representation (25) to visualize our results in Section 8. For clarity, we break the procedure up into (i) the computation of a histogram and (ii) its conversion to a density function . As a concrete example, we use the set of noncanonical coordinates . The cell center positions are and the volume elements are .111111In contrast to the canonical 6-D phase space volume elements and of GC orbits and their markers as defined in Section 6, the symbol appearing here denotes an element in an arbitrary mesh in an arbitrary number of dimensions. The corresponding histogram of GCs is given by
(51) |
Marker is located at GC position , and its weight determines how many physical particles this marker is meant to represent (cf. Eq. (26)). The shape function prescribes how we map these weights onto our mesh. The phase space density function is then
(52) |
where is the Jacobian for the conversion from Cartesian to noncanonical GC coordinates. Substituting Eq. (51) into (52) and assuming, within the accuracy limits of our discrete mesh, that , the formula for mapping the phase space density function to our 4-D mesh becomes121212Conventional PIC codes sample the phase space by loading marker particles in a uniformly randomized manner at the beginning of a simulation (). In that case, the initial marker weights (via their volume elements) carry a factor . When evaluating moments of the distribution function during a simulation, that factor is effectively multiplied by the inverse factor that appears in Eq. (53). These two factors cancel approximately and may, thus, be omitted, if one ignores corrections of order .
(53) |
Based on Eq. (53), we compute density fields in 1-D and 2-D by binning marker weights as follows:
(54) | ||||
(55) |
The spatially integrated velocity distributions are
(56) |
In Sections 8.2 and 8.3, we used 1st-order shape functions for binning (linear interpolation), and in Section 8.4 we used 0th-order (binary) binning.
Finally, we present expressions for the Jacobian factors multiplying . Converting the right-hand side of Eq. (6) to polar GC velocity coordinates by substituting , we obtain
(57) |
The Jacobian for transforming between and the normalized poloidal flux is evaluated numerically. The Jacobian for cylinder coordinates is . Analytical expressions can also be derived for the Jacobians of all velocity coordinates that we use here. Namely, from the relations
(58) | ||||
(59) |
with , one readily obtains the Jacobians
(60) |
for locally (in ) transforming velocity space elements to other sets , such as
(61) | |||
(62) |
Appendix B Numerical accuracy and data storage
Researchers tend to invest significant effort in the preparation of their simulation scenarios, balancing accuracy against speed. However, the data on platforms like IMAS are likely to be of variable quality, since some of it originates from automated or semi-automated workflows. The tools used to process those data should hence have a certain degree of tolerance with respect to inaccuracies and be able to detect and handle exceptions. The workflow in VisualStart also contains such sensibility checks and ways to mitigate the effects of inaccuracies. Some of the inaccuracies arising in VisualStart could be avoided with more sophisticated techniques, while others are practically inevitable due to numerical resolution being necessarily finite. This Appendix contains notes concerning some issues that are relevant for the subject of this paper or, at least, for the current implementation of VisualStart.
B.1 Particle pushing
At present, the particle pushing routine used to compute GC orbits in VisualStart uses the same finite-difference algorithm as the MHD-PIC hybrid code MEGA Todo98 ; Todo05 : a 4th-order Runge-Kutta scheme advances the equations of motion expressed in cylinder coordinates. Spatial derivatives are also taken through simple finite differences. This choice has been made deliberately in order to have the same level of accuracy as the hybrid code for which VisualStart prepares initial conditions. This allows us to detect possible problems, if any, at an early stage, before launching expensive hybrid simulations. Of course, accuracy can be improved with various techniques, including a Hamiltonian formulation like that used in codes like ORBIT White84 ; ChenY99 ; White19 and HAGIS Pinches98 ; Pinches04 , albeit with the complication of having to work with a specialized set of coordinates. The benefits of such techniques become noticeable when following orbits for long periods of time (as in Poincaré analyses). For evaluating a single poloidal transit as we do here, simple techniques often suffice, but due attention must always be paid to regions near singularities and stagnation points like those shown in Figs. 7 and 8.

B.2 Orbit database
Although one may load GC phase space markers as soon as an orbit contour has been computed, it is advantageous to store orbits in a database and load the markers later as needed. One reason is that the orbits can be recycled when preparing distribution functions for different sets of particles: alpha particles and deuterons are indistinguishable for identical velocities, and one may have multiple beams as well as RF-heated populations of a certain particle species in the same plasma. These sets of particles may all share the same orbit database.
In order to keep the size of the database manageable, the representation of the orbits must be efficient. VisualStart saves all orbits in discretized form, typically using 32–64 samples per orbit. The user can choose between three options for the distribution of samples: (i) uniform in space, (ii) uniform in time, or (iii) a 50:50 combination of (i) and (ii). We usually choose option (i) for beam-like distributions that consist only of passing particles. Option (iii) is preferred when trapped particles are present in order to ensure good resolution both near and far away from V-type stagnation points as the examples in Fig. 19 show.
The recorded time arrays must include at least , , and the time itself. Our databases contain many other arrays that have been stored for various purposes, such as , , , and . The database file from our low-resolution example in Fig. 6 has a size of 33 Mbyte in NetCDF format. The databases with the parameters in Table 2 occupy about 150 Mbyte each in the mono-energetic cases and 500 Mbyte in the flat-energy cases. These files also contain useful auxiliary information, such as the numerical parameters, poloidal and toroidal transit times, the orbit length, bounce angle, the orbit type, and some measures of the computational accuracy: energy conservation, and spatial mismatch between start- and end-point.
Orbits that have not been completed within a certain upper bound of time steps are labeled as “incomplete”. Before proceeding to Step 4 of our workflow in Fig. 2, we deal with such incomplete orbits and those that have insufficient accuracy. Bad orbits can be corrected if necessary, or simply discarded if sufficient accuracy is difficult to achieve and unnecessary (as may happen for tiny orbits very close to an O-type stagnation point).
Data related to marker weighting are also present; in particular, the volume element sizes . There is an option to undo the factor in the volume element given by Eq. (37) for stagnation orbits that are smaller than the cell size and, hence, cannot be double-counted. Their volume elements may then be rescaled in proportion to the orbit’s radial diameter, but the effect is usually negligible since such orbits carry little weight (and one should use a finer mesh if they are of interest).

Interpolation is necessary when converting the raw data from the particle pushing algorithm to the samples used to represent an orbit in the database. Further interpolation is necessary when loading markers on an orbit that has been retrieved from the database. As shown in Fig. 20, we found that a tiny discontinuity in an orbit contour (mismatch between start and end points) can cause relatively large “ringing” in spline interpolations. Subsequent interpolations in that region — namely, when we load marker particles — can produce corrupt samples that may even lie outside the plasma. When applying the 1-D interpolation function of Matlab for processing our orbits (and other potentially “noisy” data), we avoid such problems by using the pchip option instead of spline.
B.3 Marker loading
In order to avoid crowding at the midplane, the markers on each orbit are loaded with a random time offset relative to the starting point at the midplane. When using the markers in a simulation, they are also spread (randomly) along the toroidal angle .

B.4 Convergence test
Figure 17(b) showed indications of relatively large errors that increased systematically with each iteration of our back-and-fourth transformation between a 4-D mesh in the coordinates and the orbit-based representation in 3-D CoM space. In our discussion in Section 8.4, we attributed this problem to inaccuracies in the estimation of the volume elements for orbits sampling the region near the trapped-passing boundary, where some factors exhibit singular behavior.
Further tests show that these errors can be reduced by simply increasing the number of phase space samples via the parameters , and in Table 2.131313Since kinetic energy is conserved and our 3-D and 4-D distributions both share the same energy mesh, the parameter has no impact on the numerical accuracy in our verification exercise. In Fig. 21 we demonstrate this for the case where we increased the number of radial grid points . While the flat-energy case with was used in Fig. 17, we have chosen only mono-energetic alpha particles with for the convergence test in Fig. 21. For an identical mesh, this results in larger values of the relative errors in Fig. 17, presumably because the signal-to-noise ratio is reduced.
The comparison between panels (a) and (b) of Fig. 21 shows a significant reduction of the numerical errors in both the local values of the alpha particle density profile and the total number of GCs . As before, the errors accumulate with each iteration, which confirms their systematic character. Large errors persist only at the artificial loss boundary (), which is to be expected and requires dedicated solutions that are not covered here.
Besides increasing the number of samples, there may exist other ways to correct or otherwise suppress the inaccuracies associated with singular volume elements. This is left for future work. A preliminary discussion was given in Section 6.2 of the main text.
References
-
[1]
S.D. Pinches et al.
Progress in the ITER integrated modelling programme and the ITER
scenario databases. 27th IAEA Fusion Energy Conference (FEC 2018),
2018.
https://nucleus.iaea.org/sites/fusionportal/
Shared%20Documents/FEC%202018/fec2018-preprints/
preprint0741.pdf
. - [2] M. Salewski, M. Nocente, G. Gorini, A.S. Jacobsen, V.G. Kiptily, S.B. Korsholm, F. Leipold, J. Madsen, D. Moseev, S.K. Nielsen, J. Rasmussen, M. Stejner, M. Tardocchi, and JET Contributors. Velocity-space observation regions of high-resolution two-step reaction gamma-ray spectroscopy. Nucl. Fusion, 55(9):093029, 2015.
- [3] M. Salewski, M. Nocente, G. Gorini, A.S. Jacobsen, V.G. Kiptily, S.B. Korsholm, F. Leipold, J. Madsen, D. Moseev, S.K. Nielsen, J. Rasmussen, M. Stejner, M. Tardocchi, and JET Contributors. Fast-ion energy resolution by one-step reaction gamma-ray spectrometry. Nucl. Fusion, 56(4):040009, 2016.
- [4] M. Salewski, M. Nocente, A.S. Jacobsen, F. Binda, C. Cazzaniga, J. Eriksson, B. Geiger, G. Gorini, C. Hellesen, V.G. Kiptily, T. Koskela, S.B. Korsholm, T. Kurki-Suonio, F. Leipold, D. Moseev, S.K. Nielsen, J. Rasmussen, P.A. Schneider, S.E. Sharapov, M. Stejner, M. Tardocchi, and JET Contributors, ASDEX Upgrade Team & EUROfusion MST1 Team. Bayesian integrated data analysis of fast-ion measurements by velocity-space tomography. Fusion Sci. Technol., 74(1-2):23, 2018.
- [5] M. Salewski, M. Nocente, B. Madsen, I. Abramovic, G. Gorini, A.S. Jacobsen, V.G. Kiptily, S.B. Korsholm, D. Moseev, S.K. Nielsen, A.F.L. Poulsen, J. Rasmussen, M. Tardocchi, B. Geiger, J. Eriksson, the JET Contributors, the ASDEX Upgrade Team, and the EUROfusion MST1 Team. Diagnostic of fast-ion energy spectra and densities in magnetized plasmas. JINST, 14:C05019, 2019.
- [6] L. Stagner, W.W. Heidbrink, M. Salewski, A.S. Jacobsen, B. Geiger, and The DIII-D and ASDEX Upgrade Teams. Orbit tomography of energetic particle distribution functions. Nucl. Fusion, 62(2):026033, 2022.
- [7] L. Stagner. Inference of the fast-ion distribution function. PhD thesis, University of California, Irvine, 2018.
- [8] H. Järleblad, L. Stagner, M. Salewski, J. Eriksson, S. Benjamin, B. Madsen, M. Nocente, J. Rasmussen, and B.S. Schmidt. Fast-ion orbit sensitivity of neutron emission spectroscopy diagnostics. Rev. Sci. Instr., 92(4):043526, 2021.
- [9] J. Breslau and D. Liu. Reconstructing fast ion distribution functions from NUBEAM. TRANSP Users Group Meeting, May 4, 2017.
- [10] Ph. Lauber et al. Energetic particle dynamics induced by off-axis neutral beam injection on ASDEX Upgrade, JT-60SA and ITER. 28th IAEA Fusion Energy Conference (FEC 2020), May 10–15, 2021.
- [11] E. Tholerus and M. Fitzgerald. Calculating the fast ion distribution function in constants-of-motion space for MHD instability analysis. Joint T17-07 fast ion physics group & M15-24 meeting, May 31, 2017.
- [12] A. Bierwage. VisualStart: GUI-Aided Unified Initialization Tool for Hybrid (MHD + Particle) Simulations. 17th NEXT Meeting, Kashiwa, Japan, March 15-–16, 2012.
- [13] A. Bierwage, C. Di Troia, S. Briguglio, and G. Vlad. Orbit-based representation of equilibrium distribution functions for low-noise initialization of kinetic simulations of toroidal plasmas. Comp. Phys. Comm., 183:1107, 2012.
- [14] A. Bierwage, K. Shinohara, N. Aiba, and Y. Todo. Role of convective amplification of energetic particle modes for N-NB ion dynamics in JT-60U. Nucl. Fusion, 53(7):073007, 2013.
- [15] A. Bierwage, Y. Todo, N. Aiba, and K. Shinohara. Dynamics of low- shear Alfvén modes driven by energetic N-NB ions in JT-60U. Nucl. Fusion, 54(10):104001, 2014.
- [16] A. Bierwage, K. Shinohara, Y. Todo, N. Aiba, M. Ishikawa, G. Matsunaga, M. Takechi, and M. Yagi. Self-consistent long-time simulation of chirping and beating energetic particle modes in JT-60U plasmas. Nucl. Fusion, 57(1):016036, 2017.
- [17] A. Bierwage, K. Shinohara, Y. Todo, N. Aiba, M. Ishikawa, G. Matsunaga, M. Takechi, and M. Yagi. Simulations tackle abrupt massive migrations of energetic beam ions in a tokamak plasma. Nature Comms., 9:3282, 2018.
- [18] A. Bierwage and K. Shinohara. Orbit-based analysis of resonant excitations of Alfvén waves in tokamaks. Phys. Plasmas, 21(11):112116, 2014.
- [19] A. Bierwage and K. Shinohara. Orbit-based analysis of nonlinear energetic ion dynamics in tokamaks. I. Effective mode number profile and resonant frequency tracking. Phys. Plasmas, 23(4):042511, 2016.
- [20] A. Bierwage and K. Shinohara. Orbit-based analysis of nonlinear energetic ion dynamics in tokamaks. II. Mechanisms for rapid chirping and convective amplification. Phys. Plasmas, 23(4):042512, 2016.
- [21] F. Zonca, L. Chen, S. Briguglio, G. Fogaccia, G. Vlad, and X. Wang. Nonlinear dynamics of phase space zonal structures and energetic particle physics in fusion plasmas. New J. Phys., 17(1):013052, 2015.
- [22] L. Chen and F. Zonca. Physics of Alfvén waves and energetic particles in burning plasmas. Rev. Mod. Phys., 88:15008, 2016.
- [23] M.V. Falessi and F. Zonca. Transport theory of phase space zonal structures. Phys. Plasmas, 26(2):022305, 2019.
- [24] M. V. Falessi F. Zonca, L. Chen and Z. Qiu. Nonlinear radial envelope evolution equations and energetic particle transport in tokamak plasmas. J. Phys.: Conf. Ser., 1785:012005, 2021. Varenna-Lausanne 2020, 12-16 October, Lausanne, Switzerland.
- [25] S. Benjamin. Distribution transforms for orbit tomography. Bachelor Thesis, The Australian National University, 2021. Paper in preparation.
- [26] J.A. Rome and Y-K.M. Peng. The topology of tokamak orbits. Nucl. Fusion, 19(9):1193, 1979.
- [27] Ph. Lauber and Z. Lu. Analytical finite-lamor-radius and finite-orbit-width model for the LIGKA code and its application to KGAM and shear Alfvén physics. J. Phys.: Conf. Ser., 1125:012015, 2018. Varenna-Lausanne 2018, 27-31 August, Varenna, Italy.
- [28] A. Bierwage, M. Toma, and K. Shinohara. MHD and resonant instabilities in JT-60SA during current ramp-up with off-axis N-NB injection. Plasma Phys. Control. Fusion, 59(12):125008, 2017.
- [29] R.G. Littlejohn. Variational principles of guiding centre motion. J. Plasma Physics, 29:111, 1983.
- [30] D. Moseev and M. Salewski. Bi-Maxwellian, slowing-down, and ring velocity distributions of fast ions in magnetized plasmas. Phys. Plasmas, 26(2):020901, 2019.
- [31] M. Nocente et al. Generation and observation of fast deuterium ions and fusion-born alpha particles in JET D–3He plasmas with the 3-ion radio-frequency heating scenario. Nucl. Fusion, 60(12):124006, 2020.
- [32] Y.O. Kazakov et al. Physics and applications of three-ion ICRF scenarios for fusion research. Phys. Plasmas, 28(2):020501, 2021.
- [33] A. Bierwage, K. Shinohara, Ye.O. Kazakov, V. Kiptily, Ph. Lauber, M. Nocente, Ž. Štancar, S. Sumida, M. Yagi, J. Garcia, S. Ide, and JET Contributors. Energy-selective confinement of fusion-born alpha particles during internal relaxations in a tokamak plasma. Submitted, 2022. Preprint: http://arxiv.org/abs/2109.03427.
- [34] M. Weiland, R. Bilato, R. Dux, B. Geiger, A. Lebschy, F. Felici, R. Fischer, D. Rittich, M. van Zeeland, the ASDEX Upgrade Team, and the Eurofusion MST1 Team. RABBIT: Real-time simulation of the NBI fast-ion distribution. Nucl. Fusion, 58(8):082032, 2018.
- [35] Ž. Štancar, Z. Ghani, J. Eriksson, A. Žohar, S. Conroy, Ye. O. Kazakov, T. Craciunescu, M. Nocente, L. Garzotti, V. Radulović, P. Sirén, V. Kiptily, K. Kirov, Y. Baranov, G. Szepesi, M. Dreval, M. Gorelenkova, H. Weisen, E. Militello-Asp, L. Snoj, and JET Contributors. Experimental validation of an integrated modelling approach to neutron emission studies at JET. Nucl. Fusion, 61:126030, 2021.
- [36] F. Porcelli, R. Stankiewicz, W. Kerner, and H.L. Berk. Solution of the drift-kinetic equation for global plasma modes and finite particle orbit widths. Phys. Plasmas, 1(3):470, 1994.
- [37] Y. Zhao and R.B. White. Simulation of -particle redistribution due to sawteeth on the Tokamak Fusion Test Reactor. Phys. Plasmas, 4(4):1103, 1997.
- [38] K. Tani, M. Azumi, H. Kishimoto, and S. Tamura. Effect of toroidal field ripple on fast ion behavior in a tokamak. J. Phys. Soc. Japan, 50(5):1726, 1981.
- [39] K. Tani and M. Azumi. Simulation studies on alpha-particle-driven current in tokamak reactors. Nucl. Fusion, 48(8):085001, 2008.
- [40] Y. Todo and T. Sato. Linear and nonlinear particle-magnetohydrodynamic simulations of the toroidal Alfvén eigenmode. Phys. Plasmas, 5(5):1321, 1998.
- [41] Y. Todo, K. Shinohara, M. Takechi, and M. Ishikawa. Nonlocal energetic particle mode in a JT-60U plasma. Phys. Plasmas, 12(1):012503, 2005.
- [42] Y. Todo, M.A. Van Zeeland, A. Bierwage, and W.W. Heidbrink. Multi-phase simulation of fast ion profile flattening due to Alfvén eigenmodes in a DIII-D experiment. Nucl. Fusion, 54:104012, 2014.
- [43] J. R. Cary and A. J. Brizard. Hamiltonian theory of guiding-center motion. Rev. Mod. Phys., 81:693, 2009.
- [44] M. Deutsch. Angular correlations in nuclear reactions. Rep. Progr. Phys., 14(1):196, 1951.
- [45] A.O. Hanson, R.F. Taschek, and J. H. Williams. Monoergic neutrons from charged particle reactions. Rev. Mod. Phys., 21(4):635, 1949.
- [46] M. Salewski, M. Nocente, B. Madsen, I. Abramovic, M. Fitzgerald, G. Gorini, P.C. Hansen, W.W. Heidbrink, A.S. Jacobsen, T. Jensen, V.G. Kiptily, E.B. Klinkby, S.B. Korsholm, T. Kurki-Suonio, A.W. Larsen, F. Leipold, D. Moseev, S.K. Nielsen, S.D. Pinches, J. Rasmussen, M. Rebai, M. Schneider, A. Shevelev, S. Sipilä, M. Stejner, and M. Tardocchi. Alpha-particle velocity-space diagnostic in ITER. Nucl. Fusion, 58(9):096019, 2018.
- [47] S. Sumida, K. Shinohara, R. Ikezoe, M. Ichimura, M. Sakamoto, M. Hirata, and S. Ide. Characteristics of fast 3He ion velocity distribution exciting ion cyclotron emission on JT-60U. Plasma Phys. Control. Fusion, 61(2):025014, 2019.
- [48] S. Sumida, K. Shinohara, M. Ichimura, T. Bando, A. Bierwage, and S. Ide. Identification of slow-wave ion cyclotron emission on JT-60U. Nucl. Fusion, 61(11):116036, 2021.
- [49] A. Bierwage, Y. Todo, N. Aiba, and K. Shinohara. Sensitivity study for N-NB-driven modes in JT-60U: Boundary, diffusion, gyroaverage, compressibility. Nucl. Fusion, 56(10):106009, 2016.
-
[50]
ITER physics data model documentation (restricted access).
https://sharepoint.iter.org/departments/
POP/CM/IMDesign/Data%20Model/CI/imas-3.33.0/
html_documentation.html
. Status: Aug. 2021. - [51] R.B. White and M.S. Chance. Hamiltonian guiding center drift orbit calculation for plasmas of arbitrary cross section. Phys. Fluids, 27(10):2455, 1984.
- [52] Y. Chen, R.B. White, G.-Y. Fu, and R. Nazikian. Numerical study of the nonlinear evolution of toroidicity-induced Alfvén eigenmodes. Phys. Plasmas, 6:226, 1999.
- [53] R.B. White, V.N. Duarte, N.N. Gorelenkov, E.D. Fredrickson, M. Podesta, and H.L. Berk. Modeling of chirping toroidal Alfvén eigenmodes in NSTX. Phys. Plasmas, 26:092103, 2019.
- [54] S.D. Pinches, L.C. Appel, J. Candy, S.E. Sharapov, H.L. Berk, D. Borba, B.N. Breizman, T.C. Hender, K.I. Hopcraft, G.T.A. Huysmans, and W. Kerner. The HAGIS self-consistent nonlinear wave-particle interaction model. Comp. Phys. Comm., 111:133, 1998.
- [55] S.D. Pinches, H.L. Berk, M.P. Gryaznevich, S.E. Sharapov, and JET-EFDA Contributors. Spectroscopic determination of the internal amplitude of frequency sweeping TAE. Plasma Phys. Control. Fusion, 46(7):S47, 2004.