dummy set with no basis functions. More...
#include <BasisFunctions.h>
Public Member Functions | |
EmptyBasisFunctions () | |
virtual | ~EmptyBasisFunctions () |
EmptyBasisFunctions (const EmptyBasisFunctions &) | |
virtual EmptyBasisFunctions * | clone () const |
const std::vector< double > & | getShapes () const |
Shape functions at quadrature points getShapes()[q*getBasisDimension()+a] gives the value of shape function a at quadrature point q. | |
const std::vector< double > & | getDShapes () const |
Derivatives of shape functions at quadrature points getDShapes()[q*getBasisDimension()*getNumberOfDerivativesPerFunction()+ +a*getNumberOfDerivativesPerFunction()+i] gives the derivative in the i-th direction of degree of freedom a at quadrature point q. | |
const std::vector< double > & | getIntegrationWeights () const |
const std::vector< double > & | getQuadraturePointCoordinates () const |
Coordinates of quadrature points in the real configuration getQuadraturePointCoordinates() q*ElementGeometrygetEmbeddingDimension()+i] returns the i-th coordinate in real space of quadrature point q. | |
size_t | getBasisDimension () const |
returns the number of shape functions provided | |
size_t | getNumberOfDerivativesPerFunction () const |
returns the number of directional derivative for each shape function | |
size_t | getSpatialDimensions () const |
returns the number of number of coordinates for each Gauss point | |
Static Private Attributes | |
static std::vector< double > | ZeroSizeVector |
dummy set with no basis functions.
This class contains only static data and has the mission of providing a BasisFunctions object that has no basis functions in it.
This becomes useful, for example, as a cheap way of providing Element with a BasisFunction object that can be returned but that occupies no memory. Since Element has to be able to have a BasisFunction object per field, by utilizing this object there is no need to construct an odd order for the fields in order to save memory.
EmptyBasisFunctions::EmptyBasisFunctions | ( | ) | [inline] |
virtual EmptyBasisFunctions::~EmptyBasisFunctions | ( | ) | [inline, virtual] |
EmptyBasisFunctions::EmptyBasisFunctions | ( | const EmptyBasisFunctions & | ) | [inline] |
virtual EmptyBasisFunctions* EmptyBasisFunctions::clone | ( | ) | const [inline, virtual] |
Implements BasisFunctions.
size_t EmptyBasisFunctions::getBasisDimension | ( | ) | const [inline, virtual] |
returns the number of shape functions provided
Implements BasisFunctions.
const std::vector<double>& EmptyBasisFunctions::getDShapes | ( | ) | const [inline, virtual] |
Derivatives of shape functions at quadrature points getDShapes()[q*getBasisDimension()*getNumberOfDerivativesPerFunction()+ +a*getNumberOfDerivativesPerFunction()+i] gives the derivative in the i-th direction of degree of freedom a at quadrature point q.
getDShapes returns an empty vector if no derivatives are available
Implements BasisFunctions.
const std::vector<double>& EmptyBasisFunctions::getIntegrationWeights | ( | ) | const [inline, virtual] |
Implements BasisFunctions.
size_t EmptyBasisFunctions::getNumberOfDerivativesPerFunction | ( | ) | const [inline, virtual] |
returns the number of directional derivative for each shape function
Implements BasisFunctions.
const std::vector<double>& EmptyBasisFunctions::getQuadraturePointCoordinates | ( | ) | const [inline, virtual] |
Coordinates of quadrature points in the real configuration getQuadraturePointCoordinates() q*ElementGeometrygetEmbeddingDimension()+i] returns the i-th coordinate in real space of quadrature point q.
Implements BasisFunctions.
const std::vector<double>& EmptyBasisFunctions::getShapes | ( | ) | const [inline, virtual] |
Shape functions at quadrature points getShapes()[q*getBasisDimension()+a] gives the value of shape function a at quadrature point q.
getShapes returns an empty vector if no shape functions are available
Implements BasisFunctions.
size_t EmptyBasisFunctions::getSpatialDimensions | ( | ) | const [inline, virtual] |
returns the number of number of coordinates for each Gauss point
Implements BasisFunctions.
std::vector< double > EmptyBasisFunctions::ZeroSizeVector [static, private] |