7. Grid file¶
If you are using the GUI, grid file is written when the ‘Write Grid’ button is pressed.
7.1. Scalar parameters¶
Grid size and topology¶
|
Number of radial grid points in the global grid, including boundary cells. |
|
Number of poloidal grid points in the global grid, not including boundary cells. |
|
Number of poloidal boundary cells included in the grid at each divertor target. |
|
Radial grid indices of the separatrices. These give the index of the first
grid point radially outside the separatrix. A single null grid has
|
|
Poloidal grid indices of the X-points. These give the index of the last
grid point poloidally before the poloidal position of the X-point is
reached. For single null grids |
|
For double null grids, gives the number of poloidal grid points before the upper target is reached, not including boundary cells. |
Equilibrium parameters¶
Other options¶
7.2. 1D arrays¶
Poloidal coordinates¶
BoutMesh writes three poloidal coordinates to the grid file:
Note
These coordinates are defined/created in BoutMesh because they require a global mesh, which is not required in Mesh where everything is defined only in terms of MeshRegions.
|
Increments by |
|
Increments by |
|
Is a straight-field line poloidal coordinate proportional to the toroidal angle (i.e. to zShift). It goes from 0 to 2pi in the core, and is undefined on open field lines. |
1D integral quantities¶
|
The total poloidal distance around a closed flux surface in the core. Not calculated on open flux surfaces. |
|
The total toroidal angular displacement when following a field line one full poloidal turn around a closed flux surface. Not calculated on open flux surfaces. |
7.3. 2D arrays¶
All 2D arrays are saved at the cell centre position, named with no suffix, e.g.
Rxy. For use with staggered grid codes, they are also saved at the ‘lower’
cell face locations, with suffix _xlow, e.g. Rxy_xlow for the
\(x\)-direction cell faces and with suffix _ylow, e.g. Rxy_ylow,
for the \(y\)-direction cell faces.
Spatial positions¶
|
Major radius. |
|
Height. |
|
Major radius and height of the lower-left corner of each grid cell. Not needed by BOUT++, but may be useful for post-processing. |
|
Major radius and height of the other three corners of each grid cell.
Mostly redundant information with |
Grid spacings¶
|
Coordinate spacing in the radial \(x\) direction. |
|
Coordinate spacing in the poloidal \(y\) direction. |
Magnetic field quantities¶
|
Poloidal magnetic flux function, which is the poloidal magnetic flux divided by \(2\pi\). |
|
Components of the magnetic field in the major-radial and vertical directions. |
|
Components of the magnetic field in the poloidal and toroidal directions. |
|
Total magnetic field. |
Integral quantities¶
|
Poloidal distance (in metres) from the lower divertor target of each flux surface to the grid point (on open field lines), or from the poloidal location of the lower X-point (on closed field lines). |
|
Toroidal displacement of a field line followed from some reference position to the poloidal location of the grid point. |
|
\(d^2\zeta/dxdy\), where \(zeta\) is the toroidal angle. Only
used in BOUT++ for the |
Metric coefficients¶
Jacobian¶
|
The Jacobian of the locally field aligned BOUT++ coordinate system. |
Curvature¶
|
Contravariant components (despite the slightly misleading variable names) of \(\nabla\times(\mathbf{b}/B)\), i.e. \(\nabla\times(\mathbf{b}/B)^x\), \(\nabla\times(\mathbf{b}/B)^y\), and \(\nabla\times(\mathbf{b}/B)^z\). |
|
Contravariant components of the vector
\(\frac{B}{2}\nabla\times\left(\frac{\mathbf{b}}{B}\right)\). Other
forms (e.g. \(\mathbf{b}\times\mathbf{\kappa}\)) could be
implemented, for different settings of |
Equilibrium plama parameters¶
|
Pressure profile read from the geqdsk input file (if there was one). |
7.4. Provenance tracking¶
See Provenance tracking.