Programmierpraktikum NPDGL I
Öffentliche Methoden

L2Error Klassenreferenz

operator computing the \(L^2(\Omega)\) error of two discrete functions Mehr ...

#include <error.hh>

Zusammengehörigkeiten von L2Error:
Collaboration graph
[Legende]

Aufstellung aller Elemente

Öffentliche Methoden

 L2Error (Grid &grid)
 constructor
template<class DofVecType >
double apply (const DofVecType &U, const DofVecType &V) const
 applies the error computation

Ausführliche Beschreibung

operator computing the \(L^2(\Omega)\) error of two discrete functions

This operator can be used to compute the error

\[ \| u_h - v_h \|_{L^2} \]

between two discrete finite volume functions.

Beispiele:

test_spaceoperator.cc.


Beschreibung der Konstruktoren und Destruktoren

L2Error::L2Error ( Grid grid) [inline]

constructor

This defines the used discretization by initializing the underlying grid

Parameter:
gridthe underlying grid

Dokumentation der Elementfunktionen

template<class DofVecType >
double L2Error::apply ( const DofVecType &  U,
const DofVecType &  V 
) const [inline]

applies the error computation

Parameter:
UDof vector of the first discrete function \( u_h \)
VDov vector of the second discrete function \( v_h \)
Rückgabe:
the \(L^2\)-error between both functions: \( \| u_h - v_h \|_{L^2} \)
Template Parameters:
DofVecTypeType which needs to be derived from DofVectorInterface
Beispiele:
test_spaceoperator.cc.

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: