MFEM  v3.4 Finite element discretization library
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, NumBasisTypes = 6
}

## 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.

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 44 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 52 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 97 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 74 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 60 of file fe.hpp.

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

Convert char basis identifier to a BasisType constant.

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

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