Grid_Struct


Synopsis

Contains coordinate information for structured fields.


Grid Grid_Struct {
int ndim; /* number of dimensions */
int dims[ndim]; /* dimensions */
nnodes => prod(dims); /* number of nodes */
int npoints; /* number of points, defining grid */
float points[npoints][nspace]; /* points (extents) defining
grid */
int grid_type;

 

Description

Grid_Struct tailors the definition of Grid to structured mesh fields. As is, this definition will fully specify an irregular field's Grid. This definition may be further tailored by Grid_Unif and Grid_Rect.

Subobjects

ndim

An integer that specifies how many dimensions the numeric data has.

ndim is often confused with nspace. ndim refers the dimensions of the array holding the numeric data. nspace refers to the number of coordinates associated with each node, that is, the dimensionality of the space in which the data exists.

See FLDget_ndim

dims[ndim]

An array ndim long. This array holds the number of data values in each dimension. For example, a 30 x 25 x 100 3D irregular field would have dimensions dims[0] = 30, dims[1] = 25, and dims[2] = 100.