#include <HDF5FileBuilder.h>
Inheritance diagram for HDF5FileBuilder:
Public Member Functions | |
HDF5FileBuilder (const char *outputFile) | |
~HDF5FileBuilder () | |
virtual void | init_coord (int nof_node) |
virtual void | set_coord (int i, double x, double y, double z) |
virtual void | finalize_coord () |
virtual void | init_tet (int nof_tet) |
virtual void | set_tet (int t, int id0, int id1, int id2, int id3, int material) |
virtual void | finalize_tet () |
virtual void | init_bc (int nof_bc_face) |
virtual void | set_bc (int id0, int id1, int id2, int bc_id) |
virtual void | finalize_bc (int nof_sym) |
Private Attributes | |
int | _nof_node |
int | _nof_tet |
int | _nof_bc_face |
int | _bc_face_counter |
int | _nof_sym |
double * | _coord |
int * | _tet_node |
int * | _bc_face |
int * | _material |
hid_t | file |
hid_t | points |
hid_t | tets |
hid_t | mats |
hid_t | edges |
hid_t | pointspace |
hid_t | tetspace |
hid_t | matspace |
hid_t | edgespace |
hsize_t | dimsf [2] |
herr_t | status |
Definition at line 13 of file HDF5FileBuilder.h.
HDF5FileBuilder::HDF5FileBuilder | ( | const char * | outputFile | ) |
Mesh builder that creates an HDF5 file from the given data
Definition at line 11 of file HDF5FileBuilder.cpp.
References file.
HDF5FileBuilder::~HDF5FileBuilder | ( | ) |
void HDF5FileBuilder::finalize_bc | ( | int | nof_sym | ) | [virtual] |
Set number of symmetry planes
Implements MeshBuilder.
Definition at line 180 of file HDF5FileBuilder.cpp.
References _bc_face, _nof_bc_face, dimsf, edges, edgespace, file, INTFILETYPE, INTMEMTYPE, and status.
void HDF5FileBuilder::finalize_coord | ( | ) | [virtual] |
Finalize coordinate input
Implements MeshBuilder.
Definition at line 44 of file HDF5FileBuilder.cpp.
References _coord, _nof_node, dimsf, file, points, pointspace, REALFILETYPE, REALMEMTYPE, and status.
void HDF5FileBuilder::finalize_tet | ( | ) | [virtual] |
Finalize tetrahedron input
Implements MeshBuilder.
Definition at line 94 of file HDF5FileBuilder.cpp.
References _material, _nof_tet, _tet_node, dimsf, file, INTFILETYPE, INTMEMTYPE, mats, matspace, status, tets, and tetspace.
void HDF5FileBuilder::init_bc | ( | int | nof_bc_face | ) | [virtual] |
Set number of boundary triangles
Implements MeshBuilder.
Definition at line 160 of file HDF5FileBuilder.cpp.
References _bc_face, _bc_face_counter, and _nof_bc_face.
void HDF5FileBuilder::init_coord | ( | int | nof_node | ) | [virtual] |
Set number of mesh nodes (vertices)
Implements MeshBuilder.
Definition at line 37 of file HDF5FileBuilder.cpp.
void HDF5FileBuilder::init_tet | ( | int | nof_tet | ) | [virtual] |
Set number of tetrahedra in mesh.
Implements MeshBuilder.
Definition at line 77 of file HDF5FileBuilder.cpp.
void HDF5FileBuilder::set_bc | ( | int | id0, | |
int | id1, | |||
int | id2, | |||
int | bc_id | |||
) | [virtual] |
Assign boundary condition bc_id to boundary triangle formed of nodes id0, id1 and id2.
Implements MeshBuilder.
Definition at line 169 of file HDF5FileBuilder.cpp.
References _bc_face, and _bc_face_counter.
void HDF5FileBuilder::set_coord | ( | int | i, | |
double | x, | |||
double | y, | |||
double | z | |||
) | [virtual] |
Set x-, y- and z-coordinate of node i.
Implements MeshBuilder.
Definition at line 30 of file HDF5FileBuilder.cpp.
References _coord.
void HDF5FileBuilder::set_tet | ( | int | t, | |
int | id0, | |||
int | id1, | |||
int | id2, | |||
int | id3, | |||
int | material | |||
) | [virtual] |
Set node ids of nodes forming tetrahedron t
Implements MeshBuilder.
Definition at line 85 of file HDF5FileBuilder.cpp.
int* HDF5FileBuilder::_bc_face [private] |
Definition at line 44 of file HDF5FileBuilder.h.
Referenced by finalize_bc(), init_bc(), and set_bc().
int HDF5FileBuilder::_bc_face_counter [private] |
double* HDF5FileBuilder::_coord [private] |
Definition at line 42 of file HDF5FileBuilder.h.
Referenced by finalize_coord(), init_coord(), and set_coord().
int* HDF5FileBuilder::_material [private] |
Definition at line 45 of file HDF5FileBuilder.h.
Referenced by finalize_tet(), init_tet(), and set_tet().
int HDF5FileBuilder::_nof_bc_face [private] |
int HDF5FileBuilder::_nof_node [private] |
int HDF5FileBuilder::_nof_sym [private] |
Definition at line 41 of file HDF5FileBuilder.h.
int HDF5FileBuilder::_nof_tet [private] |
int* HDF5FileBuilder::_tet_node [private] |
Definition at line 43 of file HDF5FileBuilder.h.
Referenced by finalize_tet(), init_tet(), and set_tet().
hsize_t HDF5FileBuilder::dimsf[2] [private] |
Definition at line 49 of file HDF5FileBuilder.h.
Referenced by finalize_bc(), finalize_coord(), and finalize_tet().
hid_t HDF5FileBuilder::edges [private] |
hid_t HDF5FileBuilder::edgespace [private] |
hid_t HDF5FileBuilder::file [private] |
Definition at line 47 of file HDF5FileBuilder.h.
Referenced by finalize_bc(), finalize_coord(), finalize_tet(), HDF5FileBuilder(), and ~HDF5FileBuilder().
hid_t HDF5FileBuilder::mats [private] |
hid_t HDF5FileBuilder::matspace [private] |
hid_t HDF5FileBuilder::points [private] |
hid_t HDF5FileBuilder::pointspace [private] |
herr_t HDF5FileBuilder::status [private] |
Definition at line 50 of file HDF5FileBuilder.h.
Referenced by finalize_bc(), finalize_coord(), finalize_tet(), and ~HDF5FileBuilder().
hid_t HDF5FileBuilder::tets [private] |
hid_t HDF5FileBuilder::tetspace [private] |