|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <functional>#include <vector>#include "hpfem/adaptivity/residual_estimator.hpp"#include "hpfem/assembly/functionals.hpp"#include "hpfem/core/types.hpp"#include "hpfem/fespace/dof_map.hpp"#include "hpfem/physics/scattering.hpp"

Go to the source code of this file.
Classes | |
| struct | hpfem::physics::GoalEstimate |
| Result of the DWR estimate. More... | |
Namespaces | |
| namespace | hpfem |
| namespace | hpfem::physics |
Typedefs | |
| template<int Dim> | |
| using | hpfem::physics::Functional = std::function< Vector(const fespace::NedelecDofMap< Dim > &)> |
| A linear functional given on any DoF map of the mesh: returns q with Q(E_h) = qᵀ e_h. | |
Goal-oriented (dual-weighted residual, DWR) error estimation for a linear quantity of interest \( Q(E) \) of a scattering solution (Becker & Rannacher 2001): with the adjoint solution \( z \) of \( a(v, z) = Q(v) \) for all \( v \) and the Galerkin orthogonality, \( Q(E) - Q(E_h) = \ell(z - z_h) - a(E_h, z - z_h) = \sum_K r_K(z - z_h) \), where \( r_K \) is the cell-wise weighted residual (element residual and facet jumps of adaptivity::weighted_residual). The adjoint is solved on the mesh with every order raised by one, the weight is \( z_{p+1} - I_p z_{p+1} \) (hierarchical interpolation). The sum of the contributions estimates the signed error of the goal, their moduli are the indicators for marking. Constraints (hanging nodes, Bloch) and the Dirichlet facets of the problem are respected: the adjoint has homogeneous Dirichlet data and lives in the test space of the primal problem. See docs/theory/error-estimation.md#goal-oriented.