Tracing Particles under Vacuum Assumptions
I've been working on creating a GPU-parallelized particle tracer for energetic particles in stellarators. I thought it'd be informative (both for myself and for others) to publish a writeup of the equations I'm using in my solver.
Writeup
Consider a particle of mass and charge , moving in equilibrium field in presence of shear-Alfven wave perturbation with magnetic field . The drift kinetics of a particle with charge is described with the expanded Lagrangian (Littlejohn)
where is time, is the component of particle's velocity along the equilibrium magnetic field, is the magnetic moment, and is the scalar potential of the shear Alfven wave. Observe that scalar and vector potentials are related for transverse wave, since
where is derivative along the magnetic field, and is time.
normalized by the total toroidal flux , and are poloidal and toroidal Boozer angles. Co- and contravariant forms of the equilibrium field are, respectively,
where is the rotational transform. In what follows, equilibrium current is assumed to be straight in Boozer coordinates, .
We know that we may choose a gauge where the vector potential satisfies:
We also know that
We assume (for unperturbed) that . So the Lagrangian in Boozer coordinates is:
Simplifying,
Using the dual property of the contravariant and covariant bases, we get
Now, we find the canonical momenta of (assuming ). Immediately, we know
since has no . We know that
We know that the energy is
but the first part of the expression cancels out so we get
The implicit EOMs are derived from the Euler-Lagrange equations. We derive the EOMs under a vacuum assumption (i.e. ).
Our simplified Lagrangian is:
and our new momenta for is .
We have the following EOM: From
From
From
From
Substituting this into our equation from , we find that
Substituting into our equation from , we find that
Finally, we solve for
Solving, for , we have
We know that
These two have a common term of
that gets cancelled when we sum them in our expression:
From here, it is relatively easy to substitute into the rest of our equation:
Note that, if is invariant with respect to , then we have
Note also that if depends only on and then we have a new Lagrangian:
(of course, the time derivatives of each variable are also in the Lagrangian).
We can now treat as a function of . In this new field, we have independent of and will have
We know that
Substituting into our old Lagrangian:
yields
as a conserved quantity.