Reference documentation for deal.II version 9.6.0
|
#include <deal.II/base/scalar_polynomials_base.h>
Public Member Functions | |
ScalarPolynomialsBase (const unsigned int deg, const unsigned int n_polynomials) | |
ScalarPolynomialsBase (ScalarPolynomialsBase< dim > &&)=default | |
ScalarPolynomialsBase (const ScalarPolynomialsBase< dim > &)=default | |
virtual | ~ScalarPolynomialsBase ()=default |
virtual void | evaluate (const Point< dim > &unit_point, std::vector< double > &values, std::vector< Tensor< 1, dim > > &grads, std::vector< Tensor< 2, dim > > &grad_grads, std::vector< Tensor< 3, dim > > &third_derivatives, std::vector< Tensor< 4, dim > > &fourth_derivatives) const =0 |
virtual double | compute_value (const unsigned int i, const Point< dim > &p) const =0 |
template<int order> | |
Tensor< order, dim > | compute_derivative (const unsigned int i, const Point< dim > &p) const |
virtual Tensor< 1, dim > | compute_1st_derivative (const unsigned int i, const Point< dim > &p) const =0 |
virtual Tensor< 2, dim > | compute_2nd_derivative (const unsigned int i, const Point< dim > &p) const =0 |
virtual Tensor< 3, dim > | compute_3rd_derivative (const unsigned int i, const Point< dim > &p) const =0 |
virtual Tensor< 4, dim > | compute_4th_derivative (const unsigned int i, const Point< dim > &p) const =0 |
virtual Tensor< 1, dim > | compute_grad (const unsigned int, const Point< dim > &) const =0 |
virtual Tensor< 2, dim > | compute_grad_grad (const unsigned int, const Point< dim > &) const =0 |
unsigned int | n () const |
virtual unsigned int | degree () const |
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > | clone () const =0 |
virtual std::string | name () const =0 |
virtual std::size_t | memory_consumption () const |
Private Attributes | |
const unsigned int | polynomial_degree |
const unsigned int | n_pols |
This class provides a framework for the finite element polynomial classes for use with finite element classes that are derived from FE_Poly. An object of this type (or rather of a type derived from this class) is stored as a member variable in each object of type FE_Poly.
Any derived class must provide the most basic properties for shape functions evaluated on the reference cell. This includes, but is not limited to, implementing the evaluate(), name(), and clone() member functions. These functions are necessary to store the most basic information of how the polynomials in the derived class evaluate at a given point on the reference cell. More information on each function can be found in the corresponding function's documentation.
Some classes that derive from this class include
PolynomialsAdini
PolynomialsRannacherTurek
PolynomialsP
PolynomialSpace
TensorProductPolynomials
TensorProductPolynomialsConst
TensorProductPolynomialsBubbles
Definition at line 62 of file scalar_polynomials_base.h.
ScalarPolynomialsBase< dim >::ScalarPolynomialsBase | ( | const unsigned int | deg, |
const unsigned int | n_polynomials ) |
Constructor. This takes the degree of the space, deg
from the finite element class, and n
, the number of polynomials for the space.
Definition at line 25 of file scalar_polynomials_base.cc.
|
default |
Move constructor.
|
default |
Copy constructor.
|
virtualdefault |
Virtual destructor. Makes sure that pointers to this class are deleted properly.
|
pure virtual |
Compute the value and the derivatives of the polynomials at unit_point
.
The size of the vectors must either be zero or equal n()
. In the first case, the function will not compute these values.
If you need values or derivatives of all polynomials then use this function, rather than using any of the compute_value
, compute_grad
or compute_grad_grad
functions, see below, in a loop over all tensor product polynomials.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the value of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
inline |
Compute the order
th derivative of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
order | The order of the derivative. |
Definition at line 258 of file scalar_polynomials_base.h.
|
pure virtual |
Compute the first derivative of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the second derivative of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the third derivative of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the fourth derivative of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the gradient of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Compute the second derivative (grad_grad) of the i
th polynomial at unit point p
.
Consider using evaluate() instead.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
inline |
Return the number of polynomials.
Definition at line 239 of file scalar_polynomials_base.h.
|
inlinevirtual |
Return the highest polynomial degree of polynomials represented by this class. A derived class may override this if its value is different from my_degree
.
Reimplemented in PolynomialsP< dim >.
Definition at line 248 of file scalar_polynomials_base.h.
|
pure virtual |
A sort of virtual copy constructor, this function returns a copy of the polynomial space object. Derived classes need to override the function here in this base class and return an object of the same type as the derived class.
Some places in the library, for example the constructors of FE_Poly, need to make copies of polynomial spaces without knowing their exact type. They do so through this function.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialsP< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
pure virtual |
Return the name of the space.
Implemented in AnisotropicPolynomials< dim >, BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, PolynomialsAdini< dim >, PolynomialSpace< dim >, PolynomialSpace< dim - 1 >, PolynomialsRannacherTurek< dim >, ScalarLagrangePolynomialPyramid< dim >, ScalarLagrangePolynomialWedge< dim >, TensorProductPolynomials< dim, PolynomialType >, TensorProductPolynomials< dim - 1 >, TensorProductPolynomialsBubbles< dim >, and TensorProductPolynomialsConst< dim >.
|
virtual |
Return an estimate (in bytes) for the memory consumption of this object.
Reimplemented in BarycentricPolynomials< dim >, BarycentricPolynomials< 1 >, BarycentricPolynomials< 2 >, TensorProductPolynomials< dim, PolynomialType >, and TensorProductPolynomials< dim - 1 >.
Definition at line 38 of file scalar_polynomials_base.cc.
|
private |
The highest polynomial degree of this functions represented by this object.
Definition at line 227 of file scalar_polynomials_base.h.
|
private |
The number of polynomials represented by this object.
Definition at line 232 of file scalar_polynomials_base.h.