MFEM
v3.1
Finite element discretization library
|
Data type line segment element. More...
#include <segment.hpp>
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 Element * | Duplicate (Mesh *m) const |
virtual | ~Segment () |
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 [2] |
Protected Attributes inherited from mfem::Element | |
int | attribute |
Element's attribute (specifying material property, etc). More... | |
int | base_geom |
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... | |
Data type line segment element.
Definition at line 22 of file segment.hpp.
|
inline |
Definition at line 29 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.
|
inlinevirtual |
Definition at line 62 of file segment.hpp.
Implements mfem::Element.
Definition at line 59 of file segment.hpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 52 of file segment.hpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 57 of file segment.hpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 50 of file segment.hpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 54 of file segment.hpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 48 of file segment.hpp.
|
inlinevirtual |
|
virtual |
Returns the indices of the element's vertices.
Implements mfem::Element.
Definition at line 40 of file segment.cpp.
|
inlinevirtual |
Implements mfem::Element.
Definition at line 46 of file segment.hpp.
|
virtual |
Set the indices the element according to the input.
Reimplemented from mfem::Element.
Definition at line 34 of file segment.cpp.
|
protected |
Definition at line 25 of file segment.hpp.