MFEM  v3.4
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
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::SEGMENT
geom_t
 
- Public Types inherited from mfem::Element
enum  Type {
  POINT, SEGMENT, TRIANGLE, QUADRILATERAL,
  TETRAHEDRON, HEXAHEDRON
}
 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. More...
 
 Segment (int ind1, int ind2, int attr=1)
 Constructs triangle by specifying the indices and the attribute. More...
 
virtual void SetVertices (const int *ind)
 Set the indices the element according to the input. More...
 
virtual 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 ~Segment ()
 
- Public Member Functions inherited from mfem::Element
 Element (int bg=Geometry::POINT)
 Default element constructor. More...
 
int GetGeometryType () const
 
int GetAttribute () const
 Return element's attribute. More...
 
void SetAttribute (const int attr)
 Set element's attribute. More...
 
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...
 
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 int GetRefinementFlag ()
 
virtual ~Element ()
 Destroys element. More...
 

Protected Attributes

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

Detailed Description

Data type line segment element.

Definition at line 22 of file segment.hpp.

Member Typedef Documentation

Definition at line 28 of file segment.hpp.

Constructor & Destructor Documentation

mfem::Segment::Segment ( )
inline

Definition at line 30 of file segment.hpp.

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.

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.

virtual mfem::Segment::~Segment ( )
inlinevirtual

Definition at line 63 of file segment.hpp.

Member Function Documentation

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

Implements mfem::Element.

Definition at line 60 of file segment.hpp.

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

Implements mfem::Element.

Definition at line 53 of file segment.hpp.

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

Implements mfem::Element.

Definition at line 58 of file segment.hpp.

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

Implements mfem::Element.

Definition at line 51 of file segment.hpp.

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

Implements mfem::Element.

Definition at line 55 of file segment.hpp.

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

Implements mfem::Element.

Definition at line 49 of file segment.hpp.

virtual int mfem::Segment::GetType ( ) const
inlinevirtual

Return element's type.

Implements mfem::Element.

Definition at line 42 of file segment.hpp.

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

Returns the indices of the element's vertices.

Implements mfem::Element.

Definition at line 40 of file segment.cpp.

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

Implements mfem::Element.

Definition at line 47 of file segment.hpp.

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

Set the indices the element according to the input.

Reimplemented from mfem::Element.

Definition at line 34 of file segment.cpp.

Member Data Documentation

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: