MFEM  v4.6.0
Finite element discretization library
Public Types | Public Member Functions | 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 Types

typedef Geometry::Constants< Geometry::CUBEgeom_t
 
- Public Types inherited from mfem::Element
enum  Type {
  POINT, SEGMENT, TRIANGLE, QUADRILATERAL,
  TETRAHEDRON, HEXAHEDRON, WEDGE, PYRAMID
}
 Constants for the classes derived from Element. More...
 

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...
 
Type 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 MFEM_DEPRECATED int GetNFaces (int &nFaceVertices) const
 
virtual int GetNFaces () const
 
virtual int GetNFaceVertices (int) const
 
virtual const int * GetFaceVertices (int fi) const
 
virtual ElementDuplicate (Mesh *m) const
 
virtual ~Hexahedron ()
 
- Public Member Functions inherited from mfem::Element
 Element (Geometry::Type bg=Geometry::POINT)
 Default element constructor. More...
 
Geometry::Type GetGeometryType () const
 
int GetAttribute () const
 Return element's attribute. More...
 
void SetAttribute (const int attr)
 Set element's attribute. More...
 
virtual void SetVertices (const int *ind)
 Set the indices the element according to the input. More...
 
const int * GetVertices () const
 
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 (HashTable< Hashed2 > &v_to_v) const
 Return 1 if the element needs refinement in order to get conforming mesh. More...
 
virtual void ResetTransform (int tr)
 Set current coarse-fine transformation number. More...
 
virtual void PushTransform (int tr)
 Add 'tr' to the current chain of coarse-fine transformations. More...
 
virtual unsigned GetTransform () const
 Return current coarse-fine transformation. More...
 
virtual ~Element ()
 Destroys element. More...
 

Protected Attributes

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

Detailed Description

Data type hexahedron element.

Definition at line 22 of file hexahedron.hpp.

Member Typedef Documentation

◆ geom_t

Definition at line 28 of file hexahedron.hpp.

Constructor & Destructor Documentation

◆ Hexahedron() [1/3]

mfem::Hexahedron::Hexahedron ( )
inline

Definition at line 30 of file hexahedron.hpp.

◆ Hexahedron() [2/3]

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

Constructs hexahedron by specifying the indices and the attribute.

Definition at line 18 of file hexahedron.cpp.

◆ Hexahedron() [3/3]

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 28 of file hexahedron.cpp.

◆ ~Hexahedron()

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

Definition at line 68 of file hexahedron.hpp.

Member Function Documentation

◆ Duplicate()

virtual Element* mfem::Hexahedron::Duplicate ( Mesh m) const
inlinevirtual
Note
The returned object should be deleted by the caller.

Implements mfem::Element.

Definition at line 65 of file hexahedron.hpp.

◆ GetEdgeVertices()

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

Implements mfem::Element.

Definition at line 51 of file hexahedron.hpp.

◆ GetFaceVertices()

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

Implements mfem::Element.

Definition at line 62 of file hexahedron.hpp.

◆ GetNEdges()

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

Implements mfem::Element.

Definition at line 49 of file hexahedron.hpp.

◆ GetNFaces() [1/2]

virtual MFEM_DEPRECATED int mfem::Hexahedron::GetNFaces ( int &  nFaceVertices) const
inlinevirtual
Deprecated:
Use GetNFaces(void) and GetNFaceVertices(int) instead.

Implements mfem::Element.

Definition at line 55 of file hexahedron.hpp.

◆ GetNFaces() [2/2]

virtual int mfem::Hexahedron::GetNFaces ( void  ) const
inlinevirtual

Implements mfem::Element.

Definition at line 58 of file hexahedron.hpp.

◆ GetNFaceVertices()

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

Implements mfem::Element.

Definition at line 60 of file hexahedron.hpp.

◆ GetNVertices()

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

Implements mfem::Element.

Definition at line 47 of file hexahedron.hpp.

◆ GetType()

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

Return element's type.

Implements mfem::Element.

Definition at line 40 of file hexahedron.hpp.

◆ GetVertices() [1/2]

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

Returns the indices of the element's vertices.

Implements mfem::Element.

Definition at line 43 of file hexahedron.cpp.

◆ GetVertices() [2/2]

virtual int* mfem::Hexahedron::GetVertices ( )
inlinevirtual
Note
The returned array should NOT be deleted by the caller.

Implements mfem::Element.

Definition at line 45 of file hexahedron.hpp.

Member Data Documentation

◆ indices

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: