Equilibrium And RMP Outputs

This page is generated from in-code XGC I/O metadata by utils/python/documentation/document_outputs.py.

Equilibrium, magnetic-field, and resonant magnetic perturbation outputs.

xgc.bfield.bp

Variable

Units

Description

Context

bfield

T

Magnetic field vector

context

n_n

Positive integer

Number of grid vertices

context

psi

T m^2

Equilibrium magnetic-flux label evaluated at mesh vertices; axisymmetric runs use poloidal flux divided by 2*pi.

context

xgc.bfieldm.bp

Variable

Units

Description

Context

N

Positive integer

Number of midplane points (1000).

context

abs_bphi

T

Absolute value of toroidal magnetic field.

context

dpdr

T m

Nonnegative R*sqrt(B_R^2+B_Z^2) on Z=Z_axis, phi=0; for an axisymmetric equilibrium this is the magnitude of grad(poloidal flux/(2*pi)), not its signed R derivative.

context

psi_n

dimensionless

Equilibrium flux label divided by eq_psi_norm, sampled on Z=Z_axis, phi=0; the denominator is the X-point flux for axisymmetric equilibria and the configured reference-point flux for stellarators.

context

rmajor

m

Major radius.

context

z

m

Z(height) at the magnetic axis.

context

xgc.equil.bp

Variable

Units

Description

Context

bp_sign

dimensionless

Direction of poloidal field (1 or -1)

context

bt_sign

dimensionless

Direction of toroidal field (1 or -1)

context

eq_B_R_rz

T

Radial magnetic field component on rectangular grid points

context

eq_B_Z_rz

T

Z magnetic field component on rectangular grid points

context

eq_B_phi_rz

T

Toroidal magnetic field component on rectangular grid points

context

eq_I

T m

Positive poloidal-current function magnitude as a function of the equilibrium flux label; the signed toroidal-field function is bt_sign*eq_I.

context

eq_PEST_angle_rz

rad

PEST coordinate on rectangular grid points

context

eq_VMEC_angle_rz

rad

VMEC coordinate on rectangular grid points

context

eq_axis_b

T

Magnetic field at the magnetic axis

context

eq_axis_r

m

Major radius at the magnetic axis

context

eq_axis_z

m

Z (height) at the magnetic axis

context

eq_max_r

m

Maximum major radius of interpolation boundary

context

eq_max_z

m

Maximum height of interpolation boundary

context

eq_min_r

m

Minimum major radius of interpolation boundary

context

eq_min_z

m

Minimum height of interpolation boundary

context

eq_mp

Positive integer

Number of planes in input grid (stellarator only)

context

eq_mpsi

Positive integer

Number of psi (poloidal flux) grid points

context

eq_mr

Positive integer

Number of horizontal R grid points

context

eq_mz

Positive integer

Number of vertical Z grid points

context

eq_psi_grid

T m^2 (axisymmetric); dimensionless (stellarator)

Equilibrium flux-grid coordinate: dimensional poloidal flux divided by 2*pi for axisymmetric equilibria, or the supplied stellarator flux label divided by eq_psi_norm.

context

eq_psi_norm

T m^2

Poloidal flux used for normalization

context

eq_psi_rz

dimensionless

Normalized equilibrium flux label on the stellarator rectangular RZ grid, equal to the supplied flux label divided by eq_psi_norm.

context

eq_psi_rz

T m^2

Poloidal flux on the rectangular grid points

context

eq_x_psi

T m^2

Poloidal flux at the first (lower) X-point

context

eq_x_r

m

Major radius at the first (lower) X-point

context

eq_x_z

m

Height at the first (lower) X-point

context

nphi

Positive integer

Number of toroidal mesh planes \(N_{\\mathrm{planes}}\)

context

periodicity

Positive integer

Toroidal periodicity from VMEC or torus wedge number

context

xgc.rmp_deltaa.bp

Variable

Units

Description

Context

deltaa

T m

RMP perturbation of the parallel vector potential.

context

deltaa_im

T m

Sine coefficients of the vacuum vector potential on the RZ grid.

deltaa_re

T m

Cosine coefficients of the vacuum vector potential on the RZ grid.

n_coord

Positive integer

Number of vector components in R,Z,phi order.

n_n

Positive integer

Number of mesh nodes per plane.

context

n_phi

Positive integer

Number of toroidal mesh planes \(N_{\\mathrm{planes}}\).

context

n_r

Positive integer

Number of radial input grid points.

n_z

Positive integer

Number of vertical input grid points.

ntor

integer mode number

Toroidal mode numbers for RMP simulations.

context

ntor

Integer mode number

Toroidal perturbation mode numbers.

num_ntor

Positive integer

Number of configured input toroidal harmonics in the static vacuum RMP field (ptb_3db_num_ntor).

context

num_ntor

Positive integer

Number of toroidal perturbation modes.

xgc.rmp_residual.bp

Variable

Units

Description

Context

Apar_mn

T m

Parallel vector-potential Fourier amplitudes by toroidal mode, poloidal mode, and flux surface.

context

dApar

T m

Perturbed parallel vector-potential correction on mesh nodes and toroidal planes.

context

dApar_mn

T m

Parallel vector-potential correction Fourier amplitudes by toroidal mode, poloidal mode, and flux surface.

context

damp_fac

dimensionless

Damping factor applied to each RMP Fourier mode.

context

gstep

Non-negative integer

XGC global simulation time step for this RMP residual output slice.

context

ipc

Positive integer

Runge-Kutta stage index for this RMP residual output slice.

context

mpol

Integer mode number

Poloidal mode numbers used in the RMP residual diagnostic.

context

nnode

Positive integer

Number of mesh nodes in the RMP residual diagnostic.

context

npsi

Positive integer

Number of radial flux-surface samples for the RMP residual diagnostic.

context

ntor

Integer mode number

Toroidal mode numbers used in the RMP residual diagnostic.

context

num_mpol

Positive integer

Number of poloidal mode numbers in the RMP residual diagnostic.

context

num_ntor

Positive integer

Number of toroidal mode numbers in the RMP residual diagnostic.

context

psi_res

T m^2

Unnormalized equilibrium flux labels on the selected psi_surf2 grid used by the RMP residual diagnostic; axisymmetric values are poloidal flux divided by 2*pi.

context

rampup_factor

dimensionless

RMP ramp-up factor applied at this diagnostic time.

context

rmp_residual

dimensionless

Relative RMP update residual for each toroidal DFT slot and poloidal mode: radial L2 norm of dApar_mn divided by max(tol0, radial L2 norm of Apar_mn). Ignored toroidal slots are zero.

context

time

s

Simulation time for the RMP damping-factor residual diagnostic.

context

tindex

Positive integer

Index of this RMP residual output time slice. Before ptb_3db_start_time this follows gstep; after ptb_3db_start_time it counts only electromagnetic steps in the RMP EM/ES cycle. Use ipc to distinguish Runge-Kutta stages written at the same tindex.

context

xgc.rmp_deltab.bp

Variable

Units

Description

Context

deltab_im

T

Sine coefficients of the vacuum magnetic perturbation.

deltab_re

T

Cosine coefficients of the vacuum magnetic perturbation.

n_coord

Positive integer

Number of magnetic-field components in R,Z,phi order.

nnode

Positive integer

Number of mesh nodes per plane.

ntor

Integer mode number

Toroidal perturbation mode numbers.

num_ntor

Positive integer

Number of toroidal perturbation modes.

xgc.rmp_nonres_deltab.bp

Variable

Units

Description

Context

apar_vac_filtered

T m

Filtered parallel vacuum potential at each plane’s right mesh.

apar_vac_full

T m

Full parallel vacuum potential at each plane’s right mesh.

full_deltab_im

T

Sine coefficients of the full vacuum magnetic perturbation.

full_deltab_re

T

Cosine coefficients of the full vacuum magnetic perturbation.

n_coord

Positive integer

Number of magnetic-field components in R,Z,phi order.

nnode

Positive integer

Number of mesh nodes per plane.

nonres_deltab_im

T

Sine coefficients of the non-resonant vacuum magnetic perturbation.

nonres_deltab_re

T

Cosine coefficients of the non-resonant vacuum magnetic perturbation.

ntor

Integer mode number

Toroidal perturbation mode numbers.

num_ntor

Positive integer

Number of toroidal perturbation modes.

xgc.rmp_rampup_fac.bp

Variable

Units

Description

Context

gstep

Non-negative integer

Global step of the vacuum RMP ramp-up factor.

rampup_factor

dimensionless

Relative amplitude of the vacuum RMP field.

time

s

Simulation time of the vacuum RMP ramp-up factor.

tindex

Non-negative integer

Ramp-up output index, equal to the global simulation step.