Source Diagnostics

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

Distribution-function source diagnostics and neutral-particle source outputs.

xgc.fsourcediag.*.bp

Variable

Units

Description

Context

fullname

[m^3, 1/m^3, dimensionless, J, kg m/s]

Per-node f0_df diagnostic [species]_[channel]_[source]; channel is volume, density, density_change, energy_change, or momentum_change for the named source. Change channels are normalized by the source density/weight sum, so the actual density, momentum, and energy changes are obtained by multiplying by the corresponding density variable. The source [total] is a special case whose meaning depends on f0_df0g_transfer_algorithm. For PersistentRetainedDf0g, [total] is the conservation error from dropping distribution-function components that could not be interpolated to particles. For LegacyAddToF0gH, [total] is the remainder of the mesh-to-particle transfer and is added to the background distribution function; in that case, the sum of [total] and [total2] should equal the sum of the other sources.

context

fullname

[dimensionless, dimensionless, dimensionless, J, kg m/s]

Per-node particle source diagnostic [species]_[channel]_total2. density_change, energy_change and momentum_change are the net deposited particle changes across the current source call, divided by the corresponding [species]_density_total mesh weight sum. The volume and density total2 channels are not accumulated and remain zero. Multiply change channels by [species]_density_total to obtain changes per physical volume; divide by the applicable source-update duration for rates.

context

gstep

Non-negative integer

XGC global simulation time step for this f-source diagnostic output slice.

context

psi

dimensionless

Normalized poloidal magnetic flux at each mesh node: grid.psi/magnetic_field.psi_norm().

context

psi_mks

Wb/rad

Poloidal magnetic flux \(\\psi/(2\\pi)\) in MKS units.

context

samples

Positive integer

Output size (number of mesh vertices).

context

time

s

Simulation time of step in seconds.

context

tindex

Positive integer

Index of this f-source diagnostic output time slice. Values: 1, 2, …, # outputs.

context

xgc.neutrals.*.bp

Variable

Units

Description

Context

den_neut

m^-3

Neutrals density.

context

gstep

Non-negative integer

XGC global simulation time step for this neutral output slice.

context

n_n

Positive integer

Number of mesh nodes per plane.

context

rel_std

dimensionless

Relative statistical uncertainty of the neutral background density on mesh nodes.

context

temp_neut

eV

Neutrals temperature.

context

time

s

Simulation time of this neutral output slice.

context

tindex

Positive integer

Index of this neutral diagnostic output time slice. Values: 1, 2, …, # outputs.

context