ug4
|
Elementwise constant shape functions. More...
#include <piecewise_constant.h>
Public Member Functions | |
bool | continuous () const |
returns if space constructs continuous functions More... | |
bool | exact_position_available () const |
returns if the local dof position are exact More... | |
void | grad (MathVector< dim > &g, const size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
const LocalDoF & | local_dof (size_t dof) const |
returns the DoFs storage More... | |
size_t | num_dof () const |
size_t | num_dof (ReferenceObjectID type) const |
size_t | num_sh () const |
PiecewiseConstantLSFS () | |
Constructor. More... | |
bool | position (size_t i, MathVector< dim > &pos) const |
local position of DoF i More... | |
ReferenceObjectID | roid () const |
returns the Reference object id of the corresponding grid object More... | |
number | shape (const size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
Public Member Functions inherited from ug::BaseLSFS< PiecewiseConstantLSFS< TRefElem >, TRefElem::dim > | |
void | grad (grad_type &g, size_t i, const MathVector< dim > &x) const |
evaluates the gradient of the shape function More... | |
void | grads (grad_type *vGrad, const MathVector< dim > &x) const |
returns all gradients evaluated at a point More... | |
void | grads (std::vector< grad_type > &vGrad, const MathVector< dim > &x) const |
returns all gradients evaluated at a point More... | |
void | grads (std::vector< std::vector< grad_type > > &vvGrad, const std::vector< MathVector< dim > > &vLocPos) const |
returns all gradients evaluated at a point More... | |
void | shape (shape_type &sh, size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
shape_type | shape (size_t i, const MathVector< dim > &x) const |
evaluates the shape function More... | |
void | shapes (shape_type *vShape, const MathVector< dim > &x) const |
returns all shape functions evaluated at a point More... | |
void | shapes (std::vector< shape_type > &vShape, const MathVector< dim > &x) const |
returns all shape functions evaluated at a point More... | |
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... | |
Static Public Attributes | |
static const int | dim = TRefElem::dim |
Dimension, where shape functions are defined. More... | |
Static Public Attributes inherited from ug::BaseLSFS< PiecewiseConstantLSFS< TRefElem >, TRefElem::dim > | |
static const int | dim |
dimension of reference element More... | |
Protected Attributes | |
MathVector< dim > | bary |
Barycenter. More... | |
LocalDoF | m_vLocalDoF |
association to elements More... | |
Additional Inherited Members | |
Public Types inherited from ug::BaseLSFS< PiecewiseConstantLSFS< TRefElem >, TRefElem::dim > | |
typedef MathVector< TDim > | grad_type |
Gradient type. More... | |
typedef PiecewiseConstantLSFS< TRefElem > | ImplType |
type of implementation More... | |
typedef number | shape_type |
Shape type. More... | |
Protected Member Functions inherited from ug::BaseLSFS< PiecewiseConstantLSFS< TRefElem >, TRefElem::dim > | |
ImplType & | getImpl () |
access to implementation More... | |
const ImplType & | getImpl () const |
const access to implementation More... | |
Elementwise constant shape functions.
|
inline |
|
inline |
returns if space constructs continuous functions
|
inline |
returns if the local dof position are exact
|
inline |
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) |
References ug::VecSet().
|
inline |
returns the DoFs storage
References ug::PiecewiseConstantLSFS< TRefElem >::m_vLocalDoF.
|
inline |
returns the total number of dofs on the finite element
|
inline |
returns the total number of dofs on the finite element
|
inline |
returns the total number of dofs on the finite element
|
inline |
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 |
References ug::PiecewiseConstantLSFS< TRefElem >::bary.
|
inline |
returns the Reference object id of the corresponding grid object
|
inline |
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) |
|
protected |
Barycenter.
Referenced by ug::PiecewiseConstantLSFS< TRefElem >::PiecewiseConstantLSFS(), and ug::PiecewiseConstantLSFS< TRefElem >::position().
|
static |
Dimension, where shape functions are defined.
Referenced by ug::PiecewiseConstantLSFS< TRefElem >::PiecewiseConstantLSFS().
|
protected |
association to elements
Referenced by ug::PiecewiseConstantLSFS< TRefElem >::local_dof(), and ug::PiecewiseConstantLSFS< TRefElem >::PiecewiseConstantLSFS().