Mesh¶
There are two output files containing mesh parameters (the 5D mesh consists of a 3D unstructured triangular mesh in configuration space and a 2D structured rectangular grid in velocity space): xgc.f0.mesh.bp and xgc.mesh.bp.
Remarks
These files contain quantities that can be useful to calculate various averages.
# flux surfaces here includes the scrape-off layer, i.e. the open field-line region.
xgc.f0.mesh.bp
Printed when: sml_f0_grid=.true.. Output frequency: once at start/restart.
Output |
Dimension |
Units |
Description |
---|---|---|---|
f0_T_ev |
\(N_{\mathrm{species}}~\times\)
# 3D mesh nodes
|
\(\mathrm{eV}\) |
Temperature at start in all configuration space vertices for electrons (0) and ions (1). |
f0_den |
# 3D mesh nodes |
\({\mathrm{m}}^{-3}\) |
Density at start in all configuration space vertices. Is n_e = n_i assumed? |
f0_dsmu |
Scalar |
\(v_{Ts} = \sqrt{\frac{T_s}{m_s}}\) |
\(\Delta v_{\perp}\) in the 2D velocity grid of species \(s\). |
f0_dvp |
Scalar |
\(v_{Ts} = \sqrt{\frac{T_s}{m_s}}\) |
\(\Delta v_{\|}\) in the 2D velocity grid of species \(s\). |
f0_grid_vol_vonly |
\(N_{\mathrm{species}}~\times\)
# 3D mesh nodes
|
Units |
Prefactor for calculating velocity space moments. \(= \left( T_s/\sqrt{2 \pi} \right) \times \) \(\times\) |
f0_nmu |
Scalar |
Positive integer |
Number of grid points in \(v_{\perp}\) in the 2D velocity grid is f0_nmu + 1. Same as input parameter |
f0_nvp |
Scalar |
Positive integer |
Number of grid points in \(v_{\|}\) in the 2D velocity grid is 2 \(\times\) f0_nvp + 1. Same as input parameter |
f0_smu_max |
Scalar |
\(v_{Ts} = \sqrt{\frac{T_s}{m_s}}\) |
Maximum \(v_{\perp}\) in the 2D velocity grid (minimum is \(0\)). Same as input parameter |
f0_vp_max |
Scalar |
\(v_{Ts} = \sqrt{\frac{T_s}{m_s}}\) |
Maximum/minimum \(v_{\|}\) (minimum with minus sign) in the 2D velocity grid. Same as input parameter |
gradpsi |
# 3D mesh nodes
\(\times\) 2
|
Units |
Description |
inode1m1 |
Scalar |
Units |
Description |
n_n |
Scalar |
Positive integer |
Number of 3D mesh nodes. |
nb_curl_nb |
# 3D mesh nodes |
Units |
Description |
ndata |
Scalar |
Positive integer |
Description |
nsp |
Scalar |
Positive integer |
Number of kinetic species. |
v_curv |
# 3D mesh nodes
\(\times\) 3
|
Units |
Description |
v_gradb |
# 3D mesh nodes
\(\times\) 3
|
Units |
Description |
xgc.mesh.bp
Printed when: always. Output frequency: once at start/restart.
* Dimension only for stellarator simulations.