MFEM  v3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
mfem::Hexahedron Class Reference

Data type hexahedron element. More...

#include <hexahedron.hpp>

Inheritance diagram for mfem::Hexahedron:
[legend]
Collaboration diagram for mfem::Hexahedron:
[legend]

Public Member Functions

 Hexahedron ()
 
 Hexahedron (const int *ind, int attr=1)
 Constructs hexahedron by specifying the indices and the attribute. More...
 
 Hexahedron (int ind1, int ind2, int ind3, int ind4, int ind5, int ind6, int ind7, int ind8, int attr=1)
 Constructs hexahedron by specifying the indices and the attribute. More...
 
int GetType () const
 Return element's type. More...
 
virtual void GetVertices (Array< int > &v) const
 Returns the indices of the element's vertices. More...
 
virtual int * GetVertices ()
 
virtual int GetNVertices () const
 
virtual int GetNEdges () const
 
virtual const int * GetEdgeVertices (int ei) const
 
virtual int GetNFaces (int &nFaceVertices) const
 
virtual const int * GetFaceVertices (int fi) const
 
virtual ElementDuplicate (Mesh *m) const
 
virtual ~Hexahedron ()
 
- Public Member Functions inherited from mfem::Element
 Element (int bg=Geometry::POINT)
 Default element constructor. More...
 
virtual void SetVertices (const int *ind)
 Set the indices the element according to the input. More...
 
int GetGeometryType () const
 
const int * GetVertices () const
 
virtual void MarkEdge (DenseMatrix &pmat)
 Mark the longest edge by assuming/changing the order of the vertices. More...
 
virtual void MarkEdge (const DSTable &v_to_v, const int *length)
 Mark the longest edge by assuming/changing the order of the vertices. More...
 
virtual int NeedRefinement (DSTable &v_to_v, int *middle) const
 Return 1 if the element needs refinement in order to get conforming mesh. More...
 
int GetAttribute () const
 Return element's attribute. More...
 
void SetAttribute (const int attr)
 Set element's attribute. More...
 
virtual int GetRefinementFlag ()
 
virtual ~Element ()
 Destroys element. More...
 

Static Public Attributes

static const int edges [12][2]
 
static const int faces [6][4]
 

Protected Attributes

int indices [8]
 
- Protected Attributes inherited from mfem::Element
int attribute
 Element's attribute (specifying material property, etc). More...
 
int base_geom
 

Additional Inherited Members

- Public Types inherited from mfem::Element
enum  Type {
  POINT, SEGMENT, TRIANGLE, QUADRILATERAL,
  TETRAHEDRON, HEXAHEDRON, BISECTED, QUADRISECTED,
  OCTASECTED
}
 Constants for the classes derived from Element. More...
 

Detailed Description

Data type hexahedron element.

Definition at line 22 of file hexahedron.hpp.

Constructor & Destructor Documentation

mfem::Hexahedron::Hexahedron ( )
inline

Definition at line 31 of file hexahedron.hpp.

mfem::Hexahedron::Hexahedron ( const int *  ind,
int  attr = 1 
)

Constructs hexahedron by specifying the indices and the attribute.

Definition at line 30 of file hexahedron.cpp.

mfem::Hexahedron::Hexahedron ( int  ind1,
int  ind2,
int  ind3,
int  ind4,
int  ind5,
int  ind6,
int  ind7,
int  ind8,
int  attr = 1 
)

Constructs hexahedron by specifying the indices and the attribute.

Definition at line 38 of file hexahedron.cpp.

virtual mfem::Hexahedron::~Hexahedron ( )
inlinevirtual

Definition at line 64 of file hexahedron.hpp.

Member Function Documentation

virtual Element* mfem::Hexahedron::Duplicate ( Mesh m) const
inlinevirtual

Implements mfem::Element.

Definition at line 61 of file hexahedron.hpp.

virtual const int* mfem::Hexahedron::GetEdgeVertices ( int  ei) const
inlinevirtual

Implements mfem::Element.

Definition at line 52 of file hexahedron.hpp.

virtual const int* mfem::Hexahedron::GetFaceVertices ( int  fi) const
inlinevirtual

Implements mfem::Element.

Definition at line 58 of file hexahedron.hpp.

virtual int mfem::Hexahedron::GetNEdges ( ) const
inlinevirtual

Implements mfem::Element.

Definition at line 50 of file hexahedron.hpp.

virtual int mfem::Hexahedron::GetNFaces ( int &  nFaceVertices) const
inlinevirtual

Implements mfem::Element.

Definition at line 55 of file hexahedron.hpp.

virtual int mfem::Hexahedron::GetNVertices ( ) const
inlinevirtual

Implements mfem::Element.

Definition at line 48 of file hexahedron.hpp.

int mfem::Hexahedron::GetType ( ) const
inlinevirtual

Return element's type.

Implements mfem::Element.

Definition at line 41 of file hexahedron.hpp.

void mfem::Hexahedron::GetVertices ( Array< int > &  v) const
virtual

Returns the indices of the element's vertices.

Implements mfem::Element.

Definition at line 53 of file hexahedron.cpp.

virtual int* mfem::Hexahedron::GetVertices ( )
inlinevirtual

Implements mfem::Element.

Definition at line 46 of file hexahedron.hpp.

Member Data Documentation

const int mfem::Hexahedron::edges
static
Initial value:
=
{{0, 1}, {1, 2}, {3, 2}, {0, 3},
{4, 5}, {5, 6}, {7, 6}, {4, 7},
{0, 4}, {1, 5}, {2, 6}, {3, 7}}

Definition at line 28 of file hexahedron.hpp.

const int mfem::Hexahedron::faces
static
Initial value:
=
{{3, 2, 1, 0}, {0, 1, 5, 4},
{1, 2, 6, 5}, {2, 3, 7, 6},
{3, 0, 4, 7}, {4, 5, 6, 7}}

Definition at line 29 of file hexahedron.hpp.

int mfem::Hexahedron::indices[8]
protected

Definition at line 25 of file hexahedron.hpp.


The documentation for this class was generated from the following files: