Grid


Synopsis

Contains coordinate data for Fields.


group Grid<NEnumColors=4,NEcolor0=0xff> {
int nnodes; /* number of nodes */
int nspace; /* coordinates dimension */
Data_Array coordinates { /*node coordinates */
nvals => nnodes;
veclen => nspace;
float values[nvals][veclen];
float min => cache(min_array(magnitude(values),null_flag,
null_value));
float max => cache(max_array(magnitude(values), null_flag,
null_value));
float min_vec[veclen] => cache(min_array(values, null_flag,
null_value));
float max_vec[veclen] => cache(max_array(values, null_flag,
null_value));
};
};

Description

Grid holds the node coordinate data for all meshes, structured and unstructured.

Only unstructured meshes use an unqualified Grid. Structured meshes make the Grid definition more specific by assigning certain values to the raw Grid. The hierarchy looks like this:

FH794071.gif

These more specific definitions are discussed under their own headings.

Subobjects

nnodes

An integer specifying the total number of nodes in the Grid. This is used to set the nvals (length) of the coordinates Data_Array below.

 

nspace

An integer specifying how many coordinates exist for each node. 1 coordinate, X, indicates 1D data that exists on a line. 2 coordinates, X and Y, indicate 2D data that exists on a plane. 3 coordinates, X, Y, and Z, indicate 3D data that exists in space.

This is used to set the number of columns in the coordinates Data_Array below.

nspace is often confused with ndims, but they are two separate, though related ideas.