cee::ug::Element Class Reference

Class for a FEM element. More...

Public Types

enum  Type {
  POINTS = 0, BEAMS, BEAMS_3, TRIANGLES,
  TRIANGLES_6, QUADS, QUADS_8, QUADS_9,
  TETRAHEDRONS, TETRAHEDRONS_10, PYRAMIDS, PYRAMIDS_13,
  PENTAHEDRONS, PENTAHEDRONS_15, HEXAHEDRONS, HEXAHEDRONS_20,
  POLYHEDRONS, NULL_ELEMENT
}
 List of supported element types. More...
 
enum  Category {
  CATEGORY_SOLID, CATEGORY_SHELL, CATEGORY_MEMBRANE, CATEGORY_BEAM,
  CATEGORY_TRUSS, CATEGORY_INFINITE, CATEGORY_GAP, CATEGORY_JOINT,
  CATEGORY_SPRINGDASHPOT, CATEGORY_RIGID, CATEGORY_CONSTRAINT, CATEGORY_MASS,
  CATEGORY_INTERFACE, CATEGORY_SUPER, CATEGORY_UNDEFINED
}
 List of categories. More...
 

Static Public Member Functions

static size_t nodesPerElement (Type elementType)
 Returns number of element nodes for the specified element type. More...
 
static bool isVolumeElement (Type elementType)
 Returns true if the element type is a volume element. More...
 
static size_t surfacesPerElement (Type elementType)
 Returns number of element surfaces for the specified element type. More...
 
static std::vector< unsigned int > elementSurface (Type elementType, size_t surfaceIndex)
 Returns the indices defining the element surface with index surfaceIndex of an element of type elementType. More...
 
static size_t edgesPerElement (Type elementType)
 Returns number of edges for the specified element type. More...
 
static std::vector< unsigned int > elementEdge (Type elementType, size_t edgeIndex)
 Returns the indices defining an the element edge with index edgeIndex for an element of type elementType. More...
 

Detailed Description

Class for a FEM element.

See Type for all full listing of all supported element types.

Member Enumeration Documentation

List of categories.

Enumerator
CATEGORY_SOLID 

Solid elements.

CATEGORY_SHELL 

Shell elements (in-plane stress, bending, shear)

CATEGORY_MEMBRANE 

Membrane elements - only in-plane stress.

CATEGORY_BEAM 

Beam elements - axial stress, bending, shear.

CATEGORY_TRUSS 

Truss elements, axial stress only.

CATEGORY_INFINITE 

Infinite element.

CATEGORY_GAP 

Gap element (point contact)

CATEGORY_JOINT 

Joint element.

CATEGORY_SPRINGDASHPOT 

Spring & dashpot element.

CATEGORY_RIGID 

Rigid element.

CATEGORY_CONSTRAINT 

Constraint element, multipoint constraint.

CATEGORY_MASS 

Mass element.

CATEGORY_INTERFACE 

Interface element - distributed contact, boundary conditions.

CATEGORY_SUPER 

Super elements.

CATEGORY_UNDEFINED 

Undefined elements.

List of supported element types.

Enumerator
POINTS 
BEAMS 
BEAMS_3 
TRIANGLES 
TRIANGLES_6 
QUADS 
QUADS_8 
QUADS_9 
TETRAHEDRONS 
TETRAHEDRONS_10 
PYRAMIDS 
PYRAMIDS_13 
PENTAHEDRONS 
PENTAHEDRONS_15 
HEXAHEDRONS 
HEXAHEDRONS_20 
NULL_ELEMENT 

Null.

Member Function Documentation

size_t cee::ug::Element::edgesPerElement ( Type  elementType)
static

Returns number of edges for the specified element type.

Returns cee::UNDEFINED_SIZE_T for POLYHEDRON. Use DataElements::edgesPerElement(elementIndex) for polyhedrons

std::vector< unsigned int > cee::ug::Element::elementEdge ( Type  elementType,
size_t  edgeIndex 
)
static

Returns the indices defining an the element edge with index edgeIndex for an element of type elementType.

std::vector< unsigned int > cee::ug::Element::elementSurface ( Type  elementType,
size_t  surfaceIndex 
)
static

Returns the indices defining the element surface with index surfaceIndex of an element of type elementType.

bool cee::ug::Element::isVolumeElement ( Type  elementType)
static

Returns true if the element type is a volume element.

size_t cee::ug::Element::nodesPerElement ( Type  elementType)
static

Returns number of element nodes for the specified element type.

Returns cee::UNDEFINED_SIZE_T for POLYHEDRON. Use DataElements::nodesPerElement(elementIndex) for polyhedrons

size_t cee::ug::Element::surfacesPerElement ( Type  elementType)
static

Returns number of element surfaces for the specified element type.

Returns cee::UNDEFINED_SIZE_T for POLYHEDRON. Use DataElements::surfacesPerElement(elementIndex) for polyhedrons