Mesh Outputs
This page is generated from in-code XGC I/O metadata by utils/python/document_outputs.py.
Mesh, geometry, and f0 mesh-context outputs.
xgc.mesh.bp
Variable |
Units |
Description |
|---|---|---|
|
rad |
PEST coordinate on the mesh nodes (only written for stellarator simulations). |
|
rad |
VMEC coordinate on the mesh nodes (only written for stellarator simulations). |
|
dimensionless |
Inverse aspect ratio \(r_{\min}/R_{\maj}\) for the flux surface. |
|
dimensionless |
Barycentric interpolation weights at the full-plane field-following projection of each mesh node. |
|
dimensionless |
Barycentric interpolation weights at the half-plane field-following projection of each mesh node. |
|
Positive integer |
Number of nodes that make up the boundary of the domain (and represent the wall). |
|
Positive integer |
Node index for each wall node (0-indexed). Currently not “ordered”, but in the order specified in .node file. |
|
Positive integer |
Maximum resolvable poloidal mode number on each flux surface, defined from the largest spacing in straight-field-line poloidal angle between adjacent vertices: \(2\pi/[sml\_mode\_select\_cutoff \, \max_j(\theta_{j+1}-\theta_j)]\). |
|
Positive integer |
Number of flux surfaces; same value as nsurf. |
|
Positive integer |
Number of mesh vertices (per plane). |
|
Positive integer |
Number of mesh triangles (per plane). |
|
index |
Triangle connectivity list for the poloidal plane mesh; each triplet contains zero-based mesh-node indices. |
|
Positive integer |
Vertex indices closest to the intersection of the field line through vertex i on plane j with plane j+1 for rightward projection (tokamak only). |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and toroidal projection. The volume of the whole torus is \(N_{\mathrm{wedge}} N_{\phi,\mathrm{tot}} \sum_k V_k\), where \(V_k\) is node_vol(k). |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the midplane to the left. |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the left plane to the left. |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the right plane to the left. |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the midplane to the right. |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the left plane to the right. |
|
m^3 |
Voronoi volume of the mesh vertices under linear interpolation and field-following projection (full toroidal step) from the right plane to the right. |
|
m^3 |
Voronoi volume of the mesh vertices under nearest neighbor interpolation and field-following projection. |
|
Positive integer |
Number of toroidal mesh planes \(N_{\mathrm{planes}}\) (only written for stellarator simulations). |
|
Positive integer |
Number of flux surfaces. |
|
m |
Distance traveled along the magnetic field line to adjacent full toroidal mesh planes. |
|
rad |
Toroidal angular spacing between neighboring mesh planes. |
|
[1/m, 1/m, m] |
Per-triangle affine mapping coefficients from physical (R,Z) coordinates to local barycentric triangle coordinates; entries 0 and 1 store the inverse edge matrix and entry 2 stores the reference vertex position. |
|
index |
Triangle connectivity list for each plane (multiple planes in case of stellarators); each triplet contains zero-based mesh-node indices. |
|
index |
Region identifier for each mesh vertex. |
|
m |
Spatial location in (R,Z) coordinates of each mesh vertex in each stellarator plane. |
|
rad |
Toroidal wedge angle represented by this simulation. |
|
Wb/rad |
Toroidal magnetic flux for the flux surface that the node is on. |
|
Wb/rad |
Toroidal magnetic flux for the flux surface. |
|
dimensionless |
Safety factor \(q\) for the flux surface. |
|
m |
Major radius of flux surface. |
|
m |
Minor radius of the flux surface. |
|
m |
Spatial location of each mesh node in the poloidal plane; the first index selects the node and the second index selects the R or Z coordinate. |
|
m |
Poloidal arc-length of the complete flux surface. |
|
Positive integer |
Node index for each node on a flux surface. First index is flux surface label and second index is the node on the flux surface. Nodes counted from 1. Filled with zeros beyond surf_len. |
|
Positive integer |
Number of nodes in each flux surface. |
|
Positive integer |
The maximum number of nodes on any flux surface. Used for indexing surf_idx. |
|
rad |
Straight-field-line poloidal angle. Core: \(\theta=0\) on the outer midplane; SOL: zero on the outer target and \(2\pi\) on the inner target. |
|
m^2 |
Surface area of the triangles. |
|
dimensionless |
Trapped particle fraction for the flux surface. |
|
Positive integer |
Torus wedge number or toroidal periodicity (only written for stellarator simulations). |
xgc.f0.mesh.bp
Variable |
Units |
Description |
|---|---|---|
|
eV |
Initial temperature for electrons (0) and ions (1). |
|
m^-3 |
Initial density in the simulation (currently only electrons and main ions). |
|
species thermal speed sqrt(T_s/m_s) |
\(\Delta v_{\perp}\) in the 2D velocity grid of species \(s\). |
|
species thermal speed sqrt(T_s/m_s) |
\(\Delta v_{\parallel}\) in the 2D velocity grid of species \(s\). |
|
eV |
Temperature used for calculating the thermal speed used to normalize velocities. |
|
m/s |
Initial parallel bulk flow of the plasma. Positive flow implies motion in the direction of the magnetic field. |
|
eV |
Prefactor for calculating velocity-space moments: \(T_s/\sqrt{2\pi} \, dsmu_n \, dvp_n\). This assumes that the distribution function \(f\) has absorbed the \(v_{\perp}\) Jacobian factor and that the velocity-boundary coefficients mu_vol and vp_vol (0.5 on the boundary, 1 otherwise) are not included. For example, the density moment is \(n_s(k)=f0\_grid\_vol\_vonly(k) \sum_{i,j} mu\_vol(i) vp\_vol(j) f(i,j,k)\). |
|
Positive integer |
Number of grid points in \(v_{\perp}\) in the 2D velocity grid; equal to \(f0\_nmu + 1\). Same as input parameter f0_nmu. |
|
Positive integer |
Number of grid points in \(v_{\parallel}\) in the 2D velocity grid; equal to \(2 f0\_nvp + 1\). Same as input parameter f0_nvp. |
|
species thermal speed sqrt(T_s/m_s) |
Maximum \(v_{\perp}\) in the 2D velocity grid (minimum is 0). Same as input parameter f0_smu_max. |
|
species thermal speed sqrt(T_s/m_s) |
Maximum absolute \(v_{\parallel}\) in the 2D velocity grid; the minimum is the negative of this value. Same as input parameter f0_vp_max. |
|
T m |
Poloidal magnetic flux gradient at each mesh node. |
|
Positive integer |
Poloidal mesh partition table. It has length pe_per_plane + 1 and stores the first global vertex ID owned by each rank within a toroidal plane, using XGC’s legacy 1-based convention. |
|
Positive integer |
Legacy decomposition metadata: offset of the first vertex on the last MPI rank that wrote to this file. |
|
Positive integer |
Number of mesh nodes per plane. |
|
m^-1 |
Part of the phase space Jacobian (D in XGC’s equations), hat{boldsymbol{b}}cdotnablatimeshat{boldsymbol{b}}. |
|
Positive integer |
Legacy decomposition metadata: number of mesh vertices assigned to the last MPI rank that wrote to this file. |
|
Positive integer |
Number of species in the output. |
|
Positive integer |
Number of MPI ranks per plane. |
|
radial: T^2, poloidal and toroidal: T m^-1 |
Factors for curvature drift, \(\nabla\times B\), in radial, poloidal, and toroidal components. The radial component includes a factor \(\|\nabla\psi\|=R B_P\), hence the different units. |
|
radial: T^3, poloidal and toroidal: T^2 m^-1 |
Factors for grad-B drift, \(B\times\nabla \|B\|\), in radial, poloidal, and toroidal components. The radial component includes a factor \(\|\nabla\psi\|=R B_P\), hence the different units. |