KASKADE 7 development version
Loading...
Searching...
No Matches
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>

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.
double scalingFactor () const
 Defines the global scaling factor \( s \).
double offset () const
 Defines the global offset \( o \).

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.

Member Function Documentation

◆ offset()

double Weighing::offset ( ) const

Defines the global offset \( o \).

Referenced by Kaskade::interpolateGlobally(), and 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::interpolateGlobally(), and Kaskade::interpolateGloballyWeak().


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