hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
sweep.hpp File Reference
#include <memory>
#include <optional>
#include <span>
#include <vector>
#include "hpfem/assembly/condensation.hpp"
#include "hpfem/assembly/dirichlet.hpp"
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/constraints.hpp"
#include "hpfem/physics/scattering.hpp"
#include "hpfem/physics/sources.hpp"
#include "hpfem/solvers/linear_solver.hpp"
Include dependency graph for sweep.hpp:

Go to the source code of this file.

Classes

class  hpfem::physics::ScatteringOperator< Dim >
 The factorised operator of a scattering problem. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::physics
 

Functions

template<int Dim>
std::vector< ScatteringSolution< Dim > > hpfem::physics::solve_many (const Scattering< Dim > &problem, std::span< const IncidentField< Dim > > incidents)
 Solutions for several incident fields with one factorisation.
 
template<int Dim>
std::vector< ScatteringSolution< Dim > > hpfem::physics::plane_wave_sweep (const Scattering< Dim > &problem, std::span< const Point< Dim > > wave_vectors, const std::function< assembly::ComplexVector< Dim >(const Point< Dim > &)> &polarisation)
 
template std::vector< ScatteringSolution< 2 > > hpfem::physics::solve_many< 2 > (const Scattering< 2 > &, std::span< const IncidentField< 2 > >)
 
template std::vector< ScatteringSolution< 3 > > hpfem::physics::solve_many< 3 > (const Scattering< 3 > &, std::span< const IncidentField< 3 > >)
 
template std::vector< ScatteringSolution< 2 > > hpfem::physics::plane_wave_sweep< 2 > (const Scattering< 2 > &, std::span< const Point< 2 > >, const std::function< assembly::ComplexVector< 2 >(const Point< 2 > &)> &)
 
template std::vector< ScatteringSolution< 3 > > hpfem::physics::plane_wave_sweep< 3 > (const Scattering< 3 > &, std::span< const Point< 3 > >, const std::function< assembly::ComplexVector< 3 >(const Point< 3 > &)> &)
 

Detailed Description

Parameter sweeps of scattering problems. At a fixed frequency the operator of a Scattering problem does not depend on the incident field or the current: ScatteringOperator assembles, condenses, constrains, eliminates and factorises it once and then solves for any number of incident fields (angle sweeps of scatterometry) with only a new load and Dirichlet data per solve. Frequency sweeps with an affine operator use solvers::ReducedBasis. See docs/theory/solvers.md#parameter-sweeps.