#include <mesh.hh>
Public Member Functions | |
| Import3DTetMesh (const std::string coord, const std::string elms, const std::string dirichlet, const bool leftHand=false) | |
| virtual uint | ncell () const |
| Returns the number of cells in the mesh. | |
| virtual Scan3 * | scan () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Importer for tetrahedral meshes in notation which was used in [1].
If the check for the Jacobian gives an error, the order of the triangles and vertices has to be changed.
| concepts::Import3DTetMesh::Import3DTetMesh | ( | const std::string | coord, |
| const std::string | elms, | ||
| const std::string | dirichlet, | ||
| const bool | leftHand = false |
||
| ) |
Constructor. Takes 3 files with coordinates of the vertices, node numbers of the elements (tetrahedrons) and node numbers of the triangles which have homogeneous Dirichlet bc.
| coord | Filename for the coordinates. Format: <node> <x> <y> <z>For instance: 1 1.0 1.0 1.0 2 0.0 0.5 2.0 |
| elms | Filename for the elements. Format: <nr> <node 1> <node 2> <node 3> <node 4> |
| dirichlet | Filename for triangles with homogeneous Dirichlet bc. Format: <nr> <node 1> <node 2> <node 3> |
| leftHand | Ordering of the node numbers |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Mesh.
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Returns a scanner over the cells of the mesh.
Implements concepts::Mesh3.