Provides methods to calculate norms. More...
#include <utility.hh>
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. | |
Provides methods to calculate norms.
Definition at line 20 of file utility.hh.
| Norm::Norm | ( | ) | [inline, private] |
Constructor. Is private in order to prevent creating an instance.
Definition at line 72 of file utility.hh.
| 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.
| coeffs | The coefficent vector of the FV solution |
| frm | The exact solution |
| time | The 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.
| coeffs | The coefficent vector of the FV solution |
| gradX | The x component of the exact gradient |
| gradY | The y component of the exact gradient |
| gradZ | The 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.
| coeffs | The coefficent vector of the FV solution |
| frm | The exact solution |
| time | The 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.
| coeffs | The coefficent vector |
| matrix | The 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.
| coeffs | The coefficent vector |