MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Static Public Member Functions | List of all members
mfem::BasisType Class Reference

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

#include <fe.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 27 of file fe.hpp.

Member Enumeration Documentation

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 30 of file fe.hpp.

Member Function Documentation

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 47 of file fe.hpp.

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 55 of file fe.hpp.

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

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

Definition at line 106 of file fe.hpp.

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

Return the nodal BasisType corresponding to the Quadrature1D type.

Definition at line 80 of file fe.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 63 of file fe.hpp.

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

Convert char basis identifier to a BasisType constant.

Definition at line 113 of file fe.hpp.

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

Check and convert a BasisType constant to a string identifier.

Definition at line 94 of file fe.hpp.


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