Integrand for the distance of two grid functions - evaluated in the norm \( |D \nabla u|^2 \).
More...
|
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...
|
|
template<typename TGridFunction>
class ug::H1EnergyDistIntegrand< TGridFunction >
Integrand for the distance of two grid functions - evaluated in the norm \( |D \nabla u|^2 \).
template<typename TGridFunction >
template<int elemDim>
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::CollectCornerCoordinates(), ug::DoFRef(), ug::GetLocalVector(), ug::DimReferenceMapping< TDim, TWorldDim >::global_to_local(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::H1EnergyDistIntegrand< TGridFunction >::m_coarseData, ug::H1EnergyDistIntegrand< TGridFunction >::m_coarseTopLevel, ug::H1EnergyDistIntegrand< TGridFunction >::m_fineData, ug::H1EnergyDistIntegrand< TGridFunction >::m_fineTopLevel, ug::H1EnergyDistIntegrand< TGridFunction >::m_spMG, ug::H1EnergyDistIntegrand< TGridFunction >::m_spWeight, ug::MatVecMult(), 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, ConstSmartPtr< T, FreePolicy >::valid(), ug::VecDistanceSq(), ug::VecScaleAppend(), and ug::VecSet().