|
XMDF
2.2
|
When an API function is called that fills in an array, the array must already be allocated. The path used in all of these functions is the path to the mesh folder, not the path for the element or node folder.
This function is used to set the number of elements for a mesh. Anyone using this API to read the mesh will have to know this in order to properly allocate their arrays.
This functions sets the node ids for the elements (must be numbered consistently with diagrams in Table 4). The "Ids" array must be a contiguous array of size MaxNumNodes X NumElems. The ids of the nodes start at one which represents the first array index in the node array. Since C arrays are zero based, the actual index of the node in the array when using C is decremented by one.
The functions to write the node group data are as follows:
Several functions are provided to read the element group data.
The following function is used to get the number of elements in a mesh:
These functions are used to get the element types. If all of the elements have the same type, you can retrieve a single value rather than entire array.
These functions are used to get the element connectivity information. The first returns the maximum number of nodes in any element in the mesh. This is used to dimension the connectivity array returned by the second function.
The functions to read the node group data will be:
1.8.6