hp1D::KarniadakisMixin< F > Class Template Referenceabstract
The following two types are shape function mixins. More...
#include <element.hh>
Public Types | |
typedef F | FieldT |
enum | intFormType { ZERO, ONE, TWO, THREE } |
Integration form, which determines terms coming from integration over reference element. More... | |
typedef F | type |
Public Member Functions | |
virtual const concepts::EdgeNd & | cell () const |
Returns the cell on which the element is built. More... | |
const concepts::Real3d | chi (const Real x) const |
Computes the element map. More... | |
Real3d | elemMap (const Real coord_local) const |
Real3d | elemMap (const Real2d &coord_local) const |
Real3d | elemMap (const Real3d &coord_local) const |
virtual const concepts::ElementGraphics< Real > * | graphics () const |
Returns element graphics class. More... | |
const concepts::QuadratureRule1d * | integration () const |
Returns the integration rule. More... | |
Real | jacobianDeterminant (const Real x) const |
Computes the determinant of the Jacobian. More... | |
KarniadakisMixin (const concepts::EdgeNd &cell, ushort p) | |
ushort | p () const |
virtual bool | quadraturePoint (uint i, intPoint &p, intFormType form=ZERO, bool localCoord=false) const |
Delivers a quadrature point. More... | |
void | recomputeShapefunctions () override |
Recompute shape functions, e.g. More... | |
const concepts::Karniadakis< 1, 0 > * | shpfct () const override |
Returns the shape functions. More... | |
const concepts::Karniadakis< 1, 1 > * | shpfctD () const |
Returns the derivatives of the shape functions. More... | |
const concepts::Karniadakis< 1, 2 > * | shpfctDD () const |
Returns the second derivatives of the shape functions. More... | |
virtual const concepts::Edge & | support () const |
virtual const TMatrixBase< F > & | T () const =0 |
Returns the T matrix of the element. More... | |
virtual concepts::Real3d | vertex (uint i) const |
Static Public Member Functions | |
static concepts::QuadRuleFactory & | rule () |
Access to the quadrature rule, which is valid for all elements of this type (hp1D::IntegrableElm). More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Protected Attributes | |
const concepts::EdgeNd & | cell_ |
The cell. More... | |
std::unique_ptr< concepts::QuadratureRule1d > | int_ |
The integration rule. More... | |
ushort | p_ |
T matrix of the element. More... | |
Static Protected Attributes | |
static std::unique_ptr< LineGraphics > | graphics_ |
static concepts::QuadRuleFactory | rule_ |
Private Member Functions | |
void | recomputeSecondDerivativeOfShapefunctions_ () |
Recompute second derivative of the shape functions, e.g. More... | |
Private Attributes | |
bool | secondDerivativeUsed_ |
std::unique_ptr< concepts::Karniadakis< 1, 0 > > | shpfct_ |
The shape functions. More... | |
std::unique_ptr< concepts::Karniadakis< 1, 1 > > | shpfctD_ |
The derivatives of the shape functions. More... | |
std::unique_ptr< concepts::Karniadakis< 1, 2 > > | shpfctDD_ |
The second derivatives of the shape functions. More... | |
Detailed Description
template<class F>
class hp1D::KarniadakisMixin< F >
The following two types are shape function mixins.
Karniadakis shape functions mixin
Definition at line 137 of file element.hh.
Member Typedef Documentation
◆ FieldT
|
inherited |
Definition at line 82 of file element.hh.
◆ type
|
inherited |
Definition at line 81 of file element.hh.
Member Enumeration Documentation
◆ intFormType
|
inherited |
Integration form, which determines terms coming from integration over reference element.
Enumerator | |
---|---|
ZERO | |
ONE | |
TWO | |
THREE |
Definition at line 29 of file integral.hh.
Constructor & Destructor Documentation
◆ KarniadakisMixin()
|
inline |
Definition at line 139 of file element.hh.
Member Function Documentation
◆ cell()
|
inlinevirtualinherited |
Returns the cell on which the element is built.
Implements concepts::ElementWithCell< F >.
Definition at line 99 of file element.hh.
◆ chi()
|
inlineinherited |
◆ elemMap() [1/3]
|
inlineinherited |
Definition at line 86 of file element.hh.
◆ elemMap() [2/3]
|
inlineinherited |
Definition at line 90 of file element.hh.
◆ elemMap() [3/3]
|
inlineinherited |
Definition at line 94 of file element.hh.
◆ graphics()
|
virtualinherited |
Returns element graphics class.
◆ info()
|
protectedvirtualinherited |
Reimplemented in hp2D::NeumannTraceElement< F >.
◆ integration()
|
inlineinherited |
Returns the integration rule.
Definition at line 51 of file element.hh.
◆ jacobianDeterminant()
|
inlineinherited |
Computes the determinant of the Jacobian.
Definition at line 45 of file element.hh.
◆ p()
|
inlineinherited |
Definition at line 103 of file element.hh.
◆ quadraturePoint()
|
virtualinherited |
Delivers a quadrature point.
Quadrature point consists of coordinates (for evaluation of formulas) and intermediate data, consisting of the weight and term coming from mapping.
Returns false
, if the number of quadrature points is overstepped.
- Parameters
-
i number of quadrature point intPoint data given back form Integration form localCoord If true, local coordinates are returned. Else physical coordinates.
Implements concepts::IntegrationCell.
◆ recomputeSecondDerivativeOfShapefunctions_()
|
private |
Recompute second derivative of the shape functions, e.g.
for other abscissas redefined through IntegrableElm::rule().set(...) If shpfctDD() was ever used, this method also recalculate the second derivatives of the shape functions.
◆ recomputeShapefunctions()
|
overridevirtual |
Recompute shape functions, e.g.
for other abscissas redefined through IntegrableElm::rule().set(...)
Implements hp1D::BaseElement< F >.
◆ rule()
|
inlinestaticinherited |
Access to the quadrature rule, which is valid for all elements of this type (hp1D::IntegrableElm).
Change of the quadrature rule is put into practice for newly created elements and for already created elements by precomputing the integration points and shape functions on them.
Definition at line 62 of file element.hh.
◆ shpfct()
|
inlineoverridevirtual |
Returns the shape functions.
Implements hp1D::BaseElement< F >.
Definition at line 151 of file element.hh.
◆ shpfctD()
|
inline |
Returns the derivatives of the shape functions.
Definition at line 155 of file element.hh.
◆ shpfctDD()
|
inline |
Returns the second derivatives of the shape functions.
Definition at line 160 of file element.hh.
◆ support()
|
inlinevirtualinherited |
Definition at line 91 of file element.hh.
◆ T()
|
pure virtualinherited |
Returns the T matrix of the element.
Implemented in hp3D::Element< F >, hp3D::Element< Real >, hp2D::Element< F >, hp2D::Element< Real >, and bem::Constant3d002< concepts::Real >.
◆ vertex()
|
inlinevirtualinherited |
Definition at line 95 of file element.hh.
Member Data Documentation
◆ cell_
|
protectedinherited |
The cell.
Definition at line 70 of file element.hh.
◆ graphics_
|
staticprotectedinherited |
Definition at line 126 of file element.hh.
◆ int_
|
protectedinherited |
The integration rule.
Definition at line 72 of file element.hh.
◆ p_
|
protectedinherited |
T matrix of the element.
Definition at line 124 of file element.hh.
◆ rule_
|
staticprotectedinherited |
Definition at line 74 of file element.hh.
◆ secondDerivativeUsed_
|
mutableprivate |
Definition at line 185 of file element.hh.
◆ shpfct_
|
private |
The shape functions.
Definition at line 178 of file element.hh.
◆ shpfctD_
|
private |
The derivatives of the shape functions.
Definition at line 180 of file element.hh.
◆ shpfctDD_
|
mutableprivate |
The second derivatives of the shape functions.
Definition at line 183 of file element.hh.
The documentation for this class was generated from the following file:
- hp1D/element.hh