COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes | List of all members
Shared Class Reference

#include <Shared.hpp>

Inherited by Reader, and Writer.

Public Member Functions

 Shared ()
 constructor More...
 
std::vector< std::string > & get_supported_element_types ()
 

Static Public Member Functions

static std::string type_name ()
 Gets the Class name. More...
 
static std::string gmsh_name_to_cf_name (const Uint dim, const Uint gmsh_type)
 

Protected Types

enum  gmshElement {
  P1LINE =1, P1TRIAG =2, P1QUAD =3, P1TETRA =4,
  P1HEXA =5, P1PRISM =6, P2LINE =8, P2TRIAG =9,
  P2QUAD =10, P2TETRA =11, P2HEXA =12, P0POINT =15,
  P3TRIAG =21, P3LINE =26, P3QUAD = 36
}
 

Protected Attributes

std::map< GeoShape::Type, Uintm_CFelement_to_GmshElement
 
std::vector< std::string > m_supported_types
 
std::vector< std::vector< Uint > > m_nodes_cf_to_gmsh
 Faces are not defined in gmsh format. More...
 
std::vector< std::vector< Uint > > m_nodes_gmsh_to_cf
 

Static Protected Attributes

static const Uint nb_gmsh_types = 37
 
static const Uint m_nodes_in_gmsh_elem [nb_gmsh_types]
 
static const Uint m_gmsh_elem_dim [nb_gmsh_types]
 
static const Uint m_gmsh_elem_order [nb_gmsh_types]
 
static const std::string gmsh_elem_geo_name [nb_gmsh_types]
 
static const std::string dim_name [4] = { "0D", "1D", "2D", "3D" }
 
static const std::string order_name [10] = { "P0", "P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8", "P9" }
 

Detailed Description

This class defines gmsh mesh format common functionality

Author
Willem Deconinck
Martin Vymazal

Definition at line 26 of file Shared.hpp.

Member Enumeration Documentation

enum gmshElement
protected
Enumerator
P1LINE 
P1TRIAG 
P1QUAD 
P1TETRA 
P1HEXA 
P1PRISM 
P2LINE 
P2TRIAG 
P2QUAD 
P2TETRA 
P2HEXA 
P0POINT 
P3TRIAG 
P3LINE 
P3QUAD 

Definition at line 59 of file Shared.hpp.

Constructor & Destructor Documentation

Shared ( )

constructor

Definition at line 52 of file Shared.cpp.

Member Function Documentation

std::vector<std::string>& get_supported_element_types ( )
inline

Definition at line 36 of file Shared.hpp.

std::string gmsh_name_to_cf_name ( const Uint  dim,
const Uint  gmsh_type 
)
static

Definition at line 397 of file Shared.cpp.

static std::string type_name ( )
inlinestatic

Gets the Class name.

Definition at line 34 of file Shared.hpp.

Member Data Documentation

const std::string dim_name = { "0D", "1D", "2D", "3D" }
staticprotected

Definition at line 56 of file Shared.hpp.

const std::string gmsh_elem_geo_name
staticprotected
Initial value:
= { "Empty", "Line" , "Triag" , "Quad" , "Tetra" ,
"Hexa" , "Prism", "Pyramid", "Line" , "Triag" ,
"Quad" , "Tetra", "Hexa" , "Prism", "Pyramid",
"Point", "Quad" , "Hexa" , "Prism", "Pyramid",
"Triag", "Triag", "Triag" , "Triag", "Triag" ,
"Triag", "Line" , "Line" , "Line" , "Tetra" ,
"Tetra", "Tetra", "Tetra" , "Tetra", "Polyg" ,
"Polyh", "Quad"
}

Definition at line 55 of file Shared.hpp.

std::map<GeoShape::Type,Uint> m_CFelement_to_GmshElement
protected

Definition at line 63 of file Shared.hpp.

const Uint m_gmsh_elem_dim
staticprotected
const Uint m_gmsh_elem_order
staticprotected
Initial value:
= { 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2, 3,
3, 4, 4, 5, 5, 3, 4, 5, 3, 4,
5, 4, 5, 0, 0, 3 }

Definition at line 54 of file Shared.hpp.

std::vector<std::vector<Uint> > m_nodes_cf_to_gmsh
protected

Faces are not defined in gmsh format.

Definition at line 70 of file Shared.hpp.

std::vector<std::vector<Uint> > m_nodes_gmsh_to_cf
protected

Definition at line 71 of file Shared.hpp.

const Uint m_nodes_in_gmsh_elem
staticprotected
Initial value:
= { 0, 2, 3, 4, 4, 8, 6, 5, 3, 6, 9,
10, 27, 18, 14, 1, 8, 20, 15, 13, 9,
10, 12, 15, 15, 21, 4, 5, 6, 20, 35,
56, 34, 52, 0, 0, 16 }

Definition at line 52 of file Shared.hpp.

std::vector<std::string> m_supported_types
protected

Definition at line 64 of file Shared.hpp.

const Uint nb_gmsh_types = 37
staticprotected

We use the same convention regarding the numbering of element types and local numbering of vertices of elements as described in gmsh reference manual: http://www.geuz.org/gmsh/doc/texinfo/gmsh.html#MSH-ASCII-file-format NOTE THAT THE NUMBER OF GMSH TYPES LISTED HERE IS BY 1 BIGGER THAT THE ACTUAL NUMBER OF GMSH TYPES. THIS IS BECAUSE WE START COUNTING FROM 1 AND END WITH nb_gmsh_types (THE FIRST ELEMENT TYPE ON THE OFFICIAL GMSH LIST - P1 line - IS TAGGED AS '1')

Definition at line 50 of file Shared.hpp.

const std::string order_name = { "P0", "P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8", "P9" }
staticprotected

Definition at line 57 of file Shared.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin