ug4
ug::H1EnergyDistIntegrand< TGridFunction > Class Template Reference

Integrand for the distance of two grid functions - evaluated in the norm \( |D \nabla u|^2 \). More...

#include <integrate.h>

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

Public Types

typedef H1SemiIntegrand< TGridFunction >::weight_type weight_type
 
- Public Types inherited from ug::StdIntegrand< number, TGridFunction::dim, H1EnergyDistIntegrand< 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 > vFineGlobIP[], GridObject *pFineElem, const MathVector< worldDim > vCornerCoords[], const MathVector< elemDim > vFineLocIP[], const MathMatrix< elemDim, worldDim > vJT[], const size_t numIP)
 returns the values of the integrand for a bunch of ips More...
 
 H1EnergyDistIntegrand (TGridFunction &fineGridFct, size_t fineCmp, TGridFunction &coarseGridFct, size_t coarseCmp)
 constructor More...
 
 H1EnergyDistIntegrand (TGridFunction &fineGridFct, size_t fineCmp, TGridFunction &coarseGridFct, size_t coarseCmp, ConstSmartPtr< weight_type > spWeight)
 constructor More...
 
virtual void set_subset (int si)
 sets subset More...
 
virtual ~H1EnergyDistIntegrand ()
 
- Public Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, H1EnergyDistIntegrand< 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, H1EnergyDistIntegrand< 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...
 

Private Attributes

ScalarGridFunctionData< TGridFunction > m_coarseData
 
const int m_coarseTopLevel
 
ScalarGridFunctionData< TGridFunction > m_fineData
 
const int m_fineTopLevel
 
SmartPtr< MultiGridm_spMG
 multigrid More...
 
ConstSmartPtr< weight_typem_spWeight
 scalar weight (optional) More...
 

Additional Inherited Members

- Protected Member Functions inherited from ug::StdIntegrand< number, TGridFunction::dim, H1EnergyDistIntegrand< TGridFunction > >
H1EnergyDistIntegrand< TGridFunction > & getImpl ()
 access to implementation More...
 
const H1EnergyDistIntegrand< TGridFunction > & getImpl () const
 const access to implementation More...
 
- Protected Attributes inherited from ug::IIntegrand< TData, TWorldDim >
int m_si
 subset More...
 

Detailed Description

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

Integrand for the distance of two grid functions - evaluated in the norm \( |D \nabla u|^2 \).

Member Typedef Documentation

◆ weight_type

template<typename TGridFunction >
typedef H1SemiIntegrand<TGridFunction>::weight_type ug::H1EnergyDistIntegrand< TGridFunction >::weight_type

Constructor & Destructor Documentation

◆ H1EnergyDistIntegrand() [1/2]

template<typename TGridFunction >
ug::H1EnergyDistIntegrand< TGridFunction >::H1EnergyDistIntegrand ( TGridFunction &  fineGridFct,
size_t  fineCmp,
TGridFunction &  coarseGridFct,
size_t  coarseCmp 
)
inline

◆ H1EnergyDistIntegrand() [2/2]

template<typename TGridFunction >
ug::H1EnergyDistIntegrand< TGridFunction >::H1EnergyDistIntegrand ( TGridFunction &  fineGridFct,
size_t  fineCmp,
TGridFunction &  coarseGridFct,
size_t  coarseCmp,
ConstSmartPtr< weight_type spWeight 
)
inline

◆ ~H1EnergyDistIntegrand()

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

Member Function Documentation

◆ evaluate()

template<typename TGridFunction >
template<int elemDim>
void ug::H1EnergyDistIntegrand< TGridFunction >::evaluate ( number  vValue[],
const MathVector< worldDim vFineGlobIP[],
GridObject pFineElem,
const MathVector< worldDim vCornerCoords[],
const MathVector< elemDim >  vFineLocIP[],
const MathMatrix< elemDim, worldDim vJT[],
const size_t  numIP 
)
inline

◆ set_subset()

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

Member Data Documentation

◆ m_coarseData

◆ m_coarseTopLevel

template<typename TGridFunction >
const int ug::H1EnergyDistIntegrand< TGridFunction >::m_coarseTopLevel
private

◆ m_fineData

◆ m_fineTopLevel

template<typename TGridFunction >
const int ug::H1EnergyDistIntegrand< TGridFunction >::m_fineTopLevel
private

◆ m_spMG

template<typename TGridFunction >
SmartPtr<MultiGrid> ug::H1EnergyDistIntegrand< TGridFunction >::m_spMG
private

◆ m_spWeight

template<typename TGridFunction >
ConstSmartPtr<weight_type> ug::H1EnergyDistIntegrand< TGridFunction >::m_spWeight
private

scalar weight (optional)

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

◆ worldDim

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

world dimension of grid function


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