MFEM  v4.6.0
Finite element discretization library
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
mfem::TensorBasisElement Class Reference

#include <fe_base.hpp>

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

Public Types

enum  DofMapType { L2_DOF_MAP = 0, H1_DOF_MAP = 1, Sr_DOF_MAP = 2 }
 

Public Member Functions

 TensorBasisElement (const int dims, const int p, const int btype, const DofMapType dmtype)
 
int GetBasisType () const
 
const Poly_1D::BasisGetBasis1D () const
 
const Array< int > & GetDofMap () const
 Get an Array<int> that maps lexicographically ordered indices to the indices of the respective nodes/dofs/basis functions. If the dofs are ordered lexicographically, i.e. the mapping is identity, the returned Array will be empty. More...
 

Static Public Member Functions

static Geometry::Type GetTensorProductGeometry (int dim)
 
static int Pow (int base, int dim)
 Return base raised to the power dim. More...
 
static const DofToQuadGetTensorDofToQuad (const FiniteElement &fe, const IntegrationRule &ir, DofToQuad::Mode mode, const Poly_1D::Basis &basis, bool closed, Array< DofToQuad *> &dof2quad_array)
 

Protected Attributes

int b_type
 
Array< int > dof_map
 
Poly_1D::Basisbasis1d
 
Array< int > inv_dof_map
 

Detailed Description

An element defined as an ND tensor product of 1D elements on a segment, square, or cube

Definition at line 1183 of file fe_base.hpp.

Member Enumeration Documentation

◆ DofMapType

Enumerator
L2_DOF_MAP 
H1_DOF_MAP 
Sr_DOF_MAP 

Definition at line 1192 of file fe_base.hpp.

Constructor & Destructor Documentation

◆ TensorBasisElement()

mfem::TensorBasisElement::TensorBasisElement ( const int  dims,
const int  p,
const int  btype,
const DofMapType  dmtype 
)

Definition at line 2259 of file fe_base.cpp.

Member Function Documentation

◆ GetBasis1D()

const Poly_1D::Basis& mfem::TensorBasisElement::GetBasis1D ( ) const
inline

Definition at line 1204 of file fe_base.hpp.

◆ GetBasisType()

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

Definition at line 1202 of file fe_base.hpp.

◆ GetDofMap()

const Array<int>& mfem::TensorBasisElement::GetDofMap ( ) const
inline

Get an Array<int> that maps lexicographically ordered indices to the indices of the respective nodes/dofs/basis functions. If the dofs are ordered lexicographically, i.e. the mapping is identity, the returned Array will be empty.

Definition at line 1210 of file fe_base.hpp.

◆ GetTensorDofToQuad()

const DofToQuad & mfem::TensorBasisElement::GetTensorDofToQuad ( const FiniteElement fe,
const IntegrationRule ir,
DofToQuad::Mode  mode,
const Poly_1D::Basis basis,
bool  closed,
Array< DofToQuad *> &  dof2quad_array 
)
static

Definition at line 2459 of file fe_base.cpp.

◆ GetTensorProductGeometry()

static Geometry::Type mfem::TensorBasisElement::GetTensorProductGeometry ( int  dim)
inlinestatic

Definition at line 1212 of file fe_base.hpp.

◆ Pow()

static int mfem::TensorBasisElement::Pow ( int  base,
int  dim 
)
inlinestatic

Return base raised to the power dim.

Definition at line 1226 of file fe_base.hpp.

Member Data Documentation

◆ b_type

int mfem::TensorBasisElement::b_type
protected

Definition at line 1186 of file fe_base.hpp.

◆ basis1d

Poly_1D::Basis& mfem::TensorBasisElement::basis1d
protected

Definition at line 1188 of file fe_base.hpp.

◆ dof_map

Array<int> mfem::TensorBasisElement::dof_map
protected

Definition at line 1187 of file fe_base.hpp.

◆ inv_dof_map

Array<int> mfem::TensorBasisElement::inv_dof_map
protected

Definition at line 1189 of file fe_base.hpp.


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