KASKADE 7 development version
Public Member Functions | List of all members
Weighing Struct Reference

A Weighing is a class that allows to compute weighted averages of values associated to cells of a grid. More...

#include <concepts.hh>

Detailed Description

A Weighing is a class that allows to compute weighted averages of values associated to cells of a grid.

Weighings are used in interpolateGlobally and interpolateGloballyWeak to define reasonable FE coefficients whenever the data to be interpolated cannot be represented in the FE space, e.g. interpolating a discontinuous function in a space of continuous functions. The conflicting interpolation values at one and the same interpolation node are then averaged - the kind of averaging is specified by the Weighing.

Predefined weighings are InverseVolume, Volume, PlainAverage.

Definition at line 374 of file concepts.hh.

Public Member Functions

template<class Cell >
double operator() (Cell const &c) const
 This defines a weight \( w(c) \) for each cell \( c \) of the grid. More...
 
double scalingFactor () const
 Defines the global scaling factor \( s \). More...
 
double offset () const
 Defines the global offset \( o \). More...
 

Member Function Documentation

◆ offset()

double Weighing::offset ( ) const

Defines the global offset \( o \).

Referenced by Kaskade::interpolateGloballyWeak().

◆ operator()()

template<class Cell >
double Weighing::operator() ( Cell const &  c) const

This defines a weight \( w(c) \) for each cell \( c \) of the grid.

◆ scalingFactor()

double Weighing::scalingFactor ( ) const

Defines the global scaling factor \( s \).

Referenced by Kaskade::interpolateGloballyWeak().


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