concepts::Import3DMeshGmsh Class Reference

Imports a 3D mesh consisting only of hexahedrons from created with the mesh generator gmsh. More...

#include <meshImport3Dgmsh.hh>

Inheritance diagram for concepts::Import3DMeshGmsh:
concepts::Mesh3 concepts::Mesh concepts::OutputOperator

Public Member Functions

 Import3DMeshGmsh (const std::string &filename)
 Constructor. More...
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
unsigned int ncell () const
 Returns the number of cells in the mesh. More...
 
concepts::Scan3scan ()
 Returns a scanner over the cells of the mesh. More...
 
virtual ~Import3DMeshGmsh ()
 

Private Attributes

concepts::Sequence< concepts::Cell3 * > cell_
 
concepts::Sequence< concepts::Real3dcoord_
 
concepts::Sequence< concepts::Edge * > edg_
 
concepts::Sequence< concepts::Hexahedron * > hex_
 
concepts::Sequence< concepts::Quad * > quad_
 
concepts::Sequence< concepts::Vertex * > vtx_
 

Detailed Description

Imports a 3D mesh consisting only of hexahedrons from created with the mesh generator gmsh.

This version reads the MSH ASCII file format (.msh). Parser reads only elements of type

  1. 1-node point (elm-type 15),
  2. 2-node line (elm-type 1),
  3. 4-node quadrangle (elm-type 3),
  4. 8-node hexahedron (elm-type 5),

Elements with other flags will be ignored. Curved elements are not supported.

For more information about Gmsh see http://geuz.org/gmsh/

Author
Philipp Kliewe, 2013

Definition at line 37 of file meshImport3Dgmsh.hh.

Constructor & Destructor Documentation

◆ Import3DMeshGmsh()

concepts::Import3DMeshGmsh::Import3DMeshGmsh ( const std::string &  filename)

Constructor.

Creates a mesh from a Gmsh file (.msh).

Parameters
filenameFile generated by gmsh

◆ ~Import3DMeshGmsh()

virtual concepts::Import3DMeshGmsh::~Import3DMeshGmsh ( )
virtual

Member Function Documentation

◆ info()

virtual std::ostream& concepts::Import3DMeshGmsh::info ( std::ostream &  os) const
virtual

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

unsigned int concepts::Import3DMeshGmsh::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 48 of file meshImport3Dgmsh.hh.

◆ scan()

concepts::Scan3* concepts::Import3DMeshGmsh::scan ( )
inlinevirtual

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 52 of file meshImport3Dgmsh.hh.

Member Data Documentation

◆ cell_

concepts::Sequence<concepts::Cell3*> concepts::Import3DMeshGmsh::cell_
private

Definition at line 64 of file meshImport3Dgmsh.hh.

◆ coord_

concepts::Sequence<concepts::Real3d> concepts::Import3DMeshGmsh::coord_
private

Definition at line 59 of file meshImport3Dgmsh.hh.

◆ edg_

concepts::Sequence<concepts::Edge*> concepts::Import3DMeshGmsh::edg_
private

Definition at line 61 of file meshImport3Dgmsh.hh.

◆ hex_

concepts::Sequence<concepts::Hexahedron*> concepts::Import3DMeshGmsh::hex_
private

Definition at line 63 of file meshImport3Dgmsh.hh.

◆ quad_

concepts::Sequence<concepts::Quad*> concepts::Import3DMeshGmsh::quad_
private

Definition at line 62 of file meshImport3Dgmsh.hh.

◆ vtx_

concepts::Sequence<concepts::Vertex*> concepts::Import3DMeshGmsh::vtx_
private

Definition at line 60 of file meshImport3Dgmsh.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich