Modules | Functions

H5Fed C API

Modules

 H5fed_mesh_inquiry

Functions

h5_id_t H5FedAddLevel (h5_file_t *const f)
h5_id_t H5FedStoreVertex (h5_file_t *const f, const h5_id_t vertex_id, const h5_float64_t P[3])
h5_id_t H5FedStoreElement (h5_file_t *const f, const h5_id_t local_vids[])

Function Documentation

h5_id_t H5FedAddLevel ( h5_file_t *const   f )

Add a new level with num_elems elements. The number of elements must be the real number of elements to add the level. If you want to refine n tetrahedra n*8 elements must be added.

Parameters:
[in]fFile handle.
[in]num_elems_to_refineNumber of elements which will be refined.
Returns:
ID of new level.
Note:
values for f->t.num_levels: -1 unknown: after opening the file. This is equivalent to "topological data has not been initialized". 0 no levels: HDF5 group for meshes may already exist but must not! > 0 number of mesh levels
h5_id_t H5FedStoreVertex ( h5_file_t *const   f,
const h5_id_t  vertex_id,
const h5_float64_t  P[3] 
)

Stores the the coordinates of a specific vertex at level level with id vertex_id of the tetrahedral mesh.

Returns:
local vertex id on success
errno on error
Parameters:
ffile handle
vertex_idid from mesher or -1
Pcoordinates
h5_id_t H5FedStoreElement ( h5_file_t *const   f,
const h5_id_t  local_vids[] 
)

Stores the 4-tuple, that contains the specific indices describing a tetrahedron with id tet_id at level level of the tetrahedral mesh.

Errors: current level not yet defined to many tets stored on level

Returns:
local tetrahedron id
errno on error
Parameters:
ffile handle
local_vidstuple with vertex id's