ug4
|
wrapper class implementing the LocalShapeFunctionSet interface More...
Public Types | |
typedef ImplType::grad_type | grad_type |
Gradient type. More... | |
typedef ImplType::shape_type | shape_type |
Shape type. More... | |
Public Types inherited from ug::LocalShapeFunctionSet< TImpl::dim, TImpl::shape_type, TImpl::grad_type > | |
typedef TImpl::grad_type | grad_type |
Gradient type. More... | |
typedef MathVector< dim > | position_type |
Domain position type. More... | |
typedef TImpl::shape_type | shape_type |
Shape type. More... | |
Public Member Functions | |
virtual bool | continuous () const |
returns if space constructs continuous functions More... | |
virtual bool | exact_position_available () const |
virtual void | grad (grad_type &g, size_t i, const MathVector< dim > &x) const |
evaluates the gradient of the shape function More... | |
virtual void | grads (grad_type *vGrad, const MathVector< dim > &x) const |
returns all gradients evaluated at a point More... | |
virtual void | grads (std::vector< grad_type > &vGrad, const MathVector< dim > &x) const |
returns all gradients evaluated at a point More... | |
virtual void | grads (std::vector< std::vector< grad_type > > &vvGrad, const std::vector< MathVector< dim > > &vLocPos) const |
returns all gradients evaluated at a point More... | |
virtual const LocalDoF & | local_dof (size_t dof) const |
returns the DoFs storage More... | |
LocalShapeFunctionSetWrapper () | |
constructor More... | |
virtual size_t | num_dof (ReferenceObjectID roid) const |
virtual size_t | num_sh () const |
virtual bool | position (size_t i, MathVector< dim > &pos) const |
local position of DoF i More... | |
virtual ReferenceObjectID | roid () const |
virtual void | shape (shape_type &s, size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
virtual shape_type | shape (size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
virtual void | shapes (shape_type *vShape, const MathVector< dim > &x) const |
returns all shape functions evaluated at a point More... | |
virtual void | shapes (std::vector< shape_type > &vShape, const MathVector< dim > &x) const |
returns all shape functions evaluated at a point More... | |
virtual void | shapes (std::vector< std::vector< shape_type > > &vvShape, const std::vector< MathVector< dim > > &vLocPos) const |
returns all shape functions evaluated at a point More... | |
Public Member Functions inherited from ug::LocalShapeFunctionSet< TImpl::dim, TImpl::shape_type, TImpl::grad_type > | |
virtual void | grad (grad_type &g, size_t i, const MathVector< dim > &x) const=0 |
evaluates the gradient of the shape function More... | |
virtual void | grads (std::vector< std::vector< grad_type > > &vvGrad, const std::vector< MathVector< dim > > &vLocPos) const=0 |
returns all gradients evaluated at a several points More... | |
virtual void | shape (shape_type &shape, size_t i, const MathVector< dim > &x) const=0 |
evaluates the shape function More... | |
virtual void | shapes (std::vector< std::vector< shape_type > > &vvShape, const std::vector< MathVector< dim > > &vLocPos) const=0 |
returns all shape functions evaluated at several point More... | |
virtual | ~LocalShapeFunctionSet () |
virtual destructor More... | |
virtual void | shapes (shape_type *vShape, const MathVector< dim > &x) const=0 |
returns all shape functions evaluated at a point More... | |
virtual void | shapes (std::vector< shape_type > &vShape, const MathVector< dim > &x) const=0 |
returns all shape functions evaluated at a point More... | |
virtual void | grads (grad_type *vGrad, const MathVector< dim > &x) const=0 |
returns all gradients evaluated at a point More... | |
virtual void | grads (std::vector< grad_type > &vGrad, const MathVector< dim > &x) const=0 |
returns all gradients evaluated at a point More... | |
Public Member Functions inherited from ug::DimLocalDoFSet< TDim > | |
DimLocalDoFSet () | |
constructor More... | |
bool | operator!= (const DimLocalDoFSet< TDim > &v) const |
inequality check More... | |
bool | operator== (const DimLocalDoFSet< TDim > &v) const |
equality check More... | |
virtual bool | position (size_t i, MathVector< TDim > &pos) const =0 |
local position of DoF i More... | |
Public Member Functions inherited from ug::LocalDoFSet | |
int | dim () const |
returns the reference dimension More... | |
size_t | num_dof (int d, size_t id) const |
returns the number of DoFs on a sub-geometric object of dim and id More... | |
bool | operator!= (const LocalDoFSet &v) const |
inequality check More... | |
bool | operator== (const LocalDoFSet &v) const |
equality check More... | |
virtual | ~LocalDoFSet () |
virtual destructor More... | |
size_t | num_dof () const |
Static Public Attributes | |
static const int | dim = TImpl::dim |
reference element dimension More... | |
Static Public Attributes inherited from ug::LocalShapeFunctionSet< TImpl::dim, TImpl::shape_type, TImpl::grad_type > | |
static const int | dim |
Dimension, where shape functions are defined. More... | |
Private Types | |
typedef TImpl | ImplType |
Implementation. More... | |
wrapper class implementing the LocalShapeFunctionSet interface
This class wrappes a class passed by the template argument into the virtual ILocalShapeFunctionSet interface and makes it thus usable in that context on the price of virtual functions.
TImpl | Implementation of a Local Shape Function Set |
typedef ImplType::grad_type ug::LocalShapeFunctionSetWrapper< TImpl >::grad_type |
Gradient type.
|
private |
Implementation.
typedef ImplType::shape_type ug::LocalShapeFunctionSetWrapper< TImpl >::shape_type |
Shape type.
|
inline |
constructor
|
inlinevirtual |
returns if space constructs continuous functions
Implements ug::LocalShapeFunctionSet< TImpl::dim, TImpl::shape_type, TImpl::grad_type >.
|
inlinevirtual |
Implements ug::DimLocalDoFSet< TDim >.
|
inlinevirtual |
evaluates the gradient of the shape function
This function returns the gradient of Shape Function i at an element-local evaluation point.
[in] | i | number of DoF |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns all gradients evaluated at a point
This function returns the gradients of all Shape Functions at an element-local evaluation point in an array.
[out] | vGrad | Vector of gradients |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns all gradients evaluated at a point
This function returns the gradients of all Shape Functions at an element-local evaluation point in an array.
[out] | vGrad | Vector of gradients |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns all gradients evaluated at a point
This function returns the gradients of all Shape Functions at an element-local evaluation point in an array.
[out] | vGrad | Vector of gradients |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns the DoFs storage
Implements ug::LocalDoFSet.
|
inlinevirtual |
returns the total number of dofs on the finite element
Implements ug::LocalDoFSet.
References ug::LocalShapeFunctionSetWrapper< TImpl >::roid().
|
inlinevirtual |
returns the total number of dofs on the finite element
Reimplemented from ug::LocalDoFSet.
|
inlinevirtual |
local position of DoF i
This function returns the local position of a DoF if possible.
[in] | i | number of DoF |
[out] | pos | Position of DoF |
true | if position exists |
false | if no meaningful position available |
|
inlinevirtual |
Implements ug::LocalDoFSet.
Referenced by ug::LocalShapeFunctionSetWrapper< TImpl >::num_dof().
|
inlinevirtual |
|
inlinevirtual |
evaluates the shape function
This function returns the value of Shape Function i at an element-local evaluation point.
[in] | i | number of DoF |
[in] | x | Position on reference element (evaluation point) |
Implements ug::LocalShapeFunctionSet< TImpl::dim, TImpl::shape_type, TImpl::grad_type >.
|
inlinevirtual |
returns all shape functions evaluated at a point
This function returns the values of all Shape Functions at an element-local evaluation point in an array.
[out] | vShape | Vector of Shapes |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns all shape functions evaluated at a point
This function returns the values of all Shape Functions at an element-local evaluation point in an array.
[out] | vShape | Vector of Shapes |
[in] | x | Position on reference element (evaluation point) |
|
inlinevirtual |
returns all shape functions evaluated at a point
This function returns the values of all Shape Functions at an element-local evaluation point in an array.
[out] | vShape | Vector of Shapes |
[in] | x | Position on reference element (evaluation point) |
|
static |
reference element dimension