Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
concepts::Import3DTetMesh Class Reference

Importer for tetrahedral meshes in notation which was used in [1]. More...

#include <mesh.hh>

Inheritance diagram for concepts::Import3DTetMesh:
Inheritance graph
[legend]
Collaboration diagram for concepts::Import3DTetMesh:
Collaboration graph
[legend]

List of all members.

Classes

class  S
class  Tet

Public Member Functions

 Import3DTetMesh (const std::string coord, const std::string elms, const std::string dirichlet, const bool leftHand=false)
 Constructor.
virtual uint ncell () const
 Returns the number of cells in the mesh.
virtual Scan3scan ()
 Returns a scanner over the cells of the mesh.
virtual ~Import3DTetMesh ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Member Functions

TrianglecreateTriangle_ (const uint x, const uint y, const uint z, const std::map< unsigned long long int, Edge * > &edges, const uint bc=0) const
unsigned long long int threeIndex_ (const uint x, const uint y, const uint z) const
unsigned long long int twoIndex_ (const uint j, const uint k) const

Private Attributes

std::vector< Tetrahedron3d * > cell_
std::vector< Edge * > edg_
std::vector< Tetrahedron * > tet_
std::vector< Triangle * > tri_
std::vector< Vertex * > vtx_

Detailed Description

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.

Deprecated:
Use Import3dMesh instead
See also:
[1] Alberty, Carstensen, Funken, Remarks Around 50 Lines of MATLAB: Short Finite Element Implementation, 1998
Author:
Philipp Frauenfelder, 2001

Definition at line 167 of file mesh.hh.


Constructor & Destructor Documentation

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.

Parameters:
coordFilename for the coordinates. Format:
<node> <x> <y> <z>
For instance:
1 1.0 1.0 1.0
2 0.0 0.5 2.0
elmsFilename for the elements. Format:
<nr> <node 1> <node 2> <node 3> <node 4>
dirichletFilename for triangles with homogeneous Dirichlet bc. Format:
<nr> <node 1> <node 2> <node 3>
leftHandOrdering of the node numbers
virtual concepts::Import3DTetMesh::~Import3DTetMesh ( ) [virtual]

Member Function Documentation

Triangle* concepts::Import3DTetMesh::createTriangle_ ( const uint  x,
const uint  y,
const uint  z,
const std::map< unsigned long long int, Edge * > &  edges,
const uint  bc = 0 
) const [private]
virtual std::ostream& concepts::Import3DTetMesh::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::Mesh.

virtual uint concepts::Import3DTetMesh::ncell ( ) const [inline, virtual]

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 187 of file mesh.hh.

virtual Scan3* concepts::Import3DTetMesh::scan ( ) [inline, virtual]

Returns a scanner over the cells of the mesh.

Postcondition:
The scanner must be deleted after usage. This has to be done by the user.

Implements concepts::Mesh3.

Definition at line 188 of file mesh.hh.

unsigned long long int concepts::Import3DTetMesh::threeIndex_ ( const uint  x,
const uint  y,
const uint  z 
) const [private]
unsigned long long int concepts::Import3DTetMesh::twoIndex_ ( const uint  j,
const uint  k 
) const [private]

Member Data Documentation

Definition at line 233 of file mesh.hh.

std::vector<Edge*> concepts::Import3DTetMesh::edg_ [private]

Definition at line 230 of file mesh.hh.

Definition at line 232 of file mesh.hh.

std::vector<Triangle*> concepts::Import3DTetMesh::tri_ [private]

Definition at line 231 of file mesh.hh.

std::vector<Vertex*> concepts::Import3DTetMesh::vtx_ [private]

Definition at line 229 of file mesh.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)