moab
|
Functions | |
void | mhdf_addElement (mhdf_FileHandle file_handle, const char *elem_handle, unsigned int named_elem_type, mhdf_Status *status) |
Add a new table of element data to the file. | |
char ** | mhdf_getElemHandles (mhdf_FileHandle file_handle, unsigned int *count_out, mhdf_Status *status) |
Get the list of element groups in the file. | |
void | mhdf_getElemTypeName (mhdf_FileHandle file_handle, const char *elem_handle, char *buffer, size_t buf_len, mhdf_Status *status) |
Get the element type name for a given element group handle. | |
int | mhdf_isPolyElement (mhdf_FileHandle file_handle, const char *elem_handle, mhdf_Status *status) |
Check if an element group contains polygon or polyhedron. | |
hid_t | mhdf_createConnectivity (mhdf_FileHandle file_handle, const char *elem_handle, int num_nodes_per_elem, long num_elements, long *first_elem_id_out, mhdf_Status *status) |
Create connectivity table for an element group. | |
hid_t | mhdf_openConnectivity (mhdf_FileHandle file_handle, const char *elem_handle, int *num_nodes_per_elem_out, long *num_elements_out, long *first_elem_id_out, mhdf_Status *status) |
Open connectivity table for an element group. | |
hid_t | mhdf_openConnectivitySimple (mhdf_FileHandle file_handle, const char *elem_handle, mhdf_Status *status) |
void | mhdf_writeConnectivity (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, const void *node_id_list, mhdf_Status *status) |
Write element coordinate data. | |
void | mhdf_writeConnectivityWithOpt (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, const void *node_id_list, hid_t write_prop, mhdf_Status *status) |
void | mhdf_readConnectivity (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, void *node_id_list, mhdf_Status *status) |
Read element coordinate data. | |
void | mhdf_readConnectivityWithOpt (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, void *node_id_list, hid_t read_prop, mhdf_Status *status) |
void | mhdf_createPolyConnectivity (mhdf_FileHandle file_handle, const char *elem_handle, long num_poly, long data_list_length, long *first_id_out, hid_t idx_and_id_handles_out[2], mhdf_Status *status) |
Create a new table for polygon or polyhedron connectivity data. | |
void | mhdf_openPolyConnectivity (mhdf_FileHandle file_handle, const char *elem_handle, long *num_poly_out, long *data_list_length_out, long *first_id_out, hid_t idx_and_id_handles_out[2], mhdf_Status *status) |
Open a table of polygon or polyhedron connectivity data. | |
void | mhdf_writePolyConnIndices (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, const void *index_list, mhdf_Status *status) |
Write polygon or polyhedron index data. | |
void | mhdf_writePolyConnIndicesWithOpt (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, const void *index_list, hid_t write_prop, mhdf_Status *status) |
void | mhdf_writePolyConnIDs (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, const void *id_list, mhdf_Status *status) |
Write polygon or polyhedron connectivity data. | |
void | mhdf_writePolyConnIDsWithOpt (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, const void *id_list, hid_t write_prop, mhdf_Status *status) |
void | mhdf_readPolyConnIndices (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, void *index_list, mhdf_Status *status) |
Read polygon or polyhedron index data. | |
void | mhdf_readPolyConnIndicesWithOpt (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, void *index_list, hid_t read_prop, mhdf_Status *status) |
void | mhdf_readPolyConnIDs (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, void *id_list, mhdf_Status *status) |
Read polygon or polyhedron connectivity data. | |
void | mhdf_readPolyConnIDsWithOpt (hid_t poly_handle, long offset, long count, hid_t hdf_integer_type, void *id_list, hid_t read_prop, mhdf_Status *status) |
void mhdf_addElement | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
unsigned int | named_elem_type, | ||
mhdf_Status * | status | ||
) |
Add a new table of element data to the file.
Add a element group to the file. An element group is the data for a block of elements with the same TSTT type and same number of nodes in their connectivity data. (e.g. all the MBHEX20 elements). This function is also used to create the groups for general polygon data and general polyhedron data. The requirement that all elements have the same number of nodes in their connectivity does not apply for poly(gons|hedra).
file_handle | File in which to create the element type. |
elem_handle | The name to use for the element data. This name is used as an identifier to reference the data for this element type later. The selected name also appears explicitly in the file and therefore should be something descriptive of the element type such as the 'base type' and number of nodes (e.g. "Hex20"). |
named_elem_type | An index into the list of named element types passed to mhdf_createFile . |
status | Passed back status of API call. |
hid_t mhdf_createConnectivity | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
int | num_nodes_per_elem, | ||
long | num_elements, | ||
long * | first_elem_id_out, | ||
mhdf_Status * | status | ||
) |
Create connectivity table for an element group.
Create fixed-connectivity data for an element group. Do NOT use this function for poly(gon/hedron) data.
file_handle | The file. |
elem_handle | The element group. |
num_nodes_per_elem | The number of nodes in the connectivity data for each element. |
num_elements | The number of elements to be written to the table. |
first_elem_id_out | Elements are assigned global IDs in sequential blocks where the block is the table in which their connectivity data is written and the sequence is the sequence in which they are written in that table. The global ID for the first element in this group is passed back at this address. The global IDs for all other elements in the table are assigned in the sequence in which they are written in the table. |
status | Passed back status of API call. |
void mhdf_createPolyConnectivity | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
long | num_poly, | ||
long | data_list_length, | ||
long * | first_id_out, | ||
hid_t | idx_and_id_handles_out[2], | ||
mhdf_Status * | status | ||
) |
Create a new table for polygon or polyhedron connectivity data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
file_handle | The file to write. |
elem_handle | The element group. |
num_poly | The total number number of polygons or polyhedra to be written in the table. |
data_list_length | The total number of values to be written to the table (the number of polys plus the sum of the number of entities in each poly's connectivity data.) |
first_id_out | Elements are assigned global IDs in sequential blocks where the block is the table in which their connectivity data is written and the sequence is the sequence in which they are written in that table. The global ID for the first element in this group is passed back at this address. The global IDs for all other elements in the table are assigned in the sequence in which they are written in the table. |
idx_and_id_handles_out | The handles for the index list and connectivity list, respectively. |
status | Passed back status of API call. |
char** mhdf_getElemHandles | ( | mhdf_FileHandle | file_handle, |
unsigned int * | count_out, | ||
mhdf_Status * | status | ||
) |
Get the list of element groups in the file.
Get the list of element groups in the file. An element group is the data for a block of elements with the same TSTT type and same number of nodes in their connectivity data. (e.g. all the MBHEX20 elements). This function is also used to retrieve the groups for general polygon data and general polyhedron data. The requirement that all elements have the same number of nodes in their connectivity does not apply for poly(gons|hedra).
file_handle | The file. |
count_out | Memory location at which to store the length of the returned array. |
status | Passed back status of API call. |
void mhdf_getElemTypeName | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
char * | buffer, | ||
size_t | buf_len, | ||
mhdf_Status * | status | ||
) |
Get the element type name for a given element group handle.
Fails if name is longer than buf_len
.
file_handle | The file. |
elem_handle | One of the group names passed back from mhdf_getElemHandles |
buffer | A buffer to copy the name into. |
buf_len | The length of buffer . |
status | Passed back status of API call. |
int mhdf_isPolyElement | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
mhdf_Status * | status | ||
) |
Check if an element group contains polygon or polyhedron.
Check if an element group contains general polygon or polyhedrons rather than typically fixed-connectivity elements.
file_handle | The file. |
elem_handle | The element group. |
status | Passed back status of API call. |
hid_t mhdf_openConnectivity | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
int * | num_nodes_per_elem_out, | ||
long * | num_elements_out, | ||
long * | first_elem_id_out, | ||
mhdf_Status * | status | ||
) |
Open connectivity table for an element group.
Open fixed-connectivity data for an element group. Do NOT use this function for poly(gon/hedron) data. Use mhdf_isPolyElement
or mhdf_getTsttElemType
to check if the data is poly(gon|hedron) data before calling this function to open the data.
file_handle | The file. |
elem_handle | The element group. |
num_nodes_per_elem_out | Used to pass back the number of nodes in each element. |
num_elements_out | Pass back the number of elements in the table. |
first_elem_id_out | Elements are assigned global IDs in sequential blocks where the block is the table in which their connectivity data is written and the sequence is the sequence in which they are written in that table. The global ID for the first element in this group is passed back at this address. The global IDs for all other elements in the table are assigned in the sequence in which they are written in the table. |
status | Passed back status of API call. |
hid_t mhdf_openConnectivitySimple | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
mhdf_Status * | status | ||
) |
void mhdf_openPolyConnectivity | ( | mhdf_FileHandle | file_handle, |
const char * | elem_handle, | ||
long * | num_poly_out, | ||
long * | data_list_length_out, | ||
long * | first_id_out, | ||
hid_t | idx_and_id_handles_out[2], | ||
mhdf_Status * | status | ||
) |
Open a table of polygon or polyhedron connectivity data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
file_handle | The file to write. |
elem_handle | The element group. |
num_poly_out | The total number number of polygons or polyhedra to be written in the table. |
data_list_length_out | The total number of values to be written to the table (the number of polys plus the sum of the number of entities in each poly's connectivity data.) |
first_id_out | Elements are assigned global IDs in sequential blocks where the block is the table in which their connectivity data is written and the sequence is the sequence in which they are written in that table. The global ID for the first element in this group is passed back at this address. The global IDs for all other elements in the table are assigned in the sequence in which they are written in the table. |
idx_and_id_handles_out | The handles for the index list and connectivity list, respectively. |
status | Passed back status of API call. |
void mhdf_readConnectivity | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | node_id_list, | ||
mhdf_Status * | status | ||
) |
Read element coordinate data.
Read interleaved fixed-connectivity element data for a block of elements. Note: Do not use this for polygon or polyhedron data.
data_handle | Handle returned from mhdf_createConnectivity or mhdf_openConnectivity . |
offset | Table row (element index) at which to start read. |
count | Number of rows (number of elements) to read. |
hdf_integer_type | The type of the integer data in node_id_list. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
node_id_list | Pointer to memory at which to write interleaved connectivity data specified as global node IDs. |
status | Passed back status of API call. |
void mhdf_readConnectivityWithOpt | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | node_id_list, | ||
hid_t | read_prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readPolyConnIDs | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | id_list, | ||
mhdf_Status * | status | ||
) |
Read polygon or polyhedron connectivity data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
poly_handle | The handle returned from mhdf_createPolyConnectivity or mhdf_openPolyConnectivity . |
offset | The offset in the table at which to read. The offset is in terms of the integer values in the table, not the count of polys. |
count | The size of the integer list to read. |
hdf_integer_type | The type of the integer data as written into memory. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
id_list | The memory location at which to write the connectivity data. |
status | Passed back status of API call. |
void mhdf_readPolyConnIDsWithOpt | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | id_list, | ||
hid_t | read_prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readPolyConnIndices | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | index_list, | ||
mhdf_Status * | status | ||
) |
Read polygon or polyhedron index data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
poly_handle | The handle returned from mhdf_createPolyConnectivity or mhdf_openPolyConnectivity . |
offset | The offset in the table at which to read. The offset is in terms of the integer values in the table, not the count of polys. |
count | The size of the integer list to read. |
hdf_integer_type | The type of the integer data as written into memory. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
index_list | The memory location at which to write the indices. |
status | Passed back status of API call. |
void mhdf_readPolyConnIndicesWithOpt | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
void * | index_list, | ||
hid_t | read_prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_writeConnectivity | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | node_id_list, | ||
mhdf_Status * | status | ||
) |
Write element coordinate data.
Write interleaved fixed-connectivity element data for a block of elements. Note: Do not use this for polygon or polyhedron data.
data_handle | Handle returned from mhdf_createConnectivity or mhdf_openConnectivity . |
offset | Table row (element index) at which to start writing. |
count | Number of rows (number of elements) to write. |
hdf_integer_type | The type of the integer data in node_id_list. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
node_id_list | Interleaved connectivity data specified as global node IDs. |
status | Passed back status of API call. |
void mhdf_writeConnectivityWithOpt | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | node_id_list, | ||
hid_t | write_prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_writePolyConnIDs | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | id_list, | ||
mhdf_Status * | status | ||
) |
Write polygon or polyhedron connectivity data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
This function writes the connectivity/ID list.
poly_handle | The handle returned from mhdf_createPolyConnectivity or mhdf_openPolyConnectivity . |
offset | The offset in the table at which to write. The offset is in terms of the integer values in the table, not the count of polys. |
count | The size of the integer list to write. |
hdf_integer_type | The type of the integer data in id_list . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
id_list | The count/global ID list specifying the connectivity of the polys. |
status | Passed back status of API call. |
void mhdf_writePolyConnIDsWithOpt | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | id_list, | ||
hid_t | write_prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_writePolyConnIndices | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | index_list, | ||
mhdf_Status * | status | ||
) |
Write polygon or polyhedron index data.
Poly (polygon or polyhedron) connectivity is stored as two lists. One list is the concatenation of the the connectivity data for all the polys in the group. The other contains one value per poly where that value is the index of the last entry in the connectivity of the corresponding poly. The ID list for polygons contains global node IDs. The ID list for polyhedra contains the global IDs of faces (either polygons or 2D fixed-connectivity elements.)
This function writes the index list.
poly_handle | The handle returned from mhdf_createPolyConnectivity or mhdf_openPolyConnectivity . |
offset | The offset in the table at which to write. The offset is in terms of the integer values in the table, not the count of polys. |
count | The size of the integer list to write. |
hdf_integer_type | The type of the integer data in id_list . Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER |
index_list | The index list for the polys. |
status | Passed back status of API call. |
void mhdf_writePolyConnIndicesWithOpt | ( | hid_t | poly_handle, |
long | offset, | ||
long | count, | ||
hid_t | hdf_integer_type, | ||
const void * | index_list, | ||
hid_t | write_prop, | ||
mhdf_Status * | status | ||
) |