hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
goal_oriented.hpp File Reference
#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"
Include dependency graph for goal_oriented.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Functions

template<int Dim>
GoalEstimate hpfem::physics::dwr_estimate (const Scattering< Dim > &problem, const ScatteringSolution< Dim > &solution, const Functional< Dim > &functional, const adaptivity::EstimatorOptions &options={})
 
template<int Dim>
Functional< Dim > hpfem::physics::point_value_functional (const Point< Dim > &x, const assembly::ComplexVector< Dim > &weight)
 Point value \( Q(E) = E(x)\cdot w \) (w not conjugated).
 
Functional< 2 > hpfem::physics::fourier_coefficient_functional (Real x0, Real y0, Real period, Real ky0, int order, int num_points, const assembly::ComplexVector< 2 > &e)
 
template GoalEstimate hpfem::physics::dwr_estimate< 2 > (const Scattering< 2 > &, const ScatteringSolution< 2 > &, const Functional< 2 > &, const adaptivity::EstimatorOptions &)
 
template GoalEstimate hpfem::physics::dwr_estimate< 3 > (const Scattering< 3 > &, const ScatteringSolution< 3 > &, const Functional< 3 > &, const adaptivity::EstimatorOptions &)
 
template Functional< 2 > hpfem::physics::point_value_functional< 2 > (const Point< 2 > &, const assembly::ComplexVector< 2 > &)
 
template Functional< 3 > hpfem::physics::point_value_functional< 3 > (const Point< 3 > &, const assembly::ComplexVector< 3 > &)
 

Detailed Description

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.