EmptyBasisFunctions Class Reference

dummy set with no basis functions. More...

#include <BasisFunctions.h>

Inheritance diagram for EmptyBasisFunctions:
BasisFunctions

List of all members.

Public Member Functions

 EmptyBasisFunctions ()
virtual ~EmptyBasisFunctions ()
 EmptyBasisFunctions (const EmptyBasisFunctions &)
virtual EmptyBasisFunctionsclone () 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

Detailed Description

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.


Constructor & Destructor Documentation

EmptyBasisFunctions::EmptyBasisFunctions (  )  [inline]
virtual EmptyBasisFunctions::~EmptyBasisFunctions (  )  [inline, virtual]
EmptyBasisFunctions::EmptyBasisFunctions ( const EmptyBasisFunctions  )  [inline]

Member Function Documentation

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]
Returns:
vector of integration weights Integration weights

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.


Member Data Documentation

std::vector< double > EmptyBasisFunctions::ZeroSizeVector [static, private]

The documentation for this class was generated from the following files:
Generated on Tue Aug 2 11:51:27 2011 for Galois by  doxygen 1.6.3