MFEM
v4.5.2
Finite element discretization library

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 precomputed 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 nonintegrated bases. More...  
bool  IsIntegratedType () const 
Returns true if the basis is "integrated", false otherwise. More...  
~Basis ()  
Class for evaluating 1D nodal, positive (Bernstein), or integrated (Gerritsma) bases.
Definition at line 956 of file fe_base.hpp.
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 1599 of file fe_base.cpp.
mfem::Poly_1D::Basis::~Basis  (  ) 
Definition at line 1925 of file fe_base.cpp.
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 1663 of file fe_base.cpp.
Evaluate the basis functions and their derivatives at point x in [0,1].
Definition at line 1724 of file fe_base.cpp.
Evaluate the basis functions and their first two derivatives at point x in [0,1].
Definition at line 1804 of file fe_base.cpp.
Evaluate the "integrated" basis type using precomputed 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 1895 of file fe_base.cpp.

inline 
Returns true if the basis is "integrated", false otherwise.
Definition at line 1001 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 nonintegrated 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 1920 of file fe_base.cpp.