Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Static Public Member Functions | Private Member Functions
Norm Class Reference

Provides methods to calculate norms. More...

#include <utility.hh>

List of all members.

Static Public Member Functions

static Real broL1 (const linDG3D::FvdgSpace &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &frm, Real time)
 Calculates the broken L1 norm of the difference between an FV solution given by coeffs and the exact solution given by frm by quadrature.
static Real broL2Grad (const linDG3D::FvdgSpace &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &gradX, concepts::Formula< Real > &gradY, concepts::Formula< Real > &gradZ)
 Calculates the broken L2 norm of the gradient of the difference between an FV solution given by coeffs and the exact solution given by gradX, gradY and gradZ by quadrature.
static Real broMax (const linDG3D::FvdgSpace &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &frm, Real time)
 Calculates the broken max norm of the difference between an FV solution given by coeffs and the exact solution given by frm by quadrature.
static Real matrix (const concepts::Vector< Real > &coeffs, concepts::Operator< Real > &matrix)
 Calculates the norm defined by matrix of coeffs.
static Real max (const linDG3D::FvdgSpace &spc, const concepts::Vector< Real > &coeffs)
 Calculates the maximum norm of coeffs, which has to be in an FvdgSpace.

Private Member Functions

 Norm ()
 Constructor. Is private in order to prevent creating an instance.

Detailed Description

Provides methods to calculate norms.

Author:
Christoph Winkelmann, 2003

Definition at line 20 of file utility.hh.


Constructor & Destructor Documentation

Norm::Norm ( ) [inline, private]

Constructor. Is private in order to prevent creating an instance.

Definition at line 72 of file utility.hh.


Member Function Documentation

static Real Norm::broL1 ( const linDG3D::FvdgSpace spc,
const concepts::Vector< Real > &  coeffs,
concepts::Formula< Real > &  frm,
Real  time 
) [static]

Calculates the broken L1 norm of the difference between an FV solution given by coeffs and the exact solution given by frm by quadrature.

The quadrature formula used is exact for functions up to total degree 2.

Parameters:
coeffsThe coefficent vector of the FV solution
frmThe exact solution
timeThe time to evaluate frm at
static Real Norm::broL2Grad ( const linDG3D::FvdgSpace spc,
const concepts::Vector< Real > &  coeffs,
concepts::Formula< Real > &  gradX,
concepts::Formula< Real > &  gradY,
concepts::Formula< Real > &  gradZ 
) [static]

Calculates the broken L2 norm of the gradient of the difference between an FV solution given by coeffs and the exact solution given by gradX, gradY and gradZ by quadrature.

The quadrature formula used is exact for functions up to total degree 2.

Parameters:
coeffsThe coefficent vector of the FV solution
gradXThe x component of the exact gradient
gradYThe y component of the exact gradient
gradZThe z component of the exact gradient
static Real Norm::broMax ( const linDG3D::FvdgSpace spc,
const concepts::Vector< Real > &  coeffs,
concepts::Formula< Real > &  frm,
Real  time 
) [static]

Calculates the broken max norm of the difference between an FV solution given by coeffs and the exact solution given by frm by quadrature.

Parameters:
coeffsThe coefficent vector of the FV solution
frmThe exact solution
timeThe time to evaluate frm at
static Real Norm::matrix ( const concepts::Vector< Real > &  coeffs,
concepts::Operator< Real > &  matrix 
) [static]

Calculates the norm defined by matrix of coeffs.

Parameters:
coeffsThe coefficent vector
matrixThe matrix which defines the norm
static Real Norm::max ( const linDG3D::FvdgSpace spc,
const concepts::Vector< Real > &  coeffs 
) [static]

Calculates the maximum norm of coeffs, which has to be in an FvdgSpace.

Parameters:
coeffsThe coefficent vector

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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)