|
| PolynomialError (const Parameters &par, const std::vector< Polynomials::Polynomial< double >> potentials_1d) |
|
virtual void | cell (DoFInfo< dim > &dinfo, IntegrationInfo< dim > &info) const |
|
virtual void | boundary (DoFInfo< dim > &dinfo, IntegrationInfo< dim > &info) const |
|
virtual void | face (DoFInfo< dim > &dinfo1, DoFInfo< dim > &dinfo2, IntegrationInfo< dim > &info1, IntegrationInfo< dim > &info2) const |
|
Public Member Functions inherited from AmandusIntegrator< dim > |
| AmandusIntegrator () |
|
virtual void | extract_data (const dealii::AnyData &data) |
| Extract data independent of the cell. More...
|
|
unsigned int | n_errors () const |
|
unsigned int | error_type (unsigned int i) const |
|
std::string | error_name (unsigned int i) const |
|
dealii::UpdateFlags | update_flags () const |
| Returns the update flags to be used. More...
|
|
dealii::UpdateFlags | update_flags_face () const |
| Returns the update flags to be used on boundary and interior faces. More...
|
|
void | add_flags (const dealii::UpdateFlags flags) |
| Add update flags on all objects. More...
|
|
void | add_flags_face (const dealii::UpdateFlags flags) |
| Add update flags on boundary and internal faces. More...
|
|
template<int dim>
class Advection::PolynomialError< dim >
Computes the error between a numerical solution and a known exact polynomial solution of a Advection problem.
Since we are planning to use this even in the nearly incompressible case, we use Helmholtz decomposition and represent the solution as the sum of the gradient of one polynomial and the curl of either one (id 2D) or three (in 3D) polynomials. These are in the vector of polynomials $$ given to the constructor, such that the gradient potential is first.
\begin{alignat*}{2} \mathbf u &= \nabla \phi_0 + \nabla\times \phi_1 & \text{2D} \\ \mathbf u &= \nabla \phi_0 + \nabla\times (\phi_1,\dots,\phi_3)^T & \text{3D} \\ \end{alignat*}
The according right hand sides of the Advection equations and the residuals are integrated by the functions of the classes PolynomialRHS.
- Author
- Guido Kanschat
- Date
- 2014