ug4
ug::CrouzeixRaviartLSFS< ReferencePrism > Class Reference

#include <crouzeix_raviart.h>

+ Inheritance diagram for ug::CrouzeixRaviartLSFS< ReferencePrism >:

Public Member Functions

void grad (MathVector< dim > &g, const size_t i, const MathVector< dim > &x) const
 evaluates the gradient of the shape function More...
 
bool position (size_t i, MathVector< dim > &pos) const
 local position of DoF i More...
 
number shape (const size_t i, const MathVector< dim > &x) const
 evaluates the shape function More...
 
- Public Member Functions inherited from ug::CrouzeixRaviartBase< ReferencePrism >
bool continuous () const
 returns if space constructs continuous functions More...
 
 CrouzeixRaviartBase ()
 constructor More...
 
bool exact_position_available () const
 returns if the local dof position are exact More...
 
const LocalDoFlocal_dof (size_t dof) const
 returns the dof storage More...
 
size_t num_dof () const
 returns the total number of DoFs on the finite element More...
 
size_t num_dof (ReferenceObjectID type) const
 returns the number of DoFs on a sub-geometric object type More...
 
size_t num_sh () const
 
ReferenceObjectID roid () const
 returns the type of reference element More...
 
- Public Member Functions inherited from ug::BaseLSFS< CrouzeixRaviartLSFS< ReferencePrism >, 3 >
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 = 3
 Dimension, where shape functions are defined. More...
 
- Static Public Attributes inherited from ug::CrouzeixRaviartBase< ReferencePrism >
static const int dim
 dimension of reference element More...
 
static const size_t nsh
 Number of shape functions. More...
 
- Static Public Attributes inherited from ug::BaseLSFS< CrouzeixRaviartLSFS< ReferencePrism >, 3 >
static const int dim
 dimension of reference element More...
 

Additional Inherited Members

- Public Types inherited from ug::BaseLSFS< CrouzeixRaviartLSFS< ReferencePrism >, 3 >
typedef MathVector< TDim > grad_type
 Gradient type. More...
 
typedef CrouzeixRaviartLSFS< ReferencePrismImplType
 type of implementation More...
 
typedef number shape_type
 Shape type. More...
 
- Protected Member Functions inherited from ug::BaseLSFS< CrouzeixRaviartLSFS< ReferencePrism >, 3 >
ImplTypegetImpl ()
 access to implementation More...
 
const ImplTypegetImpl () const
 const access to implementation More...
 
- Protected Attributes inherited from ug::CrouzeixRaviartBase< ReferencePrism >
LocalDoF m_vLocalDoF [nsh]
 association to elements More...
 

Member Function Documentation

◆ grad()

void ug::CrouzeixRaviartLSFS< ReferencePrism >::grad ( MathVector< dim > &  g,
const size_t  i,
const MathVector< dim > &  x 
) const
inline

evaluates the gradient of the shape function

This function returns the gradient of Shape Function i at an element-local evaluation point.

Parameters
[in]inumber of DoF
[in]xPosition on reference element (evaluation point)
Returns
gradient at point

References UG_THROW.

◆ position()

bool ug::CrouzeixRaviartLSFS< ReferencePrism >::position ( size_t  i,
MathVector< dim > &  pos 
) const
inline

local position of DoF i

This function returns the local position of a DoF if possible.

Parameters
[in]inumber of DoF
[out]posPosition of DoF
Return values
trueif position exists
falseif no meaningful position available

References UG_THROW.

◆ shape()

number ug::CrouzeixRaviartLSFS< ReferencePrism >::shape ( const size_t  i,
const MathVector< dim > &  x 
) const
inline

evaluates the shape function

This function returns the value of Shape Function i at an element-local evaluation point.

Parameters
[in]inumber of DoF
[in]xPosition on reference element (evaluation point)
Returns
shape function value at point

References UG_THROW.

Member Data Documentation

◆ dim

const int ug::CrouzeixRaviartLSFS< ReferencePrism >::dim = 3
static

Dimension, where shape functions are defined.


The documentation for this class was generated from the following file: