ug4
ug::H1SemiIntegrand< TGridFunction > Class Template Reference

Norm of a grid function, evaluated in (weighted) H1-semi norm. More...

#include <integrate.h>

+ Inheritance diagram for ug::H1SemiIntegrand< TGridFunction >:

Public Types

typedef UserData< MathMatrix< worldDim, worldDim >, worldDimweight_type
 
- Public Types inherited from ug::StdIntegrand< number, TGridFunction::dim, H1SemiIntegrand< TGridFunction > >
typedef number data_type
 data type More...
 
- Public Types inherited from ug::IIntegrand< TData, TWorldDim >
typedef TData data_type
 data type More...
 

Public Member Functions

template<int elemDim>
void evaluate (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< elemDim > vLocIP[], const MathMatrix< elemDim, worldDim > vJT[], const size_t numIP)
 returns the values of the integrand for a bunch of ips More...
 
 H1SemiIntegrand (TGridFunction &gridFct, size_t cmp)
 constructor More...
 
 H1SemiIntegrand (TGridFunction &gridFct, size_t cmp, ConstSmartPtr< weight_type > spWeight)
 constructor More...
 
virtual void set_subset (int si)
 sets subset More...
 
virtual ~H1SemiIntegrand ()
 DTOR. More...
 
- Public Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, H1SemiIntegrand< TGridFunction > >
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)
 
virtual void values (number vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)
 
- Public Member Functions inherited from ug::IIntegrand< TData, TWorldDim >
int subset () const
 returns the subset More...
 
virtual ~IIntegrand ()
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 1 > vLocIP[], const MathMatrix< 1, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 2 > vLocIP[], const MathMatrix< 2, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 
virtual void values (TData vValue[], const MathVector< worldDim > vGlobIP[], GridObject *pElem, const MathVector< worldDim > vCornerCoords[], const MathVector< 3 > vLocIP[], const MathMatrix< 3, worldDim > vJT[], const size_t numIP)=0
 returns the values of the integrand for a bunch of ips More...
 

Static Public Attributes

static const int worldDim = TGridFunction::dim
 world dimension of grid function More...
 
- Static Public Attributes inherited from ug::StdIntegrand< number, TGridFunction::dim, H1SemiIntegrand< TGridFunction > >
static const int worldDim
 world dimension More...
 
- Static Public Attributes inherited from ug::IIntegrand< TData, TWorldDim >
static const int worldDim = TWorldDim
 world dimension More...
 

Protected Attributes

ScalarGridFunctionData< TGridFunction > m_scalarData
 grid function data More...
 
ConstSmartPtr< weight_typem_spWeight
 scalar weight (optional) More...
 
- Protected Attributes inherited from ug::IIntegrand< TData, TWorldDim >
int m_si
 subset More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, H1SemiIntegrand< TGridFunction > >
H1SemiIntegrand< TGridFunction > & getImpl ()
 access to implementation More...
 
const H1SemiIntegrand< TGridFunction > & getImpl () const
 const access to implementation More...
 

Detailed Description

template<typename TGridFunction>
class ug::H1SemiIntegrand< TGridFunction >

Norm of a grid function, evaluated in (weighted) H1-semi norm.

Member Typedef Documentation

◆ weight_type

template<typename TGridFunction >
typedef UserData<MathMatrix<worldDim, worldDim>, worldDim> ug::H1SemiIntegrand< TGridFunction >::weight_type

Constructor & Destructor Documentation

◆ H1SemiIntegrand() [1/2]

template<typename TGridFunction >
ug::H1SemiIntegrand< TGridFunction >::H1SemiIntegrand ( TGridFunction &  gridFct,
size_t  cmp 
)
inline

constructor

References new().

◆ H1SemiIntegrand() [2/2]

template<typename TGridFunction >
ug::H1SemiIntegrand< TGridFunction >::H1SemiIntegrand ( TGridFunction &  gridFct,
size_t  cmp,
ConstSmartPtr< weight_type spWeight 
)
inline

constructor

◆ ~H1SemiIntegrand()

template<typename TGridFunction >
virtual ug::H1SemiIntegrand< TGridFunction >::~H1SemiIntegrand ( )
inlinevirtual

DTOR.

Member Function Documentation

◆ evaluate()

template<typename TGridFunction >
template<int elemDim>
void ug::H1SemiIntegrand< TGridFunction >::evaluate ( number  vValue[],
const MathVector< worldDim vGlobIP[],
GridObject pElem,
const MathVector< worldDim vCornerCoords[],
const MathVector< elemDim >  vLocIP[],
const MathMatrix< elemDim, worldDim vJT[],
const size_t  numIP 
)
inline

returns the values of the integrand for a bunch of ips

Parameters
vValue[out]the value of the integrand at the ips
vGlobIP[in]global integration point positions
pElem[in]the element to integrate
vCornerCoords[in]corner coordinates of the element
vLocIP[in]local integration point positions
vJT[in]jacobian transposed at integration point
numIP[in]number of integration points

References ug::DoFRef(), ug::GetLocalVector(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::H1SemiIntegrand< TGridFunction >::m_scalarData, ug::H1SemiIntegrand< TGridFunction >::m_spWeight, ug::MatVecMult(), ug::LocalDoFSet::num_sh(), ug::GridObject::reference_object_id(), ug::UserData< TData, dim, TRet >::requires_grid_fct(), ug::LocalVector::resize(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shape(), ug::IIntegrand< TData, TWorldDim >::subset(), UG_ASSERT, UG_CATCH_THROW, UG_COND_THROW, ConstSmartPtr< T, FreePolicy >::valid(), ug::VecDot(), and ug::VecScaleAppend().

◆ set_subset()

template<typename TGridFunction >
virtual void ug::H1SemiIntegrand< TGridFunction >::set_subset ( int  si)
inlinevirtual

Member Data Documentation

◆ m_scalarData

template<typename TGridFunction >
ScalarGridFunctionData<TGridFunction> ug::H1SemiIntegrand< TGridFunction >::m_scalarData
protected

◆ m_spWeight

template<typename TGridFunction >
ConstSmartPtr<weight_type> ug::H1SemiIntegrand< TGridFunction >::m_spWeight
protected

scalar weight (optional)

Referenced by ug::H1SemiIntegrand< TGridFunction >::evaluate().

◆ worldDim

template<typename TGridFunction >
const int ug::H1SemiIntegrand< TGridFunction >::worldDim = TGridFunction::dim
static

world dimension of grid function


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