MFEM  v4.6.0 Finite element discretization library
mfem::BasisType Class Reference

Possible basis types. Note that not all elements can use all BasisType(s). More...

#include <fe_base.hpp>

## Public Types

enum  {
Invalid = -1, GaussLegendre = 0, GaussLobatto = 1, Positive = 2,
OpenUniform = 3, ClosedUniform = 4, OpenHalfUniform = 5, Serendipity = 6,
ClosedGL = 7, IntegratedGLL = 8, NumBasisTypes = 9
}

## Static Public Member Functions

static int Check (int b_type)
If the input does not represents a valid BasisType, abort with an error; otherwise return the input. More...

static int CheckNodal (int b_type)
If the input does not represents a valid nodal BasisType, abort with an error; otherwise return the input. More...

static int GetQuadrature1D (int b_type)
Get the corresponding Quadrature1D constant, when that makes sense; otherwise return Quadrature1D::Invalid. More...

static int GetNodalBasis (int qpt_type)
Return the nodal BasisType corresponding to the Quadrature1D type. More...

static const char * Name (int b_type)
Check and convert a BasisType constant to a string identifier. More...

static char GetChar (int b_type)
Check and convert a BasisType constant to a char basis identifier. More...

static int GetType (char b_ident)
Convert char basis identifier to a BasisType constant. More...

## Detailed Description

Possible basis types. Note that not all elements can use all BasisType(s).

Definition at line 25 of file fe_base.hpp.

## ◆ anonymous enum

 anonymous enum
Enumerator
Invalid
GaussLegendre

Open type.

GaussLobatto

Closed type.

Positive

Bernstein polynomials.

OpenUniform

Nodes: x_i = (i+1)/(n+1), i=0,...,n-1.

ClosedUniform

Nodes: x_i = i/(n-1), i=0,...,n-1.

OpenHalfUniform

Nodes: x_i = (i+1/2)/n, i=0,...,n-1.

Serendipity

Serendipity basis (squares / cubes)

ClosedGL

Closed GaussLegendre.

IntegratedGLL

Integrated GLL indicator functions.

NumBasisTypes

Keep track of maximum types to prevent hard-coding

Definition at line 28 of file fe_base.hpp.

## ◆ Check()

 static int mfem::BasisType::Check ( int b_type )
inlinestatic

If the input does not represents a valid BasisType, abort with an error; otherwise return the input.

Definition at line 45 of file fe_base.hpp.

## ◆ CheckNodal()

 static int mfem::BasisType::CheckNodal ( int b_type )
inlinestatic

If the input does not represents a valid nodal BasisType, abort with an error; otherwise return the input.

Definition at line 53 of file fe_base.hpp.

## ◆ GetChar()

 static char mfem::BasisType::GetChar ( int b_type )
inlinestatic

Check and convert a BasisType constant to a char basis identifier.

Definition at line 104 of file fe_base.hpp.

## ◆ GetNodalBasis()

 static int mfem::BasisType::GetNodalBasis ( int qpt_type )
inlinestatic

Return the nodal BasisType corresponding to the Quadrature1D type.

Definition at line 78 of file fe_base.hpp.

 static int mfem::BasisType::GetQuadrature1D ( int b_type )
inlinestatic

Get the corresponding Quadrature1D constant, when that makes sense; otherwise return Quadrature1D::Invalid.

Definition at line 61 of file fe_base.hpp.

## ◆ GetType()

 static int mfem::BasisType::GetType ( char b_ident )
inlinestatic

Convert char basis identifier to a BasisType constant.

Definition at line 111 of file fe_base.hpp.

## ◆ Name()

 static const char* mfem::BasisType::Name ( int b_type )
inlinestatic

Check and convert a BasisType constant to a string identifier.

Definition at line 92 of file fe_base.hpp.

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