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

Class for evaluating 1D nodal, positive (Bernstein), or integrated (Gerritsma) bases. More...

#include <fe_base.hpp>

Public Member Functions

 Basis (const int p, const double *nodes, EvalType etype=Barycentric)
 Create a nodal or positive (Bernstein) basis of degree p. More...
 
void Eval (const double x, Vector &u) const
 Evaluate the basis functions at point x in [0,1]. More...
 
void Eval (const double x, Vector &u, Vector &d) const
 Evaluate the basis functions and their derivatives at point x in [0,1]. More...
 
void Eval (const double x, Vector &u, Vector &d, Vector &d2) const
 Evaluate the basis functions and their first two derivatives at point x in [0,1]. More...
 
void EvalIntegrated (const Vector &d, Vector &i) const
 Evaluate the "integrated" basis type using pre-computed closed basis derivatives. More...
 
void ScaleIntegrated (bool scale_integrated_)
 Set whether the "integrated" basis should be scaled by the subcell sizes. Has no effect for non-integrated bases. More...
 
bool IsIntegratedType () const
 Returns true if the basis is "integrated", false otherwise. More...
 
 ~Basis ()
 

Detailed Description

Class for evaluating 1D nodal, positive (Bernstein), or integrated (Gerritsma) bases.

Definition at line 977 of file fe_base.hpp.

Constructor & Destructor Documentation

mfem::Poly_1D::Basis::Basis ( const int  p,
const double *  nodes,
EvalType  etype = Barycentric 
)

Create a nodal or positive (Bernstein) basis of degree p.

Definition at line 1558 of file fe_base.cpp.

mfem::Poly_1D::Basis::~Basis ( )

Definition at line 1884 of file fe_base.cpp.

Member Function Documentation

void mfem::Poly_1D::Basis::Eval ( const double  x,
Vector u 
) const

Evaluate the basis functions at point x in [0,1].

Definition at line 1622 of file fe_base.cpp.

void mfem::Poly_1D::Basis::Eval ( const double  x,
Vector u,
Vector d 
) const

Evaluate the basis functions and their derivatives at point x in [0,1].

Definition at line 1683 of file fe_base.cpp.

void mfem::Poly_1D::Basis::Eval ( const double  x,
Vector u,
Vector d,
Vector d2 
) const

Evaluate the basis functions and their first two derivatives at point x in [0,1].

Definition at line 1763 of file fe_base.cpp.

void mfem::Poly_1D::Basis::EvalIntegrated ( const Vector d,
Vector i 
) const

Evaluate the "integrated" basis type using pre-computed closed basis derivatives.

This basis is given by the negative partial sum of the corresponding closed basis derivatives. The closed basis derivatives are given by d, and the result is stored in i.

Definition at line 1854 of file fe_base.cpp.

bool mfem::Poly_1D::Basis::IsIntegratedType ( ) const
inline

Returns true if the basis is "integrated", false otherwise.

Definition at line 1022 of file fe_base.hpp.

void mfem::Poly_1D::Basis::ScaleIntegrated ( bool  scale_integrated_)

Set whether the "integrated" basis should be scaled by the subcell sizes. Has no effect for non-integrated bases.

Generally, this should be true for mfem::FiniteElement::MapType VALUE and false for all other map types. If this option is enabled, the basis functions will be scaled by the widths of the subintervals, so that the basis functions represent mean values. Otherwise, the basis functions represent integrated values.

Definition at line 1879 of file fe_base.cpp.


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