12 #ifndef MFEM_FE_COLLECTION
13 #define MFEM_FE_COLLECTION
15 #include "../config/config.hpp"
36 virtual const char *
Name()
const {
return "Undefined"; }
68 {
return H1_dof[GeomType]; }
108 {
return L2_Elements[GeomType]; }
111 if (L2_Elements[GeomType])
113 return L2_Elements[GeomType]->
GetDof();
118 virtual const char *
Name()
const {
return d_name; }
123 return Tr_Elements[GeomType];
142 void InitFaces(
const int p,
const int dim,
const int map_type,
156 {
return RT_dof[GeomType]; }
199 {
return ND_dof[GeomType]; }
226 void Allocate(
int Order);
240 QuadrilateralFE->
Reset();
241 ParallelepipedFE->
Reset();
251 virtual const char *
Name()
const {
return name; }
279 virtual const char *
Name()
const {
return "Linear"; }
303 virtual const char *
Name()
const {
return "Quadratic"; }
323 virtual const char *
Name()
const {
return "QuadraticPos"; }
347 virtual const char *
Name()
const {
return "Cubic"; }
367 virtual const char *
Name()
const {
return "CrouzeixRaviart"; }
389 virtual const char *
Name()
const {
return "LinearNonConf3D"; }
411 virtual const char *
Name()
const {
return "RT0_2D"; }
432 virtual const char *
Name()
const {
return "RT1_2D"; }
453 virtual const char *
Name()
const {
return "RT2_2D"; }
473 virtual const char *
Name()
const {
return "Const2D"; }
494 virtual const char *
Name()
const {
return "LinearDiscont2D"; }
515 virtual const char *
Name()
const {
return "GaussLinearDiscont2D"; }
529 virtual const char *
Name()
const {
return "P1OnQuad"; }
550 virtual const char *
Name()
const {
return "QuadraticDiscont2D"; }
566 virtual const char *
Name()
const {
return "QuadraticPosDiscont2D"; }
587 virtual const char *
Name()
const {
return "GaussQuadraticDiscont2D"; }
608 virtual const char *
Name()
const {
return "CubicDiscont2D"; }
629 virtual const char *
Name()
const {
return "Const3D"; }
650 virtual const char *
Name()
const {
return "LinearDiscont3D"; }
671 virtual const char *
Name()
const {
return "QuadraticDiscont3D"; }
695 virtual const char *
Name()
const {
return "RefinedLinear"; }
716 virtual const char *
Name()
const {
return "ND1_3D"; }
738 virtual const char *
Name()
const {
return "RT0_3D"; }
759 virtual const char *
Name()
const {
return "RT1_3D"; }
774 {
return (GeomType == _GeomType) ? Local_Element : NULL; }
776 {
return (GeomType == _GeomType) ? Local_Element->
GetDof() : 0; }
779 virtual const char *
Name()
const {
return d_name; }
Abstract class for Finite Elements.
Arbitrary order non-uniform rational B-splines (NURBS) finite elements.
virtual const char * Name() const
virtual const char * Name() const
virtual const char * Name() const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Version of QuadraticDiscont2DFECollection with dofs in the Gaussian points.
int RT_dof[Geometry::NumGeom]
FiniteElement * ND_Elements[Geometry::NumGeom]
virtual int * DofOrderForOrientation(int GeomType, int Or) const
void UpdateOrder(int Order)
Change the order of the collection.
Linear 1D element with nodes 1/3 and 2/3 (trace of RT1)
Quadratic 1D element with nodes the Gaussian points in [0,1] (trace of RT2)
virtual const char * Name() const
virtual FiniteElementCollection * GetTraceCollection() const
virtual const char * Name() const
GaussQuadraticDiscont2DFECollection()
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
FiniteElementCollection * GetTraceCollection() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const char * Name() const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
QuadraticDiscont3DFECollection()
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual ~L2_FECollection()
LinearNonConf3DFECollection()
virtual const char * Name() const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
RefinedLinearFECollection()
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
int GetOrder() const
Returns the order of the finite element.
Piecewise-(bi)linear continuous finite elements.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
ND_FECollection(const int p, const int dim)
Class for quadratic FE on triangle.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
Class for quadratic FE on interval.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
FiniteElementCollection * GetTraceCollection() const
virtual int DofForGeometry(int GeomType) const
L2_FECollection(const int p, const int dim, const int type=0)
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
void InitFaces(const int p, const int dim, const int map_type, const bool signs)
FiniteElementCollection * GetTraceCollection() const
virtual const char * Name() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const char * Name() const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual const char * Name() const
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Finite element collection on a macro-element.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Class for refined bi-linear FE on quadrilateral.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
QuadraticPosDiscont2DFECollection()
virtual const char * Name() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual ~RT_FECollection()
virtual int DofForGeometry(int _GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
Piecewise-(bi)cubic continuous finite elements.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const char * Name() const
Class for bilinear FE on quad with nodes at the 4 Gaussian points.
Class for refined linear FE on interval.
virtual int DofForGeometry(int GeomType) const
int H1_dof[Geometry::NumGeom]
Class for refined linear FE on triangle.
Class for refined linear FE on tetrahedron.
FiniteElement * RT_Elements[Geometry::NumGeom]
Class for constant FE on triangle.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
ND_Trace_FECollection(const int p, const int dim)
Class for refined trilinear FE on a hexahedron.
Discontinuous collection defined locally by a given finite element.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
CubicDiscont2DFECollection()
Version of QuadraticDiscont2DFECollection with positive basis functions.
virtual ~ND_FECollection()
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Class for quadratic FE on tetrahedron.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
RT_Trace_FECollection(const int p, const int dim, const int map_type=FiniteElement::INTEGRAL)
QuadraticDiscont2DFECollection()
H1_FECollection(const int p, const int dim=3, const int type=0)
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Version of QuadraticFECollection with positive basis functions.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual ~Local_FECollection()
virtual const char * Name() const
virtual int DofForGeometry(int GeomType) const
virtual ~H1_FECollection()
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
LinearDiscont3DFECollection()
Class for linear FE on tetrahedron.
Class for linear FE on interval.
Crouzeix-Raviart finite element on quadrilateral.
Class for linear FE on triangle.
LinearDiscont2DFECollection()
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Class for quadratic FE on triangle with nodes at the "Gaussian" points.
virtual const char * Name() const
virtual const char * Name() const
FiniteElementCollection * GetTraceCollection() const
FiniteElement * H1_Elements[Geometry::NumGeom]
Piecewise-linear nonconforming finite elements in 3D.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
DG_Interface_FECollection(const int p, const int dim, const int map_type=FiniteElement::VALUE)
Crouzeix-Raviart nonconforming elements in 2D.
NURBSFECollection(int Order)
Arbitrary order H(div)-conforming Raviart-Thomas finite elements.
L2_FECollection DG_FECollection
virtual int * DofOrderForOrientation(int GeomType, int Or) const
H1Pos_FECollection(const int p, const int dim=3)
virtual int DofForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
virtual const char * Name() const
virtual const FiniteElement * TraceFiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const char * Name() const
int GetDof() const
Returns the degrees of freedom in the FE space.
Class for bi-quadratic FE on quadrilateral.
Class for tri-linear FE on cube.
H1_Trace_FECollection(const int p, const int dim, const int type=0)
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual const char * Name() const
Class for bilinear FE on quadrilateral.
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
Version of LinearDiscont2DFECollection with dofs in the Gaussian points.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const =0
virtual const char * Name() const
static FiniteElementCollection * New(const char *name)
virtual const FiniteElement * TraceFiniteElementForGeometry(int GeomType) const
Class for linear FE on triangle with nodes at the 3 "Gaussian" points.
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
GaussLinearDiscont2DFECollection()
virtual int DofForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
Bi-quadratic element on quad with nodes at the 9 Gaussian points.
virtual const char * Name() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
RT_FECollection(const int p, const int dim, const int map_type, const bool signs)
virtual const char * Name() const
QuadraticPosFECollection()
Tensor products of 1D FEs (only degree 2 is functional)
Piecewise-(bi)quadratic continuous finite elements.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
int HasFaceDofs(int GeomType) const
Arbitrary order H(curl)-conforming Nedelec finite elements.
Class for cubic FE on tetrahedron.
virtual const char * Name() const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int * DofOrderForOrientation(int GeomType, int Or) const
Arbitrary order H1-conforming (continuous) finite elements.
virtual const char * Name() const
virtual const char * Name() const
virtual const FiniteElement * FiniteElementForGeometry(int _GeomType) const
CrouzeixRaviartFECollection()
virtual int DofForGeometry(int GeomType) const =0
virtual int * DofOrderForOrientation(int GeomType, int Or) const
virtual int DofForGeometry(int GeomType) const
Local_FECollection(const char *fe_name)
virtual int DofForGeometry(int GeomType) const
virtual const char * Name() const
virtual int DofForGeometry(int GeomType) const
Linear (P1) finite elements on quadrilaterals.
virtual int DofForGeometry(int GeomType) const
virtual ~FiniteElementCollection()
virtual ~NURBSFECollection()
int ND_dof[Geometry::NumGeom]
virtual int DofForGeometry(int GeomType) const
Crouzeix-Raviart finite element on triangle.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const =0
Arbitrary order "L2-conforming" discontinuous finite elements.
virtual const FiniteElement * FiniteElementForGeometry(int GeomType) const