The following guidelines will help you to get the mesh metrics.
Local cell grid dimensions per direction nx, ny, nz are defined into the variables_grid_cell module. You can get them writting:
use variables_grid_cell
Local staggered face grid dimensions are the same except in the direction of the extension of the grid. The local x-face grid dimensions are nxu, ny, nz. The local y-face grid dimensions are nx, nyv, nz. The local z-face grid dimensions are nx, ny, nzw.
nxu, nyv, nzw are stored into variables_grid_face module. You can get them writting:
use variables_grid_face
variables_grid can be used to get all the grid variables. You can get them writting:
use variables_grid
Local grid includes the overlapping zone between processors. The non-overlapping zone is defined thanks to index variables:
x-direction: `is` , `ie` y-direction: `js` , `je` z-direction: `ks` , `ke`
For instance, the following loops can be used to modify an array on the non-overlapping part of local cell grid:
do k=ks,ke
do j=js,je
do i=is,ie
array(i,j,k)=...
enddo
enddo
enddo
On staggered face grids, the following variables are used:
u-grid: `isu` , `ieu`, `js` , `je` , `ks` , `ke` v-grid: `is` , `ie` , `jsv` , `jev`, `ks` , `ke` w-grid: `is` , `ie` , `js` , `je` , `ksw` , `kew`
Coordinates of the cell center are stored into coord_x, coord_y, coord_z arrays, respectively of dimension nx, ny, nz. You can get them thanks to the variables_cell_coordinates:
use variables_cell_coordinates
Coordinates of the cell center are stored into coord_x_u, coord_y_v, coord_z_w arrays, respectively of dimension nxu, nyv, nzw. You can get them thanks to the variables_face_coordinates:
use variables_face_coordinates
variables_coordinates module include cell and face coordinates.
Coordinates of the cell spatial step are stored into dx, dy, dz arrays, respectively of dimension nx, ny, nz. You can get them thanks to the variables_cell_spatial_steps:
use variables_cell_spatial_steps
Coordinates of the face spatial step are stored into dx_u, dy_v, dz_w arrays, respectively of dimension nxu, nyv, nzw. You can get them thanks to the variables_face_spatial_steps:
use variables_face_spatial_steps
variables_spatial_steps module include cell and face spatial steps.