Flux coordinates: Difference between revisions

From FusionWiki
Jump to navigation Jump to search
Line 63: Line 63:
</math>
</math>
It can be seen that <ref name='Dhaeseleer'></ref> <math>g \equiv \det(g_{ij}) = J^2 \Rightarrow J = \sqrt{g}</math>
It can be seen that <ref name='Dhaeseleer'></ref> <math>g \equiv \det(g_{ij}) = J^2 \Rightarrow J = \sqrt{g}</math>
=== Some surface elements ===
Let <math>S_\phi</math> a surface defined by a constant value of <math>\phi</math>. Then, the surface element is
:<math>
d{\mathbf S}_\phi = \mathbf{e}_\psi\times\mathbf{e}_\theta\d\psi d\theta
</math> 


=== Gradient, Divergence and Curl in curvilinear coordinates ===
=== Gradient, Divergence and Curl in curvilinear coordinates ===

Revision as of 18:21, 7 September 2010

General curvilinear coordinates

Here we briefly review the basic definitions of a general curvilinear coordinate system for later convenience when discussing toroidal flux coordinates and magnetic coordinates.

Coordinates and basis vectors

Let 𝐱 be a set of euclidean coordinates on 3 and let (ψ(𝐱),θ(𝐱),ϕ(𝐱)) define a change of coordinates, arbitrary for the time being. We can calculate the contravariant basis vectors as

𝐞i={ψ,θ,ϕ}

and the dual covariant basis defined as

𝐞i=𝐱ui𝐞i𝐞j=δij𝐞i=𝐞j×𝐞k|𝐞i𝐞j×𝐞k|=g𝐞j×𝐞k,

where (i,j,k) are cyclic permutations of (1,2,3) and we have used the notation (u1,u2,u3)=(ψ,θ,ϕ). The Jacobian g is defined below.

Any vector field 𝐁 can be represented as

𝐁=(𝐁𝐞i)𝐞i=Bi𝐞i

or

𝐁=(𝐁𝐞i)𝐞i=Bi𝐞i.

In particular any basis vector 𝐞i=(𝐞i𝐞j)𝐞j. The metric tensor is defined as

gij=𝐞i𝐞j;gij=𝐞i𝐞j;gij=𝐞i𝐞j=δij.

The metric tensors can be used to raise or lower indices. Take

𝐁=Bi𝐞i=Bigij𝐞j=Bj𝐞j,

so that

Bj=gijBi.

Jacobian

The Jacobian of the coordinate transformation 𝐱(ψ,θ,ϕ) is defined as

J=det((x,y,z)(ψ,θ,ϕ))=𝐱ψ𝐱θ×𝐱ϕ

and that of the inverse transformation

J1=det((ψ,θ,ϕ)(x,y,z))=ψθ×ϕ

It can be seen that [1] gdet(gij)=J2J=g

Some surface elements

Let Sϕ a surface defined by a constant value of ϕ. Then, the surface element is

Failed to parse (unknown function "\d"): {\displaystyle d{\mathbf S}_\phi = \mathbf{e}_\psi\times\mathbf{e}_\theta\d\psi d\theta }

Gradient, Divergence and Curl in curvilinear coordinates

The gradient of a function f is naturally given in the contravariant base vectors:

f=fuiui=fui𝐞i.

The divergence of a vector 𝐀 is best expressed in terms of its contravariant components

𝐀=1gui(gAi),

while the curl is

×𝐀=εijkgui(gAj)𝐞k

given in terms of the covariant base vectors, where εijk is the [[::Wikipedia:Levi-Civita symbol| Levi-Civita]] symbol.

Flux coordinates

A flux coordinate set is one that includes a flux surface label as a coordinate. A flux surface label is a function that is constant and single valued on each flux surface. In our naming of the general curvilinear coordinates we have already adopted the usual flux coordinate convention for toroidal equilibrium with nested flux surfaces, where ψ is the flux surface label and θ,ϕ are 2π-periodic poloidal and toroidal-like angles.

Different flux surface labels can be chosen like toroidal (Ψtor) or poloidal (Ψpol) magnetic fluxes or the volume contained within the flux surface V. By single valued we mean to ensure that any flux label ψ1=f(ψ2) is a monotonous function of any other flux label ψ2, so that the function f is invertible at least in a volume containing the region of interest. We will denote a generic flux surface label by ψ.

To avoid ambiguity in the sign of line and surface integrals we impose dψ(V)/dV>0, the toroidal angle increases in the clockwise direction when seen from above and the poloidal angle increases such that ψθ×ϕ>0.

Flux Surface Average

The flux surface average of a function Φ is defined as the limit

Φ=limδ𝒱01δ𝒱δ𝒱Φd𝒱

where δ𝒱 is the volume confined between two flux surfaces. It is therefore a volume average over an infinitesimal spatial region rather than a surface average. To avoid confusion, we denote volume elements or domains with the calligraphic 𝒱. Capital V is reserved for the flux label (coordinate) defined as the volume within a flux surface.

Introducing the differential volume element d𝒱=gdψdθdϕ

Φ=limδ𝒱01δ𝒱δ𝒱Φgdψdθdϕ=dψdV02π02πΦgdθdϕ

or, noting that 1=1, we have dVdψ=02π02πgdθdϕ and we get to a more practical form of the Flux Surface Average

Φ=02π02πΦgdθdϕ02π02πgdθdϕ

Note that dS=|ψ|gdθdϕ, so the FSA is a surface integral weighted by |V|1 :

Φ=dψdV02π02πΦgdθdϕ=dψdVS(ψ)Φ|ψ|dS=S(ψ)Φ|V|dS

Applying Gauss' theorem to the definition of FSA we get to the identity

Γ=limδ𝒱01δ𝒱δ𝒱Γd𝒱=limδ𝒱01δ𝒱S(δ𝒱)ΓV|V|dS=limδ𝒱01δ𝒱(ΓVS(V+δ𝒱)ΓVS(V))=ddVΓV.

Useful properties of FSA

Some useful properties of the FSA are

  • Γ=ddVΓV=1VddψVΓψ
  • 𝒱Γd𝒱=ΓV=VΓψwhere𝒱isthevolumeenclosedbyafluxsurface.
  • 𝐁f=(𝐁f)=0,singlevaluedf(𝐱),if𝐁=0andψ𝐁=0
  • ψ×𝐀=(ψ×𝐀)=0.
  • 𝐁θ=2πdΨpoldV(Note:θ(𝐱)isnotsinglevalued)
  • 𝐁ϕ=2πdΨtordV(Note:ϕ(𝐱)isnotsinglevalued)
  • g1=4π2V

In the above V=dVdψ. Some vector identities are useful to derive the above identities.

Magnetic field representation in flux coordinates

Contravariant Form

Any solenoidal vector field 𝐁 can be written as 𝐁=α×ν called its Clebsch representation. For a magnetic field with flux surfaces (ψ=const,ψ𝐁=0) we can choose, say, α to be the flux surface label ψ

𝐁=ψ×ν

Field lines are then given as the intersection of the constant-ψ and constant-ν surfaces. This form provides a general expression for 𝐁 in terms of the covariant basis vectors of a flux coordinate system

𝐁=νθψ×θ+νϕψ×ϕ=1gνθ𝐞ϕ1gνϕ𝐞θ=Bϕ𝐞ϕ+Bθ𝐞θ.

in terms of the function ν, sometimes referred to as the magnetic field's stream function.

It is worthwhile to note that the Clebsch form of 𝐁 corresponds to a magnetic vector potential 𝐀=νψ (or 𝐀=ψν as they differ only by the Gauge transformation 𝐀𝐀(ψν)).

The general form of the stream function is

ν(ψ,θ,ϕ)=12π(ΨtorθΨpolϕ)+ν~(ψ,θ,ϕ)

where ν~ is a differentiable function periodic in the two angles. This general form can be derived by using the fact that 𝐁 is a physical function (hence singe-valued). The specific form for the coefficients in front of the secular terms (i.e. the non-periodic terms) can be obtained from the FSA properties .

Covariant Form

If we consider an equilibrium magnetic field such that 𝐣×𝐁ψ, where 𝐣 is the current density , then both 𝐁ψ=0 and ×𝐁ψ=0 and the magnetic field can be written as

𝐁=χηψ

where χ is identified as the magnetic scalar potential. Its general form is

χ(ψ,θ,ϕ)=Itor2πθ+Ipold2πϕ+χ~(ψ,θ,ϕ)
Sample integration circuits for the definitions of currents.
Sample integration circuits for the current definitions.
Sample surface for the definition of the current though a disc.
Sample surface for the definition of the current though a disc. Note that only the current of more external surfaces contribute to the flux of charge through the surface.

Note that I is not the current but μ0 times the current. The functional dependence on the angular variables is again motivated by the single-valuedness of the magnetic field. The particular form of the coefficients can be obtained noting that

Sμ0𝐣d𝐒=S𝐁d𝐥=(χηψ)d𝐥=(dχηdψ)

and choosing an integration circuit contained within a flux surface (dψ=0). Then we get

Sμ0𝐣d𝐒=Δχ=Itor2πΔθ+Ipold2πΔϕ.

If we now choose a toroidal circuit (Δθ=0,Δϕ=2π) we get

Ipold=Sμ0𝐣d𝐒;withSsuchthat(Δθ=0,Δϕ=2π).

here the superscript d is meant to indicate the flux is computed through a disc limited by the integration line, as opposed to the ribbon limited by the integration line on one side and the magnetic axis on the other that was used for the definition of poloidal magnetic flux Ψpol above these lines. Similarly

Itor=Sμ0𝐣d𝐒;withSsuchthat(Δθ=2π,Δϕ=0).
Contravariant Form of the current density

Taking the curl of the covariant form of 𝐁 the equilibrium current density 𝐣 can be written as

μ0𝐣=ψ×η.

By very similar arguments as those used for 𝐁 (note that both 𝐁 and 𝐣 are solenoidal fields tangent to the flux surfaces) it can be shown that the general expression for η is

η(ψ,θ,ϕ)=12π(ItorθIpolϕ)+η~(ψ,θ,ϕ).

Note that the poloidal current is now defined through a ribbon and not a disc. The two currents are related as 𝐣=0 implies

Ipol+Ipold=ψ=0𝐁d𝐥Ipol+(Ipold)=0,

where the integral is performed along the magnetic axis and therefore does not depend on ψ. This can be used to show that a expanded version of 𝐁 is given as

𝐁=η~ψ+Itor2πθ+Ipold2πϕ+χ~.

Magnetic coordinates

Magnetic coordinates are a particular type of flux coordinates in which the magnetic field lines are straight lines. In mathematical terms this implies that the periodic part of the magnetic field's stream function is zero in these coordinates so the magnetic field reads

𝐁=ψ×(Ψtor2πθfΨpol2πϕf)=Ψpol2πg𝐞θ+Ψtor2πg𝐞ϕ.

Now a field line is given by ψ=ψ0 and ΨtorθfΨpolϕf=2πν0.

Note that, in general, the contravariant components of the magnetic field in a magnetic coordinate system

Bθf=Ψpol2πg;Bϕf=Ψtor2πg

are not flux functions, but their quotient is

BθfBϕf=ΨpolΨtorι2π,

ι being the rotational transform. In a magnetic coordinate system the poloidal 𝐁P=Bθ𝐞θ and toroidal 𝐁T=Bϕ𝐞ϕ components of the magnetic field are individually divergence-less.

Transforming between Magnetic coordinates systems

There are infinitely many systems of magnetic coordinates. Any transformation of the angles of the from

θF=θf+ΨpolG(ψ,θf,ϕf);ϕF=ϕf+ΨtorG(ψ,θf,ϕf)

where G is periodic in the angles, preserves the straightness of the field lines (as can be easily checked by direct substitution). The spatial function G(ψ,θf,ϕf), is called the generating function. It can be obtained from a magnetic differential equation if we know the Jacobians of the two magnetic coordinate systems gf and gF. In fact taking 𝐁 on any of the transformation of the angles and using the known expressions for the contravariant components of 𝐁 in magnetic coordinates we get

2π𝐁G=1gF1gf.

The LHS of this equation has a particularly simple form when one uses a magnetic coordinate system. For instance, if we write 𝐁 in terms of the original magnetic coordinate system we get

(Ψpolθf+Ψtorϕf)G=gfgF1.

which can be turned into an algebraic equation on the Fourier components of G

Gnm=iΨpoln+Ψtorm(gfgF)nm.

where

G(ψ,θf,ϕf)=n,mGnm(ψ)ei(nθf+mϕf)

and G00=0.


Particular choices of G can be made so as to simplify the description of other fields. The most commonly used magnetic coordinate systems are: [1]

  • Hamada coordinates. [2][3] In these coordinates, both the magnetic field lines and current lines corresponding to the MHD equilibrium are straight. Referring to the definitions above, both ν~ and η~ are zero in Hamada coordinates.
  • Boozer coordinates. [4][5] In these coordinates, the magnetic field lines corresponding to the MHD equilibrium are straight and so are the diamagnetic lines , i.e. the integral lines of ψ×𝐁. Referring to the definitions above, both ν~ and χ~ are zero in Boozer coordinates.

References

  1. 1.0 1.1 W.D. D'haeseleer, Flux coordinates and magnetic field structure: a guide to a fundamental tool of plasma theory, Springer series in computational physics, Springer-Verlag (1991) ISBN 3540524193
  2. S. Hamada, Nucl. Fusion 2 (1962) 23
  3. J.M. Greene and J.L Johnson, Stability Criterion for Arbitrary Hydromagnetic Equilibria, Phys. Fluids 5 (1962) 510
  4. A.H. Boozer, Plasma equilibrium with rational magnetic surfaces, Phys. Fluids 24 (1981) 1999
  5. A.H. Boozer, Establishment of magnetic coordinates for a given magnetic field, Phys. Fluids 25 (1982) 520