HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Public Types | Public Member Functions | Static Public Attributes | List of all members
HArDCore2D::RestrictedBasis< BasisType > Class Template Reference

Generate a basis restricted to the first "dimension" functions. More...

#include <basis.hpp>

Public Types

typedef BasisType::FunctionValue FunctionValue
 
typedef BasisType::GradientValue GradientValue
 
typedef BasisType::CurlValue CurlValue
 
typedef BasisType::DivergenceValue DivergenceValue
 
typedef BasisType::RotorValue RotorValue
 
typedef BasisType::HessianValue HessianValue
 
typedef BasisType::GeometricSupport GeometricSupport
 
typedef BasisType AncestorType
 

Public Member Functions

 RestrictedBasis (const BasisType &basis, const size_t &dimension)
 Constructor. More...
 
size_t dimension () const
 Return the dimension of the basis. More...
 
constexpr const BasisType & ancestor () const
 Return the underlying complete basis. More...
 
size_t max_degree () const
 Returns the maximum degree of the basis functions. More...
 
FunctionValue function (size_t i, const VectorRd &x) const
 Evaluate the i-th basis function at point x. More...
 
GradientValue gradient (size_t i, const VectorRd &x) const
 Evaluate the gradient of the i-th basis function at point x. More...
 
CurlValue curl (size_t i, const VectorRd &x) const
 Evaluate the curl of the i-th basis function at point x. More...
 
DivergenceValue divergence (size_t i, const VectorRd &x) const
 Evaluate the divergence of the i-th basis function at point x. More...
 
RotorValue rotor (size_t i, const VectorRd &x) const
 Evaluate the rotor of the i-th basis function at point x. More...
 

Static Public Attributes

constexpr static const TensorRankE tensorRank = BasisType::tensorRank
 
constexpr static const bool hasAncestor = true
 
static const bool hasFunction = BasisType::hasFunction
 
static const bool hasGradient = BasisType::hasGradient
 
static const bool hasCurl = BasisType::hasCurl
 
static const bool hasDivergence = BasisType::hasDivergence
 
static const bool hasRotor = BasisType::hasRotor
 
static const bool hasHessian = BasisType::hasHessian
 

Detailed Description

template<typename BasisType>
class HArDCore2D::RestrictedBasis< BasisType >

Generate a basis restricted to the first "dimension" functions.

This can be useful, e.g., to form bases of subspaces of a given space from a hierarchical basis of the latter


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