Imports a 2D quadrilateral mesh from mesh generator gmsh. More...

#include <meshImport2Dgmsh.hh>

Inheritance diagram for concepts::Import2DMeshGmsh:
concepts::Mesh2 concepts::Mesh concepts::OutputOperator

Public Member Functions

 Import2DMeshGmsh (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::Scan2scan ()
 Returns a scanner over the cells of the mesh. More...
 
virtual ~Import2DMeshGmsh ()
 

Private Member Functions

bool isOrderedCounterClockwise (int idx1, int idx2, int idx3, int idx4) const
 

Private Attributes

concepts::Sequence< concepts::Cell2 * > cell_
 
concepts::Sequence< concepts::Real2dcoord_
 
concepts::Sequence< concepts::Edge * > edg_
 
concepts::Sequence< concepts::Quad * > quad_
 
concepts::Sequence< concepts::Vertex * > vtx_
 

Detailed Description

Imports a 2D quadrilateral mesh from 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. 3-node second order line (elm-type 8),
  5. 8-node second order quadrangle (elm-type 16),
  6. 9-node second order quadrangle (elm-type 10).

Elements with other flags will be ignored. Curved edges are only supported up to order 2 and will be interpreted as circular edges.

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

Author
Philipp Kliewe, 2013 Robert Gruhlke, 2016

Definition at line 39 of file meshImport2Dgmsh.hh.

Constructor & Destructor Documentation

◆ Import2DMeshGmsh()

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

Constructor.

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

Parameters
filenameFile generated by gmsh

◆ ~Import2DMeshGmsh()

virtual concepts::Import2DMeshGmsh::~Import2DMeshGmsh ( )
virtual

Member Function Documentation

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ isOrderedCounterClockwise()

bool concepts::Import2DMeshGmsh::isOrderedCounterClockwise ( int  idx1,
int  idx2,
int  idx3,
int  idx4 
) const
private

◆ ncell()

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

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 50 of file meshImport2Dgmsh.hh.

◆ scan()

concepts::Scan2* concepts::Import2DMeshGmsh::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::Mesh2.

Definition at line 54 of file meshImport2Dgmsh.hh.

Member Data Documentation

◆ cell_

concepts::Sequence<concepts::Cell2*> concepts::Import2DMeshGmsh::cell_
private

Definition at line 66 of file meshImport2Dgmsh.hh.

◆ coord_

concepts::Sequence<concepts::Real2d> concepts::Import2DMeshGmsh::coord_
private

Definition at line 62 of file meshImport2Dgmsh.hh.

◆ edg_

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

Definition at line 64 of file meshImport2Dgmsh.hh.

◆ quad_

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

Definition at line 65 of file meshImport2Dgmsh.hh.

◆ vtx_

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

Definition at line 63 of file meshImport2Dgmsh.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