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

Arbitrary order H(curl)-conforming Nedelec finite elements. More...

#include <fe_coll.hpp>

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

Public Member Functions

 ND_FECollection (const int p, const int dim, const int cb_type=BasisType::GaussLobatto, const int ob_type=BasisType::GaussLegendre)
 
const FiniteElementFiniteElementForGeometry (Geometry::Type GeomType) const override
 
int DofForGeometry (Geometry::Type GeomType) const override
 
const StatelessDofTransformationDofTransformationForGeometry (Geometry::Type GeomType) const override
 Returns a DoF transformation object compatible with this basis and geometry type.
 
const int * DofOrderForOrientation (Geometry::Type GeomType, int Or) const override
 Returns an array, say p, that maps a local permuted index i to a local base index: base_i = p[i].
 
const char * Name () const override
 
int GetContType () const override
 
FiniteElementCollectionGetTraceCollection () const override
 
int GetClosedBasisType () const
 
int GetOpenBasisType () const
 
FiniteElementCollectionClone (int p) const override
 Instantiate a new collection of the same type with a different order.
 
virtual ~ND_FECollection ()
 
- Public Member Functions inherited from mfem::FiniteElementCollection
virtual const FiniteElementFiniteElementForDim (int dim) const
 Returns the first non-NULL FiniteElement for the given dimension.
 
int HasFaceDofs (Geometry::Type geom, int p) const
 
virtual const FiniteElementTraceFiniteElementForGeometry (Geometry::Type GeomType) const
 
virtual ~FiniteElementCollection ()
 
void SubDofOrder (Geometry::Type Geom, int SDim, int Info, Array< int > &dofs) const
 Get the local dofs for a given sub-manifold.
 
const FiniteElementGetFE (Geometry::Type geom, int p) const
 Variable order version of FiniteElementForGeometry().
 
int GetNumDof (Geometry::Type geom, int p) const
 Variable order version of DofForGeometry().
 
const int * GetDofOrdering (Geometry::Type geom, int p, int ori) const
 Variable order version of DofOrderForOrientation().
 
int GetOrder () const
 Return the order (polynomial degree) of the FE collection, corresponding to the order/degree returned by FiniteElement::GetOrder() of the highest-dimensional FiniteElements defined by the collection.
 
int GetRangeType (int dim) const
 
int GetDerivRangeType (int dim) const
 
int GetMapType (int dim) const
 
int GetDerivType (int dim) const
 
int GetDerivMapType (int dim) const
 
int GetRangeDim (int dim) const
 

Protected Attributes

int dim
 
int cb_type
 
int ob_type
 
char nd_name [32]
 
FiniteElementND_Elements [Geometry::NumGeom]
 
int ND_dof [Geometry::NumGeom]
 
int * SegDofOrd [2]
 
int * TriDofOrd [6]
 
int * QuadDofOrd [8]
 
- Protected Attributes inherited from mfem::FiniteElementCollection
const int base_p
 Order as returned by GetOrder().
 
Array< FiniteElementCollection * > var_orders
 
ErrorMode error_mode = RAISE_MFEM_ERROR
 How to treat errors in FiniteElementForGeometry() calls.
 

Additional Inherited Members

- Public Types inherited from mfem::FiniteElementCollection
enum  { CONTINUOUS , TANGENTIAL , NORMAL , DISCONTINUOUS }
 Enumeration for ContType: defines the continuity of the field across element interfaces. More...
 
- Static Public Member Functions inherited from mfem::FiniteElementCollection
static FiniteElementCollectionNew (const char *name)
 Factory method: return a newly allocated FiniteElementCollection according to the given name.
 
- Protected Types inherited from mfem::FiniteElementCollection
enum  ErrorMode { RETURN_NULL , RAISE_MFEM_ERROR }
 How to treat errors in FiniteElementForGeometry() calls. More...
 
- Protected Member Functions inherited from mfem::FiniteElementCollection
 FiniteElementCollection ()
 
 FiniteElementCollection (int p)
 
void InitVarOrder (int p) const
 
- Static Protected Member Functions inherited from mfem::FiniteElementCollection
template<Geometry::Type geom>
static void GetNVE (int &nv, int &ne)
 
template<Geometry::Type geom, typename v_t >
static void GetEdge (int &nv, v_t &v, int &ne, int &e, int &eo, const int edge_info)
 
template<Geometry::Type geom, Geometry::Type f_geom, typename v_t , typename e_t , typename eo_t >
static void GetFace (int &nv, v_t &v, int &ne, e_t &e, eo_t &eo, int &nf, int &f, Geometry::Type &fg, int &fo, const int face_info)
 

Detailed Description

Arbitrary order H(curl)-conforming Nedelec finite elements.

Definition at line 464 of file fe_coll.hpp.

Constructor & Destructor Documentation

◆ ND_FECollection()

mfem::ND_FECollection::ND_FECollection ( const int p,
const int dim,
const int cb_type = BasisType::GaussLobatto,
const int ob_type = BasisType::GaussLegendre )

Definition at line 2700 of file fe_coll.cpp.

◆ ~ND_FECollection()

mfem::ND_FECollection::~ND_FECollection ( )
virtual

Definition at line 2950 of file fe_coll.cpp.

Member Function Documentation

◆ Clone()

FiniteElementCollection * mfem::ND_FECollection::Clone ( int p) const
inlineoverridevirtual

Instantiate a new collection of the same type with a different order.

Generally, the order parameter p is NOT the same as the parameter p used by some of the constructors of derived classes. Instead, this p represents the order of the new FE collection as it will be returned by its GetOrder() method.

Reimplemented from mfem::FiniteElementCollection.

Definition at line 501 of file fe_coll.hpp.

◆ DofForGeometry()

int mfem::ND_FECollection::DofForGeometry ( Geometry::Type GeomType) const
inlineoverridevirtual

Implements mfem::FiniteElementCollection.

Definition at line 483 of file fe_coll.hpp.

◆ DofOrderForOrientation()

const int * mfem::ND_FECollection::DofOrderForOrientation ( Geometry::Type GeomType,
int Or ) const
overridevirtual

Returns an array, say p, that maps a local permuted index i to a local base index: base_i = p[i].

Note
Only provides information about interior dofs. See FiniteElementCollection::SubDofOrder if interior and boundary dof order is needed.

Implements mfem::FiniteElementCollection.

Definition at line 2912 of file fe_coll.cpp.

◆ DofTransformationForGeometry()

const StatelessDofTransformation * mfem::ND_FECollection::DofTransformationForGeometry ( Geometry::Type GeomType) const
overridevirtual

Returns a DoF transformation object compatible with this basis and geometry type.

Reimplemented from mfem::FiniteElementCollection.

Definition at line 2900 of file fe_coll.cpp.

◆ FiniteElementForGeometry()

const FiniteElement * mfem::ND_FECollection::FiniteElementForGeometry ( Geometry::Type GeomType) const
overridevirtual

Implements mfem::FiniteElementCollection.

Definition at line 2884 of file fe_coll.cpp.

◆ GetClosedBasisType()

int mfem::ND_FECollection::GetClosedBasisType ( ) const
inline

Definition at line 498 of file fe_coll.hpp.

◆ GetContType()

int mfem::ND_FECollection::GetContType ( ) const
inlineoverridevirtual

Implements mfem::FiniteElementCollection.

Definition at line 494 of file fe_coll.hpp.

◆ GetOpenBasisType()

int mfem::ND_FECollection::GetOpenBasisType ( ) const
inline

Definition at line 499 of file fe_coll.hpp.

◆ GetTraceCollection()

FiniteElementCollection * mfem::ND_FECollection::GetTraceCollection ( ) const
overridevirtual

Reimplemented from mfem::FiniteElementCollection.

Definition at line 2930 of file fe_coll.cpp.

◆ Name()

const char * mfem::ND_FECollection::Name ( ) const
inlineoverridevirtual

Reimplemented from mfem::FiniteElementCollection.

Definition at line 492 of file fe_coll.hpp.

Member Data Documentation

◆ cb_type

int mfem::ND_FECollection::cb_type
protected

Definition at line 468 of file fe_coll.hpp.

◆ dim

int mfem::ND_FECollection::dim
protected

Definition at line 467 of file fe_coll.hpp.

◆ ND_dof

int mfem::ND_FECollection::ND_dof[Geometry::NumGeom]
protected

Definition at line 472 of file fe_coll.hpp.

◆ ND_Elements

FiniteElement* mfem::ND_FECollection::ND_Elements[Geometry::NumGeom]
protected

Definition at line 471 of file fe_coll.hpp.

◆ nd_name

char mfem::ND_FECollection::nd_name[32]
protected

Definition at line 470 of file fe_coll.hpp.

◆ ob_type

int mfem::ND_FECollection::ob_type
protected

Definition at line 469 of file fe_coll.hpp.

◆ QuadDofOrd

int * mfem::ND_FECollection::QuadDofOrd[8]
protected

Definition at line 473 of file fe_coll.hpp.

◆ SegDofOrd

int* mfem::ND_FECollection::SegDofOrd[2]
protected

Definition at line 473 of file fe_coll.hpp.

◆ TriDofOrd

int * mfem::ND_FECollection::TriDofOrd[6]
protected

Definition at line 473 of file fe_coll.hpp.


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