MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Segment Class Reference

Data type line segment element. More...

#include <segment.hpp>

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

Public Types

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

 Segment ()
 
 Segment (const int *ind, int attr=1)
 Constructs triangle by specifying the indices and the attribute.
 
 Segment (int ind1, int ind2, int attr=1)
 Constructs triangle 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 indices defining the vertices.
 
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 ~Segment ()=default
 
- Public Member Functions inherited from mfem::Element
 Element (Geometry::Type bg=Geometry::POINT)
 Default element constructor.
 
Geometry::Type GetGeometryType () const
 
int GetAttribute () const
 Return element's attribute.
 
void SetAttribute (const int attr)
 Set element's attribute.
 
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.
 
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 ~Element ()
 Destroys element.
 

Protected Attributes

int indices [2]
 
- 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 line segment element.

Definition at line 22 of file segment.hpp.

Member Typedef Documentation

◆ geom_t

Constructor & Destructor Documentation

◆ Segment() [1/3]

mfem::Segment::Segment ( )
inline

Definition at line 30 of file segment.hpp.

◆ Segment() [2/3]

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

Constructs triangle by specifying the indices and the attribute.

Definition at line 18 of file segment.cpp.

◆ Segment() [3/3]

mfem::Segment::Segment ( int ind1,
int ind2,
int attr = 1 )

Constructs triangle by specifying the indices and the attribute.

Definition at line 27 of file segment.cpp.

◆ ~Segment()

virtual mfem::Segment::~Segment ( )
virtualdefault

Member Function Documentation

◆ Duplicate()

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

Implements mfem::Element.

Definition at line 69 of file segment.hpp.

◆ GetEdgeVertices()

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

Implements mfem::Element.

Definition at line 57 of file segment.hpp.

◆ GetFaceVertices()

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

Implements mfem::Element.

Definition at line 67 of file segment.hpp.

◆ GetNEdges()

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

Implements mfem::Element.

Definition at line 55 of file segment.hpp.

◆ GetNFaces() [1/2]

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

Implements mfem::Element.

Definition at line 63 of file segment.hpp.

◆ GetNFaces() [2/2]

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

Implements mfem::Element.

Definition at line 60 of file segment.hpp.

◆ GetNFaceVertices()

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

Implements mfem::Element.

Definition at line 65 of file segment.hpp.

◆ GetNVertices()

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

Implements mfem::Element.

Definition at line 53 of file segment.hpp.

◆ GetType()

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

Return element's type.

Implements mfem::Element.

Definition at line 39 of file segment.hpp.

◆ GetVertices() [1/2]

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

Implements mfem::Element.

Definition at line 48 of file segment.hpp.

◆ GetVertices() [2/2]

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

Get the indices defining the vertices.

Implements mfem::Element.

Definition at line 40 of file segment.cpp.

◆ SetVertices() [1/2]

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

Set the indices defining the vertices.

Implements mfem::Element.

Definition at line 46 of file segment.cpp.

◆ SetVertices() [2/2]

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

Set the indices defining the vertices.

Implements mfem::Element.

Definition at line 34 of file segment.cpp.

Member Data Documentation

◆ indices

int mfem::Segment::indices[2]
protected

Definition at line 25 of file segment.hpp.


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