Provides methods to calculate norms. More...
#include <dgNorm2d.hh>
Static Public Member Functions | |
| static concepts::Mapping< Real, 2 > | elmSymmGrad (vectorial::Element< Real > &vElm, const concepts::Vector< Real > &coeffs) |
| static Real | energyTW (vectorial::Space< Real > &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &exactFrmX, concepts::Formula< Real > &exactFrmY, concepts::Formula< Real > &exactFrmXderX, concepts::Formula< Real > &exactFrmXderY, concepts::Formula< Real > &exactFrmYderX, concepts::Formula< Real > &exactFrmYderY, uint nQuadPts, Real time=0) |
Calculates the energy norm of a vectorial mesh function defined by coeffs minus a general function given by exact formulae for x (exactFrmX) and y (exactFrmY) component, both evaluated at time time. | |
| static Real | l2 (vectorial::Space< Real > &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &exactFrmX, concepts::Formula< Real > &exactFrmY, uint nQuadPts, Real time=0) |
Calculates the L2 norm of a vectorial mesh function defined by coeffs minus a general function given by exact formulae for x (exactFrmX) and y (exactFrmY) component, both evaluated at time time. | |
| static Real | l2 (const linDG2D::SpaceP1 &spc, const concepts::Vector< Real > &coeffs, concepts::Formula< Real > &exactFrm, uint nQuadPts, Real time=0) |
Calculates the L2 norm of a mesh function defined by coeffs minus a general function given by an exact formula exactFrm evaluated at time time. | |
| static Real | matrix (const concepts::Vector< Real > &coeffs, concepts::Operator< Real > &matrix) |
Calculates the norm defined by matrix of coeffs. | |
Private Member Functions | |
| DGNorm2d () | |
| Constructor. Is private in order to prevent creating an instance. | |
Static Private Member Functions | |
| static concepts::Real2d | elmSol (vectorial::Element< Real > &vElm, const concepts::Vector< Real > &coeffs, Real xi1, Real xi2) |
| Calculate solution on vectorial element. | |
| template<uint dim> | |
| static Real | mappingNorm (concepts::Mapping< Real, dim > &map) |
| Calculate norm of a mapping. | |
Provides methods to calculate norms.
Definition at line 28 of file dgNorm2d.hh.
| DGNorm2d::DGNorm2d | ( | ) | [inline, private] |
Constructor. Is private in order to prevent creating an instance.
Definition at line 95 of file dgNorm2d.hh.
| static concepts::Real2d DGNorm2d::elmSol | ( | vectorial::Element< Real > & | vElm, |
| const concepts::Vector< Real > & | coeffs, | ||
| Real | xi1, | ||
| Real | xi2 | ||
| ) | [static, private] |
Calculate solution on vectorial element.
| static concepts::Mapping<Real, 2> DGNorm2d::elmSymmGrad | ( | vectorial::Element< Real > & | vElm, |
| const concepts::Vector< Real > & | coeffs | ||
| ) | [static] |
| static Real DGNorm2d::energyTW | ( | vectorial::Space< Real > & | spc, |
| const concepts::Vector< Real > & | coeffs, | ||
| concepts::Formula< Real > & | exactFrmX, | ||
| concepts::Formula< Real > & | exactFrmY, | ||
| concepts::Formula< Real > & | exactFrmXderX, | ||
| concepts::Formula< Real > & | exactFrmXderY, | ||
| concepts::Formula< Real > & | exactFrmYderX, | ||
| concepts::Formula< Real > & | exactFrmYderY, | ||
| uint | nQuadPts, | ||
| Real | time = 0 |
||
| ) | [static] |
Calculates the energy norm of a vectorial mesh function defined by coeffs minus a general function given by exact formulae for x (exactFrmX) and y (exactFrmY) component, both evaluated at time time.
The definition of the energy norm is according to T. Wihler.
| coeffs | The coefficent vector |
| exactFrmX | The formula for the x component of the exact solution |
| exactFrmY | The formula for the y component of the exact solution |
| exactFrmXderX | d/dx of exactFrmX |
| exactFrmXderY | d/dy of exactFrmX |
| exactFrmYderX | d/dx of exactFrmY |
| exactFrmYderY | d/dy of exactFrmY |
| nQuadPts | Number of Gauss quadrature points per dimension |
| time | Time to evaluate exactFrm at |
| static Real DGNorm2d::l2 | ( | vectorial::Space< Real > & | spc, |
| const concepts::Vector< Real > & | coeffs, | ||
| concepts::Formula< Real > & | exactFrmX, | ||
| concepts::Formula< Real > & | exactFrmY, | ||
| uint | nQuadPts, | ||
| Real | time = 0 |
||
| ) | [static] |
Calculates the L2 norm of a vectorial mesh function defined by coeffs minus a general function given by exact formulae for x (exactFrmX) and y (exactFrmY) component, both evaluated at time time.
| coeffs | The coefficent vector |
| exactFrmX | The formula for the x component of the exact solution |
| exactFrmY | The formula for the y component of the exact solution |
| nQuadPts | Number of Gauss quadrature points per dimension |
| time | Time to evaluate exactFrm at |
| static Real DGNorm2d::l2 | ( | const linDG2D::SpaceP1 & | spc, |
| const concepts::Vector< Real > & | coeffs, | ||
| concepts::Formula< Real > & | exactFrm, | ||
| uint | nQuadPts, | ||
| Real | time = 0 |
||
| ) | [static] |
Calculates the L2 norm of a mesh function defined by coeffs minus a general function given by an exact formula exactFrm evaluated at time time.
| coeffs | The coefficent vector |
| exactFrm | The formula for the exact solution |
| nQuadPts | Number of Gauss quadrature points per dimension |
| time | Time to evaluate exactFrmX and exactFrmY at |
| static Real DGNorm2d::mappingNorm | ( | concepts::Mapping< Real, dim > & | map | ) | [static, private] |
Calculate norm of a mapping.
| static Real DGNorm2d::matrix | ( | const concepts::Vector< Real > & | coeffs, |
| concepts::Operator< Real > & | matrix | ||
| ) | [inline, static] |
Calculates the norm defined by matrix of coeffs.
| coeffs | The coefficent vector |
| matrix | The matrix which defines the norm |
Definition at line 35 of file dgNorm2d.hh.