MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
mfem::Point Class Reference

Data type point element. More...

#include <point.hpp>

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

Public Types

typedef Geometry::Constants< Geometry::POINTgeom_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

 Point ()
 
 Point (const int *ind, int attr=-1)
 Constructs point by specifying the indices and the attribute.
 
Type GetType () const override
 Return element's type.
 
void GetVertices (Array< int > &v) const override
 Get the indices defining the vertices.
 
void SetVertices (const Array< int > &v) override
 Set the indices defining the vertices.
 
int * GetVertices () override
 
void SetVertices (const int *ind) override
 Set the vertices according to the given input.
 
int GetNVertices () const override
 
int GetNEdges () const override
 
const int * GetEdgeVertices (int ei) const override
 
MFEM_DEPRECATED int GetNFaces (int &nFaceVertices) const override
 
int GetNFaces () const override
 
int GetNFaceVertices (int) const override
 
const int * GetFaceVertices (int fi) const override
 
ElementDuplicate (Mesh *m) const override
 
virtual ~Point ()=default
 
- Public Member Functions inherited from mfem::Element
 Element (Geometry::Type bg=Geometry::POINT)
 Default element constructor.
 
virtual Type GetType () const =0
 Returns element's type.
 
Geometry::Type GetGeometryType () const
 
int GetAttribute () const
 Return element's attribute.
 
void SetAttribute (const int attr)
 Set element's attribute.
 
virtual void GetVertices (Array< int > &v) const =0
 Get the indices defining the vertices.
 
virtual void SetVertices (const Array< int > &v)=0
 Set the indices defining the vertices.
 
virtual void SetVertices (const int *ind)=0
 Set the indices defining the vertices.
 
virtual int * GetVertices ()=0
 
const int * GetVertices () const
 
virtual int GetNVertices () const =0
 
virtual int GetNEdges () const =0
 
virtual const int * GetEdgeVertices (int) const =0
 
virtual MFEM_DEPRECATED int GetNFaces (int &nFaceVertices) const =0
 
virtual int GetNFaces () const =0
 
virtual int GetNFaceVertices (int fi) const =0
 
virtual const int * GetFaceVertices (int fi) const =0
 
virtual void MarkEdge (const DSTable &v_to_v, const int *length)
 Mark the longest edge by assuming/changing the order of the vertices.
 
virtual int NeedRefinement (HashTable< Hashed2 > &v_to_v) const
 Return 1 if the element needs refinement in order to get conforming mesh.
 
virtual void ResetTransform (int tr)
 Set current coarse-fine transformation number.
 
virtual void PushTransform (int tr)
 Add 'tr' to the current chain of coarse-fine transformations.
 
virtual unsigned GetTransform () const
 Return current coarse-fine transformation.
 
virtual ElementDuplicate (Mesh *m) const =0
 
virtual ~Element ()
 Destroys element.
 

Protected Attributes

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

Detailed Description

Data type point element.

Definition at line 22 of file point.hpp.

Member Typedef Documentation

◆ geom_t

Definition at line 28 of file point.hpp.

Constructor & Destructor Documentation

◆ Point() [1/2]

mfem::Point::Point ( )
inline

Definition at line 30 of file point.hpp.

◆ Point() [2/2]

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

Constructs point by specifying the indices and the attribute.

Definition at line 18 of file point.cpp.

◆ ~Point()

virtual mfem::Point::~Point ( )
virtualdefault

Member Function Documentation

◆ Duplicate()

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

Implements mfem::Element.

Definition at line 66 of file point.hpp.

◆ GetEdgeVertices()

const int * mfem::Point::GetEdgeVertices ( int  ei) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 54 of file point.hpp.

◆ GetFaceVertices()

const int * mfem::Point::GetFaceVertices ( int  fi) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 64 of file point.hpp.

◆ GetNEdges()

int mfem::Point::GetNEdges ( ) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 52 of file point.hpp.

◆ GetNFaces() [1/2]

int mfem::Point::GetNFaces ( void  ) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 60 of file point.hpp.

◆ GetNFaces() [2/2]

MFEM_DEPRECATED int mfem::Point::GetNFaces ( int &  nFaceVertices) const
inlineoverridevirtual
Deprecated:
Use GetNFaces(void) and GetNFaceVertices(int) instead.

Implements mfem::Element.

Definition at line 57 of file point.hpp.

◆ GetNFaceVertices()

int mfem::Point::GetNFaceVertices ( int  ) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 62 of file point.hpp.

◆ GetNVertices()

int mfem::Point::GetNVertices ( ) const
inlineoverridevirtual

Implements mfem::Element.

Definition at line 50 of file point.hpp.

◆ GetType()

Type mfem::Point::GetType ( ) const
inlineoverridevirtual

Return element's type.

Implements mfem::Element.

Definition at line 36 of file point.hpp.

◆ GetVertices() [1/2]

int * mfem::Point::GetVertices ( )
inlineoverridevirtual
Note
The returned array should NOT be deleted by the caller.

Implements mfem::Element.

Definition at line 45 of file point.hpp.

◆ GetVertices() [2/2]

void mfem::Point::GetVertices ( Array< int > &  v) const
overridevirtual

Get the indices defining the vertices.

Implements mfem::Element.

Definition at line 24 of file point.cpp.

◆ SetVertices() [1/2]

void mfem::Point::SetVertices ( const Array< int > &  v)
overridevirtual

Set the indices defining the vertices.

Implements mfem::Element.

Definition at line 30 of file point.cpp.

◆ SetVertices() [2/2]

void mfem::Point::SetVertices ( const int *  ind)
overridevirtual

Set the vertices according to the given input.

Implements mfem::Element.

Definition at line 37 of file point.cpp.

Member Data Documentation

◆ indices

int mfem::Point::indices[1]
protected

Definition at line 25 of file point.hpp.


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