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

Data type quadrilateral element. More...

#include <quadrilateral.hpp>

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

Public Member Functions

 Quadrilateral ()
 
 Quadrilateral (const int *ind, int attr=1)
 Constructs quadrilateral by specifying the indices and the attribute. More...
 
 Quadrilateral (int ind1, int ind2, int ind3, int ind4, int attr=1)
 Constructs quadrilateral by specifying the indices and the attribute. More...
 
int GetType () const
 Return element's type. More...
 
virtual void SetVertices (const int *ind)
 Set the vertices according to the given input. 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 ~Quadrilateral ()
 
- Public Member Functions inherited from mfem::Element
 Element (int bg=Geometry::POINT)
 Default element constructor. 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...
 

Protected Attributes

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

Static Protected Attributes

static const int edges [4][2]
 

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 quadrilateral element.

Definition at line 22 of file quadrilateral.hpp.

Constructor & Destructor Documentation

mfem::Quadrilateral::Quadrilateral ( )
inline

Definition at line 30 of file quadrilateral.hpp.

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

Constructs quadrilateral by specifying the indices and the attribute.

Definition at line 21 of file quadrilateral.cpp.

mfem::Quadrilateral::Quadrilateral ( int  ind1,
int  ind2,
int  ind3,
int  ind4,
int  attr = 1 
)

Constructs quadrilateral by specifying the indices and the attribute.

Definition at line 29 of file quadrilateral.cpp.

virtual mfem::Quadrilateral::~Quadrilateral ( )
inlinevirtual

Definition at line 64 of file quadrilateral.hpp.

Member Function Documentation

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

Implements mfem::Element.

Definition at line 61 of file quadrilateral.hpp.

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

Implements mfem::Element.

Definition at line 53 of file quadrilateral.hpp.

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

Implements mfem::Element.

Definition at line 59 of file quadrilateral.hpp.

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

Implements mfem::Element.

Definition at line 51 of file quadrilateral.hpp.

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

Implements mfem::Element.

Definition at line 56 of file quadrilateral.hpp.

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

Implements mfem::Element.

Definition at line 49 of file quadrilateral.hpp.

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

Return element's type.

Implements mfem::Element.

Definition at line 39 of file quadrilateral.hpp.

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

Returns the indices of the element's vertices.

Implements mfem::Element.

Definition at line 43 of file quadrilateral.cpp.

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

Implements mfem::Element.

Definition at line 47 of file quadrilateral.hpp.

void mfem::Quadrilateral::SetVertices ( const int *  ind)
virtual

Set the vertices according to the given input.

Reimplemented from mfem::Element.

Definition at line 38 of file quadrilateral.cpp.

Member Data Documentation

const int mfem::Quadrilateral::edges
staticprotected
Initial value:
=
{{0, 1}, {1, 2}, {2, 3}, {3, 0}}

Definition at line 26 of file quadrilateral.hpp.

int mfem::Quadrilateral::indices[4]
protected

Definition at line 25 of file quadrilateral.hpp.


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