ug4
integrate.h File Reference

Go to the source code of this file.

Classes

class  ug::H1DistIntegrand< TGridFunction >
 Integrand for the distance of two grid functions - evaluated in the H1 norm. More...
 
class  ug::H1EnergyDistIntegrand< TGridFunction >
 Integrand for the distance of two grid functions - evaluated in the norm \( |D \nabla u|^2 \). More...
 
class  ug::H1EnergyIntegrand< TGridFunction >
 Norm of a grid function, evaluated in (weighted) H1-semi norm. More...
 
class  ug::H1ErrorIntegrand< TGridFunction >
 
class  ug::H1NormIntegrand< TGridFunction >
 
class  ug::H1SemiDistIntegrand< TGridFunction >
 Integrand for the distance of two grid functions - evaluated in the (weighted) H1-semi norm. More...
 
class  ug::H1SemiIntegrand< TGridFunction >
 Norm of a grid function, evaluated in (weighted) H1-semi norm. More...
 
class  ug::IIntegrand< TData, TWorldDim >
 Abstract integrand interface. More...
 
class  ug::L2DistIntegrand< TGridFunction >
 Integrand for the distance of two grid functions - evaluated in the (weighted) H1-semi norm. More...
 
class  ug::L2ErrorIntegrand< TGridFunction >
 
class  ug::L2Integrand< TGridFunction >
 Grid function as L2 integrand. More...
 
class  ug::MaximumDistIntegrand< TGridFunction >
 
class  ug::ScalarGridFunctionData< TGridFunction >
 
class  ug::StdFuncIntegrand< TGridFunction >
 
class  ug::StdIntegrand< TData, TWorldDim, TImpl >
 Abstract integrand interface (using CRTP) More...
 
class  ug::UserDataDistIntegrandSq< TData, TGridFunction >
 For arbitrary UserData \(f\) and grid functions \(u_1\) and \(u_2\), this class (should) define the integrand \( (f(u_1)- f(u_2))^2 \). More...
 
class  ug::UserDataIntegrand< TData, TGridFunction >
 For arbitrary UserData \(\rho\), this class defines the integrand \(\rho(u)\). More...
 
class  ug::UserDataIntegrandSq< TData, TGridFunction >
 For arbitrary UserData \(f\) (of type TData), this class defines the integrand \(f^2(u)\). More...
 

Namespaces

 ug
 the ug namespace
 

Functions

template<typename TGridFunction >
number ug::GetMinimum (TGridFunction &gridFct, const char *cmp, const char *subsets)
 
template<typename TDistIntegrand , typename TGridFunction >
number ug::GridFunctionDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 computes an (abstract) distance between two functions More...
 
template<typename TDistIntegrand , typename TGridFunction >
number ug::GridFunctionDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename TDistIntegrand::weight_type > spWeights)
 Computes (weighted) distance. More...
 
template<typename TDistIntegrand , typename TGridFunction >
number ug::GridFunctionDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename TDistIntegrand::weight_type > spWeights, number distAvg12)
 Computes (weighted) distance with shift for averages. More...
 
template<typename TGridFunction >
number ug::H1Distance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets=NULL)
 
template<typename TGridFunction >
number ug::H1Distance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets=NULL)
 
template<typename TGridFunction >
number ug::H1EnergyDistance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Distance in H1 semi norm (with select subsets & weights) More...
 
template<typename TGridFunction >
number ug::H1EnergyDistance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Distance in H1 semi norm (all subsets, with weights) More...
 
template<typename TGridFunction >
number ug::H1EnergyDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Squared distance in H1 semi norm (with select subsets & weights) More...
 
template<typename TGridFunction >
number ug::H1EnergyDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Squared distance in H1 semi norm (all subsets, with weights) More...
 
template<typename TGridFunction >
number ug::H1EnergyNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder)
 
template<typename TGridFunction >
number ug::H1EnergyNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 
template<typename TGridFunction >
number ug::H1EnergyNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights)
 
template<typename TGridFunction >
number ug::H1EnergyNorm (TGridFunction &gridFct, const char *cmp, int quadOrder, const char *subsets=NULL, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 
template<typename TGridFunction >
number ug::H1EnergyNorm2 (TGridFunction &gridFct, const char *cmp, int quadOrder, const char *subsets=NULL, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 compute energy -norm of a function on the whole domain (or on selected subsets) More...
 
template<typename TGridFunction >
number ug::H1Error (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder)
 for lua shell More...
 
template<typename TGridFunction >
number ug::H1Error (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 for lua shell More...
 
template<typename TGridFunction >
number ug::H1Error (SmartPtr< UserData< number, TGridFunction::dim > > spExactSol, SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spExactGrad, SmartPtr< TGridFunction > spGridFct, const char *cmp, number time, int quadOrder)
 
template<typename TGridFunction >
number ug::H1Error (SmartPtr< UserData< number, TGridFunction::dim > > spExactSol, SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spExactGrad, SmartPtr< TGridFunction > spGridFct, const char *cmp, number time, int quadOrder, const char *subsets)
 compute H1 error of a function on the whole domain or on some subsets More...
 
template<typename TGridFunction >
number ug::H1Norm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder)
 
template<typename TGridFunction >
number ug::H1Norm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::H1Norm (TGridFunction &u, const char *cmp, int quadOrder, const char *subsets=NULL)
 
template<typename TGridFunction >
number ug::H1Norm2 (TGridFunction &u, const char *cmp, int quadOrder, const char *subsets=NULL)
 
template<typename TGridFunction >
number ug::H1SemiDistance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Distance in H1 semi norm (with select subsets & weights) More...
 
template<typename TGridFunction >
number ug::H1SemiDistance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Distance in H1 semi norm (all subsets, with weights) More...
 
template<typename TGridFunction >
number ug::H1SemiDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Squared distance in H1 semi norm (with select subsets & weights) More...
 
template<typename TGridFunction >
number ug::H1SemiDistance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, ConstSmartPtr< typename H1SemiDistIntegrand< TGridFunction >::weight_type > weights)
 Squared distance in H1 semi norm (all subsets, with weights) More...
 
template<typename TGridFunction >
number ug::H1SemiError (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder)
 Distance in H1 semi norm (all subsets) More...
 
template<typename TGridFunction >
number ug::H1SemiError (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 Distance in H1 semi norm (with subset selection) More...
 
template<typename TGridFunction >
number ug::H1SemiError2 (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 Distance in H1 semi norm (with subset selection) More...
 
template<typename TGridFunction >
number ug::H1SemiNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder)
 
template<typename TGridFunction >
number ug::H1SemiNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::H1SemiNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, const char *subsets, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 
template<typename TGridFunction >
number ug::H1SemiNorm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights)
 
template<typename TGridFunction >
number ug::H1SemiNorm (TGridFunction &gridFct, const char *cmp, int quadOrder, const char *subsets=NULL, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 Computes the H1SemiNorm. More...
 
template<typename TGridFunction >
number ug::H1SemiNorm2 (TGridFunction &gridFct, const char *cmp, int quadOrder, const char *subsets=NULL, ConstSmartPtr< typename H1SemiIntegrand< TGridFunction >::weight_type > weights=SPNULL)
 compute H1 semi-norm of a function on the whole domain (or on selected subsets) More...
 
template<typename TGridFunction >
number ug::Integral (number val, SmartPtr< TGridFunction > spGridFct)
 
template<typename TGridFunction >
number ug::Integral (number val, SmartPtr< TGridFunction > spGridFct, const char *subsets)
 
template<typename TGridFunction >
number ug::Integral (number val, SmartPtr< TGridFunction > spGridFct, const char *subsets, number time)
 
template<typename TGridFunction >
number ug::Integral (number val, SmartPtr< TGridFunction > spGridFct, const char *subsets, number time, int quadOrder)
 
template<typename TGridFunction >
number ug::Integral (number val, SmartPtr< TGridFunction > spGridFct, number time)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< TGridFunction > spGridFct, const char *cmp)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< TGridFunction > spGridFct, const char *cmp, const char *subsets)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< TGridFunction > spGridFct, const char *cmp, const char *subsets, int quadOrder)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *subsets)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *subsets, number time)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *subsets, number time, int order)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *subsets, number time, int quadOrder, std::string quadType)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, number time)
 
template<typename TGridFunction >
number ug::Integral (SmartPtr< UserData< number, TGridFunction::dim > > spData, TGridFunction &spGridFct, const char *subsets, number time, int quadOrder, std::string quadType)
 
template<typename TGridFunction >
number ug::Integral (TGridFunction &gridFct, const char *cmp, const char *subsets, int quadOrder)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifold (SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *BndSubset)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifold (SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *BndSubset, const char *InnerSubset)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifold (SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *BndSubset, const char *InnerSubset, number time)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifold (SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *BndSubset, const char *InnerSubset, number time, int quadOrder)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifold (SmartPtr< UserData< MathVector< TGridFunction::dim >, TGridFunction::dim > > spData, SmartPtr< TGridFunction > spGridFct, const char *BndSubset, number time)
 
template<int WorldDim, int dim, typename TConstIterator >
number ug::IntegralNormalComponentOnManifoldGeneral (TConstIterator iterBegin, TConstIterator iterEnd, typename domain_traits< WorldDim >::position_accessor_type &aaPos, const ISubsetHandler *ish, IIntegrand< MathVector< WorldDim >, WorldDim > &integrand, const SubsetGroup &bndSSGrp, int quadOrder, Grid &grid)
 
template<typename TGridFunction , int dim>
number ug::IntegralNormalComponentOnManifoldSubset (SmartPtr< IIntegrand< MathVector< TGridFunction::dim >, TGridFunction::dim > > spIntegrand, SmartPtr< TGridFunction > spGridFct, int si, const SubsetGroup &bndSSGrp, int quadOrder)
 
template<typename TGridFunction >
number ug::IntegralNormalComponentOnManifoldSubsets (SmartPtr< IIntegrand< MathVector< TGridFunction::dim >, TGridFunction::dim > > spIntegrand, SmartPtr< TGridFunction > spGridFct, const char *BndSubsets, const char *InnerSubsets, int quadOrder)
 
template<int WorldDim, int dim, typename TConstIterator >
number ug::IntegralNormalComponentOnManifoldUsingFV1Geom (TConstIterator iterBegin, TConstIterator iterEnd, typename domain_traits< WorldDim >::position_accessor_type &aaPos, const ISubsetHandler *ish, IIntegrand< MathVector< WorldDim >, WorldDim > &integrand, const SubsetGroup &bndSSGrp)
 
template<int WorldDim, int dim, typename TConstIterator >
number ug::Integrate (TConstIterator iterBegin, TConstIterator iterEnd, typename domain_traits< WorldDim >::position_accessor_type &aaPos, IIntegrand< number, WorldDim > &integrand, int quadOrder, std::string quadType, Grid::AttachmentAccessor< typename domain_traits< dim >::grid_base_object, ANumber > *paaElemContribs=NULL)
 integrates on the whole domain More...
 
template<typename TGridFunction >
number ug::IntegrateNormalComponentOnManifold (TGridFunction &u, const char *cmp, const char *BndSubset)
 Integrates a component over some boundary subsets. More...
 
template<typename TGridFunction >
number ug::IntegrateNormalGradientOnManifold (TGridFunction &u, const char *cmp, const char *BndSubset, const char *InnerSubset=NULL)
 Integrates the Flux of a component over some boundary subsets. More...
 
template<typename TGridFunction , int dim>
number ug::IntegrateSubset (IIntegrand< number, TGridFunction::dim > &spIntegrand, TGridFunction &spGridFct, int si, int quadOrder, std::string quadType)
 
template<typename TGridFunction >
number ug::IntegrateSubsets (IIntegrand< number, TGridFunction::dim > &spIntegrand, TGridFunction &spGridFct, const char *subsets, int quadOrder, std::string quadType=std::string())
 
template<typename TGridFunction >
number ug::L2Distance (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 computes the l2 distance between two functions More...
 
template<typename TGridFunction >
number ug::L2Distance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 computes the squared l2 distance between two functions More...
 
template<typename TGridFunction >
number ug::L2Distance2 (TGridFunction &spGridFct1, const char *cmp1, TGridFunction &spGridFct2, const char *cmp2, int quadOrder, const char *subsets, ConstSmartPtr< typename L2Integrand< TGridFunction >::weight_type > spWeight, number avgDist12=0.0)
 computes the squared l2 distance between two functions More...
 
template<typename TGridFunction >
number ug::L2Error (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder)
 
template<typename TGridFunction >
number ug::L2Error (SmartPtr< TGridFunction > spGridFct1, const char *cmp1, SmartPtr< TGridFunction > spGridFct2, const char *cmp2, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::L2Error (SmartPtr< UserData< number, TGridFunction::dim > > spExactSol, SmartPtr< TGridFunction > spGridFct, const char *cmp, number time, int quadOrder)
 
template<typename TGridFunction >
number ug::L2Error (SmartPtr< UserData< number, TGridFunction::dim > > spExactSol, SmartPtr< TGridFunction > spGridFct, const char *cmp, number time, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::L2Error (SmartPtr< UserData< number, TGridFunction::dim > > spExactSol, TGridFunction &gridFct, const char *cmp, number time, int quadOrder, const char *subsets)
 computes the l2 error function on the whole domain or on some subsets More...
 
template<typename TGridFunction >
number ug::L2Norm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder)
 
template<typename TGridFunction >
number ug::L2Norm (SmartPtr< TGridFunction > spGridFct, const char *cmp, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::L2Norm (TGridFunction &gridFct, const char *cmp, int quadOrder)
 
template<typename TGridFunction >
number ug::L2Norm (TGridFunction &u, const char *cmp, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::L2Norm2 (TGridFunction &u, const char *cmp, int quadOrder, const char *subsets)
 
template<typename TGridFunction >
number ug::L2Norm2 (TGridFunction &u, const char *cmp, int quadOrder, const char *subsets, ConstSmartPtr< typename L2Integrand< TGridFunction >::weight_type > spWeight)
 
template<typename TGridFunction >
number ug::Minimum (SmartPtr< TGridFunction > spGridFct, const char *cmp, const char *subsets)
 
template<typename TGridFunction >
number ug::StdFuncIntegralOnVertex (SmartPtr< TGridFunction > spGridFct, size_t fct, int si)
 
template<typename TGridFunction >
number ug::StdFuncIntegralOnVertex (TGridFunction &gridFct, size_t fct, int si)