hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Attributes | List of all members
hpfem::physics::ScatteringSetup< Dim > Struct Template Reference

Description of a scattering problem. More...

#include <scattering.hpp>

Collaboration diagram for hpfem::physics::ScatteringSetup< Dim >:
Collaboration graph
[legend]

Public Attributes

Real omega = 0
 angular frequency [rad/s]
 
materials::MaterialMap materials
 by cell tag; the background for unlisted tags
 
IncidentField< Dim > incident
 
IncidentField< Dim > incident_wave
 
std::optional< LayerStack< Dim > > background
 
Formulation formulation = Formulation::kTotalField
 
std::vector< mesh::Tag > pec_tags
 facets with n × E = 0
 
std::vector< mesh::Tag > incident_tags
 facets with n × E = n × E_inc (test domains)
 
assembly::ComplexVectorField< Dim > current
 f = iωμ0 J, total-field formulation only
 
std::optional< pml::PmlBox< Dim > > pml
 absorbing layers (stretched material tensors)
 
std::vector< assembly::PeriodicPair< Dim > > periodic
 
std::vector< WaveguidePort > ports
 
solvers::DirectSolverBackend solver = solvers::DirectSolverBackend::kAuto
 direct solver
 
bool condense = true
 
bool keep_factorisation = false
 
ProgressCallback progress
 
int extra_quadrature_order = 4
 added to 2p for the non-polynomial incident field
 
int pml_extra_quadrature_order = 6
 added to 2p in PML cells (rational stretched tensors)
 

Detailed Description

template<int Dim>
struct hpfem::physics::ScatteringSetup< Dim >

Description of a scattering problem.

Member Data Documentation

◆ background

template<int Dim>
std::optional<LayerStack<Dim> > hpfem::physics::ScatteringSetup< Dim >::background

Layered background (ADR-0009): the incident field is then the stack's plane wave (LayerStack::plane_wave(...).field), the scattered-field source lives only where a cell's material deviates from the stack at the cell centroid, and cross-sections are normalised by the incidence medium. Layer interfaces must coincide with facets.

◆ condense

template<int Dim>
bool hpfem::physics::ScatteringSetup< Dim >::condense = true

static condensation of the interior DoFs in solve

◆ current

template<int Dim>
assembly::ComplexVectorField<Dim> hpfem::physics::ScatteringSetup< Dim >::current

f = iωμ0 J, total-field formulation only

◆ extra_quadrature_order

template<int Dim>
int hpfem::physics::ScatteringSetup< Dim >::extra_quadrature_order = 4

added to 2p for the non-polynomial incident field

◆ formulation

template<int Dim>
Formulation hpfem::physics::ScatteringSetup< Dim >::formulation = Formulation::kTotalField

◆ incident

template<int Dim>
IncidentField<Dim> hpfem::physics::ScatteringSetup< Dim >::incident

analytic field in the background medium (optional)

◆ incident_tags

template<int Dim>
std::vector<mesh::Tag> hpfem::physics::ScatteringSetup< Dim >::incident_tags

facets with n × E = n × E_inc (test domains)

◆ incident_wave

template<int Dim>
IncidentField<Dim> hpfem::physics::ScatteringSetup< Dim >::incident_wave

The incident plane wave alone where incident is the field of a layered background (LayeredPlaneWave::incident_wave); empty means incident. Reflected fields and orders are measured against it (incident_wave, power_balance, diffraction_orders).

◆ keep_factorisation

template<int Dim>
bool hpfem::physics::ScatteringSetup< Dim >::keep_factorisation = false

Keep the factorised system in the solution (ScatteringSolution::factorisation) for adjoint and tangent solves of the sensitivities (ADR-0012): no second assembly and factorisation, at the price of holding the factors as long as the solution lives.

◆ materials

template<int Dim>
materials::MaterialMap hpfem::physics::ScatteringSetup< Dim >::materials

by cell tag; the background for unlisted tags

◆ omega

template<int Dim>
Real hpfem::physics::ScatteringSetup< Dim >::omega = 0

angular frequency [rad/s]

◆ pec_tags

template<int Dim>
std::vector<mesh::Tag> hpfem::physics::ScatteringSetup< Dim >::pec_tags

facets with n × E = 0

◆ periodic

template<int Dim>
std::vector<assembly::PeriodicPair<Dim> > hpfem::physics::ScatteringSetup< Dim >::periodic

Bloch-periodic directions

◆ pml

template<int Dim>
std::optional<pml::PmlBox<Dim> > hpfem::physics::ScatteringSetup< Dim >::pml

absorbing layers (stretched material tensors)

◆ pml_extra_quadrature_order

template<int Dim>
int hpfem::physics::ScatteringSetup< Dim >::pml_extra_quadrature_order = 6

added to 2p in PML cells (rational stretched tensors)

◆ ports

template<int Dim>
std::vector<WaveguidePort> hpfem::physics::ScatteringSetup< Dim >::ports

Waveguide ports (modal absorption and excitation on boundary facets, total-field formulation; 2D only so far)

◆ progress

template<int Dim>
ProgressCallback hpfem::physics::ScatteringSetup< Dim >::progress

Called when a phase of solve starts (assembly, constraints, factorisation, solve, post) and when it is done; returning false cancels the solve (Cancelled). Optional.

◆ solver

direct solver


The documentation for this struct was generated from the following file: