MFEM  v4.5.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::H1_FECollection Class Reference

Arbitrary order H1-conforming (continuous) finite elements. More...

#include <fe_coll.hpp>

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

Public Member Functions

 H1_FECollection (const int p, const int dim=3, const int btype=BasisType::GaussLobatto)
 
virtual const FiniteElementFiniteElementForGeometry (Geometry::Type GeomType) const
 
virtual int DofForGeometry (Geometry::Type GeomType) const
 
virtual const int * DofOrderForOrientation (Geometry::Type GeomType, int Or) const
 Returns an array, say p, that maps a local permuted index i to a local base index: base_i = p[i]. More...
 
virtual const char * Name () const
 
virtual int GetContType () const
 
int GetBasisType () const
 
FiniteElementCollectionGetTraceCollection () const
 
const int * GetDofMap (Geometry::Type GeomType) const
 Get the Cartesian to local H1 dof map. More...
 
const int * GetDofMap (Geometry::Type GeomType, int p) const
 Variable order version of GetDofMap. More...
 
FiniteElementCollectionClone (int p) const
 Instantiate a new collection of the same type with a different order. More...
 
virtual ~H1_FECollection ()
 
- Public Member Functions inherited from mfem::FiniteElementCollection
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. More...
 
const FiniteElementGetFE (Geometry::Type geom, int p) const
 Variable order version of FiniteElementForGeometry(). More...
 
int GetNumDof (Geometry::Type geom, int p) const
 Variable order version of DofForGeometry(). More...
 
const int * GetDofOrdering (Geometry::Type geom, int p, int ori) const
 Variable order version of DofOrderForOrientation(). More...
 
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. More...
 

Protected Attributes

int dim
 
int b_type
 
char h1_name [32]
 
FiniteElementH1_Elements [Geometry::NumGeom]
 
int H1_dof [Geometry::NumGeom]
 
int * SegDofOrd [2]
 
int * TriDofOrd [6]
 
int * QuadDofOrd [8]
 
int * TetDofOrd [24]
 
- Protected Attributes inherited from mfem::FiniteElementCollection
const int base_p
 Order as returned by GetOrder(). More...
 
Array< FiniteElementCollection * > var_orders
 

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. 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 H1-conforming (continuous) finite elements.

Definition at line 220 of file fe_coll.hpp.

Constructor & Destructor Documentation

mfem::H1_FECollection::H1_FECollection ( const int  p,
const int  dim = 3,
const int  btype = BasisType::GaussLobatto 
)
explicit

Definition at line 1551 of file fe_coll.cpp.

mfem::H1_FECollection::~H1_FECollection ( )
virtual

Definition at line 1942 of file fe_coll.cpp.

Member Function Documentation

FiniteElementCollection* mfem::H1_FECollection::Clone ( int  p) const
inlinevirtual

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 252 of file fe_coll.hpp.

virtual int mfem::H1_FECollection::DofForGeometry ( Geometry::Type  GeomType) const
inlinevirtual

Implements mfem::FiniteElementCollection.

Definition at line 236 of file fe_coll.hpp.

const int * mfem::H1_FECollection::DofOrderForOrientation ( Geometry::Type  GeomType,
int  Or 
) const
virtual

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 1876 of file fe_coll.cpp.

const FiniteElement * mfem::H1_FECollection::FiniteElementForGeometry ( Geometry::Type  GeomType) const
virtual

Implements mfem::FiniteElementCollection.

Definition at line 1862 of file fe_coll.cpp.

int mfem::H1_FECollection::GetBasisType ( ) const
inline

Definition at line 243 of file fe_coll.hpp.

virtual int mfem::H1_FECollection::GetContType ( ) const
inlinevirtual

Implements mfem::FiniteElementCollection.

Definition at line 242 of file fe_coll.hpp.

const int * mfem::H1_FECollection::GetDofMap ( Geometry::Type  GeomType) const

Get the Cartesian to local H1 dof map.

Definition at line 1917 of file fe_coll.cpp.

const int * mfem::H1_FECollection::GetDofMap ( Geometry::Type  GeomType,
int  p 
) const

Variable order version of GetDofMap.

Definition at line 1935 of file fe_coll.cpp.

FiniteElementCollection * mfem::H1_FECollection::GetTraceCollection ( ) const
virtual

Reimplemented from mfem::FiniteElementCollection.

Definition at line 1898 of file fe_coll.cpp.

virtual const char* mfem::H1_FECollection::Name ( ) const
inlinevirtual

Reimplemented from mfem::FiniteElementCollection.

Definition at line 241 of file fe_coll.hpp.

Member Data Documentation

int mfem::H1_FECollection::b_type
protected

Definition at line 224 of file fe_coll.hpp.

int mfem::H1_FECollection::dim
protected

Definition at line 224 of file fe_coll.hpp.

int mfem::H1_FECollection::H1_dof[Geometry::NumGeom]
protected

Definition at line 227 of file fe_coll.hpp.

FiniteElement* mfem::H1_FECollection::H1_Elements[Geometry::NumGeom]
protected

Definition at line 226 of file fe_coll.hpp.

char mfem::H1_FECollection::h1_name[32]
protected

Definition at line 225 of file fe_coll.hpp.

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

Definition at line 228 of file fe_coll.hpp.

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

Definition at line 228 of file fe_coll.hpp.

int * mfem::H1_FECollection::TetDofOrd[24]
protected

Definition at line 228 of file fe_coll.hpp.

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

Definition at line 228 of file fe_coll.hpp.


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