dune-fem 2.8.0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::WeightedL2Norm< WeightFunction > Class Template Reference

#include <dune/fem/misc/l2norm.hh>

Inheritance diagram for Dune::Fem::WeightedL2Norm< WeightFunction >:
Inheritance graph

Classes

struct  WeightedFunctionSquare
 

Public Types

typedef WeightFunction WeightFunctionType
 
typedef WeightFunctionType::DiscreteFunctionSpaceType WeightFunctionSpaceType
 
typedef WeightFunctionSpaceType::GridPartType GridPartType
 

Public Member Functions

 WeightedL2Norm (const WeightFunctionType &weightFunction, const unsigned int order=0, const bool communicate=true)
 
template<class LocalFunctionType , class ReturnType >
void normLocal (const EntityType &entity, unsigned int order, const LocalFunctionType &uLocal, ReturnType &sum) const
 
template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void distanceLocal (const EntityType &entity, unsigned int order, const ULocalFunctionType &uLocal, const VLocalFunctionType &vLocal, ReturnType &sum) const
 
template<class DiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u, const PartitionSet &partitionSet) const
 || u ||_L2 on given set of entities (partition set)
 
template<class DiscreteFunctionType >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type norm (const DiscreteFunctionType &u) const
 || u ||_L2 on interior partition entities
 
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type distance (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v, const PartitionSet &partitionSet) const
 || u - v ||_L2 on given set of entities (partition set)
 
template<class UDiscreteFunctionType , class VDiscreteFunctionType >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type distance (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v) const
 || u - v ||_L2 on interior partition entities
 

Protected Types

typedef ConstLocalFunction< WeightFunctionTypeLocalWeightFunctionType
 
typedef WeightFunctionType::RangeType WeightType
 
typedef BaseType::EntityType EntityType
 
typedef BaseType::IntegratorType IntegratorType
 
typedef CachingQuadrature< GridPartType, 0 > QuadratureType
 

Protected Member Functions

template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void distanceLocal (const EntityType &entity, unsigned int order, const ULocalFunctionType &uLocal, const VLocalFunctionType &vLocal, ReturnType &sum) const
 
template<class LocalFunctionType , class ReturnType >
void normLocal (const EntityType &entity, unsigned int order, const LocalFunctionType &uLocal, ReturnType &sum) const
 
template<class IteratorRange , class UDiscreteFunctionType , class ReturnType >
ReturnType forEachLocal (const IteratorRange &iterators, const UDiscreteFunctionType &u, const ReturnType &initialValue, unsigned int order) const
 
template<class DiscreteFunctionType , class ReturnType , class PartitionSet >
ReturnType forEach (const DiscreteFunctionType &u, const ReturnType &initialValue, const PartitionSet &partitionSet, unsigned int order=0) const
 
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class ReturnType , class PartitionSet >
ReturnType forEach (const UDiscreteFunctionType &u, const VDiscreteFunctionType &v, const ReturnType &initialValue, const PartitionSet &partitionSet, unsigned int order=0) const
 
const GridPartTypegridPart () const
 
const GridPartType::CollectiveCommunicationType & comm () const
 
bool checkCommunicateFlag (bool communicate) const
 
const NormImplementation & asImp () const
 
NormImplementation & asImp ()
 

Static Protected Member Functions

static const NormImplementation & asImp (const ThisType &other)
 
static NormImplementation & asImp (ThisType &other)
 

Protected Attributes

const unsigned int order_
 
const bool communicate_
 

Member Typedef Documentation

◆ EntityType

template<class WeightFunction >
typedef BaseType::EntityType Dune::Fem::WeightedL2Norm< WeightFunction >::EntityType
protected

◆ GridPartType

template<class WeightFunction >
typedef WeightFunctionSpaceType::GridPartType Dune::Fem::WeightedL2Norm< WeightFunction >::GridPartType

◆ IntegratorType

template<class WeightFunction >
typedef BaseType::IntegratorType Dune::Fem::WeightedL2Norm< WeightFunction >::IntegratorType
protected

◆ LocalWeightFunctionType

template<class WeightFunction >
typedef ConstLocalFunction< WeightFunctionType > Dune::Fem::WeightedL2Norm< WeightFunction >::LocalWeightFunctionType
protected

◆ QuadratureType

typedef CachingQuadrature< GridPartType, 0 > Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::QuadratureType
protectedinherited

◆ WeightFunctionSpaceType

template<class WeightFunction >
typedef WeightFunctionType::DiscreteFunctionSpaceType Dune::Fem::WeightedL2Norm< WeightFunction >::WeightFunctionSpaceType

◆ WeightFunctionType

template<class WeightFunction >
typedef WeightFunction Dune::Fem::WeightedL2Norm< WeightFunction >::WeightFunctionType

◆ WeightType

template<class WeightFunction >
typedef WeightFunctionType::RangeType Dune::Fem::WeightedL2Norm< WeightFunction >::WeightType
protected

Constructor & Destructor Documentation

◆ WeightedL2Norm()

template<class WeightFunction >
Dune::Fem::WeightedL2Norm< WeightFunction >::WeightedL2Norm ( const WeightFunctionType weightFunction,
const unsigned int  order = 0,
const bool  communicate = true 
)
inlineexplicit

Member Function Documentation

◆ asImp() [1/4]

NormImplementation & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, NormImplementation > , NormImplementation >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/4]

const NormImplementation & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, NormImplementation > , NormImplementation >::asImp ( ) const
inlineprotectedinherited

◆ asImp() [3/4]

static const NormImplementation & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, NormImplementation > , NormImplementation >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [4/4]

static NormImplementation & Dune::Fem::BartonNackmanInterface< IntegralBase< GridPart, NormImplementation > , NormImplementation >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ checkCommunicateFlag()

template<class GridPart , class NormImplementation >
bool Dune::Fem::IntegralBase< GridPart, NormImplementation >::checkCommunicateFlag ( bool  communicate) const
inlineprotectedinherited

◆ comm()

template<class GridPart , class NormImplementation >
const GridPartType::CollectiveCommunicationType & Dune::Fem::IntegralBase< GridPart, NormImplementation >::comm ( ) const
inlineprotectedinherited

◆ distance() [1/2]

template<class WeightFunction >
template<class UDiscreteFunctionType , class VDiscreteFunctionType >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::distance ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v 
) const
inline

|| u - v ||_L2 on interior partition entities

◆ distance() [2/2]

template<class WeightFunction >
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameUDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::distance ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v,
const PartitionSet &  partitionSet 
) const

|| u - v ||_L2 on given set of entities (partition set)

◆ distanceLocal() [1/2]

template<class GridPart , class NormImplementation >
template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void Dune::Fem::IntegralBase< GridPart, NormImplementation >::distanceLocal ( const EntityType entity,
unsigned int  order,
const ULocalFunctionType &  uLocal,
const VLocalFunctionType &  vLocal,
ReturnType &  sum 
) const
inlineprotectedinherited

◆ distanceLocal() [2/2]

template<class WeightFunction >
template<class ULocalFunctionType , class VLocalFunctionType , class ReturnType >
void Dune::Fem::WeightedL2Norm< WeightFunction >::distanceLocal ( const EntityType entity,
unsigned int  order,
const ULocalFunctionType &  uLocal,
const VLocalFunctionType &  vLocal,
ReturnType &  sum 
) const
inline

◆ forEach() [1/2]

template<class GridPart , class NormImplementation >
template<class DiscreteFunctionType , class ReturnType , class PartitionSet >
ReturnType Dune::Fem::IntegralBase< GridPart, NormImplementation >::forEach ( const DiscreteFunctionType &  u,
const ReturnType &  initialValue,
const PartitionSet &  partitionSet,
unsigned int  order = 0 
) const
inlineprotectedinherited

◆ forEach() [2/2]

template<class GridPart , class NormImplementation >
template<class UDiscreteFunctionType , class VDiscreteFunctionType , class ReturnType , class PartitionSet >
ReturnType Dune::Fem::IntegralBase< GridPart, NormImplementation >::forEach ( const UDiscreteFunctionType &  u,
const VDiscreteFunctionType &  v,
const ReturnType &  initialValue,
const PartitionSet &  partitionSet,
unsigned int  order = 0 
) const
inlineprotectedinherited

◆ forEachLocal()

template<class GridPart , class NormImplementation >
template<class IteratorRange , class UDiscreteFunctionType , class ReturnType >
ReturnType Dune::Fem::IntegralBase< GridPart, NormImplementation >::forEachLocal ( const IteratorRange &  iterators,
const UDiscreteFunctionType &  u,
const ReturnType &  initialValue,
unsigned int  order 
) const
inlineprotectedinherited

◆ gridPart()

template<class GridPart , class NormImplementation >
const GridPartType & Dune::Fem::IntegralBase< GridPart, NormImplementation >::gridPart ( ) const
inlineprotectedinherited

◆ norm() [1/2]

template<class WeightFunction >
template<class DiscreteFunctionType >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::norm ( const DiscreteFunctionType &  u) const
inline

|| u ||_L2 on interior partition entities

◆ norm() [2/2]

template<class WeightFunction >
template<class DiscreteFunctionType , class PartitionSet >
Dune::FieldTraits< typenameDiscreteFunctionType::RangeFieldType >::real_type Dune::Fem::L2Norm< GridPart >::norm ( const DiscreteFunctionType &  u,
const PartitionSet &  partitionSet 
) const

|| u ||_L2 on given set of entities (partition set)

◆ normLocal() [1/2]

template<class GridPart , class NormImplementation >
template<class LocalFunctionType , class ReturnType >
void Dune::Fem::IntegralBase< GridPart, NormImplementation >::normLocal ( const EntityType entity,
unsigned int  order,
const LocalFunctionType &  uLocal,
ReturnType &  sum 
) const
inlineprotectedinherited

◆ normLocal() [2/2]

template<class WeightFunction >
template<class LocalFunctionType , class ReturnType >
void Dune::Fem::WeightedL2Norm< WeightFunction >::normLocal ( const EntityType entity,
unsigned int  order,
const LocalFunctionType &  uLocal,
ReturnType &  sum 
) const
inline

Member Data Documentation

◆ communicate_

const bool Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::communicate_
protectedinherited

◆ order_

const unsigned int Dune::Fem::L2Norm< WeightFunction::DiscreteFunctionSpaceType::GridPartType >::order_
protectedinherited

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