#include <utility.hh>

Public Member Functions | |
| NodalBurgerError (concepts::Formula< Real > &initCondition, linDG3D::FvdgSpace &spc) | |
| Constructor. | |
| void | operator() (const concepts::Vector< Real > &sol, concepts::Array< Real > &error, Real time) |
| Application operator. | |
Private Attributes | |
| concepts::Formula< Real > & | initCondition_ |
| concepts::Real3d | normal_ |
| The normal vector of the Burger flux. | |
| linDG3D::FvdgSpace & | spc_ |
| The scanner of the space belonging to the solution vector. | |
Definition at line 122 of file utility.hh.
| NodalBurgerError::NodalBurgerError | ( | concepts::Formula< Real > & | initCondition, |
| linDG3D::FvdgSpace & | spc | ||
| ) | [inline] |
Constructor.
Definition at line 131 of file utility.hh.
| void NodalBurgerError::operator() | ( | const concepts::Vector< Real > & | sol, |
| concepts::Array< Real > & | error, | ||
| Real | time | ||
| ) |
Application operator.
Takes a solution vector belonging to the space spc and calculates a pointwise error on the mesh's nodes in the following way: The solution in each node is followed backwards in time using characteristics to obtain a virtual initial condition. The error is calculated comparing this virtual initial condition to the one that was originally specified in initCondition.
| sol | Solution vector |
| error | Error vector (nodal) |
| time | Physical time in simulation |
concepts::Formula<Real>& NodalBurgerError::initCondition_ [private] |
Definition at line 124 of file utility.hh.
concepts::Real3d NodalBurgerError::normal_ [private] |
The normal vector of the Burger flux.
Definition at line 128 of file utility.hh.
linDG3D::FvdgSpace& NodalBurgerError::spc_ [private] |
The scanner of the space belonging to the solution vector.
Definition at line 126 of file utility.hh.