hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Namespaces | Functions
functionals.hpp File Reference
#include <span>
#include "hpfem/assembly/maxwell_forms.hpp"
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/dof_map.hpp"
#include "hpfem/mesh/point_location.hpp"
Include dependency graph for functionals.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hpfem
 
namespace  hpfem::assembly
 

Functions

template<int Dim>
Vector hpfem::assembly::point_functional (const fespace::NedelecDofMap< Dim > &dofs, const mesh::PointLocator< Dim > &locator, std::span< const Point< Dim > > points, std::span< const ComplexVector< Dim > > value_weights, std::span< const ComplexCurl< Dim > > curl_weights={})
 
template<int Dim>
Vector hpfem::assembly::point_functional (const fespace::DofMap< Dim > &dofs, const mesh::PointLocator< Dim > &locator, std::span< const Point< Dim > > points, std::span< const Complex > weights)
 
Complex hpfem::assembly::evaluate_functional (const Vector &q, const Vector &e_h)
 \( Q(E_h) = q^\top e_h \).
 
template Vector hpfem::assembly::point_functional< 2 > (const fespace::DofMap< 2 > &, const mesh::PointLocator< 2 > &, std::span< const Point< 2 > >, std::span< const Complex >)
 
template Vector hpfem::assembly::point_functional< 3 > (const fespace::DofMap< 3 > &, const mesh::PointLocator< 3 > &, std::span< const Point< 3 > >, std::span< const Complex >)
 
template Vector hpfem::assembly::point_functional< 2 > (const fespace::NedelecDofMap< 2 > &, const mesh::PointLocator< 2 > &, std::span< const Point< 2 > >, std::span< const ComplexVector< 2 > >, std::span< const ComplexCurl< 2 > >)
 
template Vector hpfem::assembly::point_functional< 3 > (const fespace::NedelecDofMap< 3 > &, const mesh::PointLocator< 3 > &, std::span< const Point< 3 > >, std::span< const ComplexVector< 3 > >, std::span< const ComplexCurl< 3 > >)
 

Detailed Description

Linear functionals on the Nédélec space as vectors: \( Q(E_h) = q^\top e_h \) with \( q_i = Q(\phi_i) \) (no conjugation, like the bilinear forms). Point-sampled functionals \( Q(E) = \sum_j E(x_j)\cdot w_j + (\nabla\times E)(x_j)\cdot v_j \) cover point values, line and surface integrals by quadrature (Fourier coefficients of diffraction orders, far-field patterns). Used as goals of the dual-weighted residual estimator (physics/goal_oriented.hpp).