Flow123d
release_3.0.0-1091-gb6fa18e
|
Space of polynomial functions. More...
#include <fe_p.hh>
Public Member Functions | |
PolynomialSpace (unsigned int degree, unsigned int dim) | |
Constructor. More... | |
const double | basis_value (unsigned int basis_index, const arma::vec &point, unsigned int comp_index=0) const override |
Value of the i th basis function at point point . More... | |
const arma::vec | basis_grad (unsigned int basis_index, const arma::vec &point, unsigned int comp_index=0) const override |
Gradient of the i th basis function at point point . More... | |
const unsigned int | dim () const override |
Dimension of function space (number of basis functions). More... | |
Public Member Functions inherited from FunctionSpace | |
FunctionSpace (unsigned int space_dim, unsigned int n_components) | |
const unsigned int | space_dim () const |
Getter for space dimension. More... | |
const unsigned int | n_components () const |
Getter for number of components. More... | |
virtual | ~FunctionSpace () |
Private Attributes | |
const unsigned int | degree_ |
Max. degree of polynomials. More... | |
std::vector< arma::uvec > | powers |
Coefficients of basis functions. More... | |
Additional Inherited Members | |
Protected Attributes inherited from FunctionSpace | |
unsigned int | space_dim_ |
Space dimension of function arguments (i.e. 1, 2 or 3). More... | |
unsigned int | n_components_ |
Number of components of function values. More... | |
Space of polynomial functions.
This class serves for evaluation of the value and gradient of a polynomial of order degree
in dim
variables.
PolynomialSpace::PolynomialSpace | ( | unsigned int | degree, |
unsigned int | dim | ||
) |
|
overridevirtual |
Gradient of the i
th basis function at point point
.
basis_index | Index of the basis function. |
point | Point coordinates. |
comp_index | Index of component (>0 for vector-valued functions). |
Implements FunctionSpace.
|
overridevirtual |
Value of the i
th basis function at point point
.
basis_index | Index of the basis function. |
point | Point coordinates. |
comp_index | Index of component (>0 for vector-valued functions). |
Implements FunctionSpace.
|
inlineoverridevirtual |
Dimension of function space (number of basis functions).
Implements FunctionSpace.
Definition at line 60 of file fe_p.hh.
|
private |
|
private |