#include <import_gmsh.hpp>
Public Types | |
typedef std::vector< TIntVector > | TIntIntVector |
typedef std::vector< int > | TIntVector |
enum | TTags { TAG_PHYSICAL_ENTITY = 0, TAG_ELEMTARY_GEOMETRICAL_ENTITY, TAG_MESH_PARTITION, TAG_MAXNUM } |
the position of the named quantity in the vector m_tags; | |
enum | TType { LINE_2 = 1, TRIANGLE_3, QUADRANGLE_4, TETRA_4, HEXA_8, PRISM_6, PYRAMID_5, LINE_3, TRIANGLE_6, QUADRANGLE_9, TETRA_10, HEXA_27, PRISM_18, PYRAMID_14, POINT_1, QUADRANGLE_8, HEXA_20, PRISM_15, PYRAMID_13, TRIANGLE_9, TRIANGLE_10, TRIANGLE_12, TRIANGLE_15_4TH, TRIANGLE_15_5TH, TRIANGLE_21, LINE_4, LINE_5, LINE_6, TETRA_20, TETRA_35, TETRA_56, NUM_ELEMENT_TYPES_PLUS_1 } |
the element type numbers in GMSH | |
typedef std::vector< unsigned int > | TUIntVector |
Public Member Functions | |
GmshElement (const int &index, const TType &type, const TIntVector &tags, const TIntVector &nodes) | |
const int & | index () const |
const TIntVector & | nodes () const |
const TIntVector & | tags () const |
const TType & | type () const |
Static Public Member Functions | |
static TIntIntVector | getNodeNumberingDefinition () |
is used to fill the static variable | |
Static Public Attributes | |
static const std::string | default_sfem_types [NUM_ELEMENT_TYPES_PLUS_1-1] |
the default translation of the GMSH type to SFEM type (""=not supported) | |
static const std::string | empty_sfem_types [NUM_ELEMENT_TYPES_PLUS_1-1] |
like default_sfem_types, but everything is empty | |
static const std::string | gmsh_type_idents [NUM_ELEMENT_TYPES_PLUS_1-1] |
the string idents of the GMSH types | |
static const TIntIntVector | node_numbering_definition |
static const int | number_of_nodes_per_element [NUM_ELEMENT_TYPES_PLUS_1-1] |
the number of nodes per GMSH element type | |
Protected Attributes | |
int | m_index |
TIntVector | m_nodes |
TIntVector | m_tags |
TType | m_type |
static TIntIntVector sfem_import::gmsh::GmshElement::getNodeNumberingDefinition | ( | ) | [static] |
const TIntIntVector sfem_import::gmsh::GmshElement::node_numbering_definition [static] |
the node numbering transition matrix between GMSH and SFEM
node_numbering_definition[gmsh_elem_type-1][sfem_index] = gmsh_index
gmsh_elem_type | is the GMSH element type id (1..num_element_types) | |
sfem_index | is the index in SFEM local nodes (0..num_nodes-1) | |
gmsh_index | is the index in GMSH local nodes (0..num_nodes-1) |