|
XMDF
2.2
|
The next three functions are used to specify the grid geometry. For Cartesian grids, the grid geometry is the locations of cell boundaries for each row, column, and layer. The first row, column, and layer boundary is always assumed to be the grid origin. When using the functions below to set the grid geometry, NumVals is equal to the number of cells in the corresponding direction.
For Curvilinear grids, each coordinate of the grid must be specified for each corner of every cell in the grid. For a 2D curvilinear grid NumVals is equal to (NumI + 1) * (NumJ + 1) for both xfSetGridCoordsI and xfSetGridCoordsJ. For a 3D curvilinear grid NumVals is equal to (NumI + 1) * (NumJ + 1) * (NumK + 1) for all of the functions below. The arrays are numbered in I, J, K order.
The following functions are used to read the grid coordinate values from the file. The number of values is passed specifying the size allocated for the arrays. If the size is incorrect the library will return a negative value for the error.
1.8.6