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

Description of a conical scattering problem. More...

#include <conical_scattering.hpp>

Collaboration diagram for hpfem::physics::ConicalScatteringSetup:
Collaboration graph
[legend]

Public Attributes

Real omega = 0
 angular frequency [rad/s]
 
Real beta = 0
 longitudinal wavenumber k_z [1/m] (0: in-plane incidence)
 
materials::MaterialMap materials
 by cell tag; the background for unlisted tags
 
std::vector< mesh::Tag > pec_tags
 facets with n × E = 0
 
std::optional< pml::PmlBox< 2 > > pml
 
std::vector< assembly::PeriodicPair< 2 > > periodic
 
std::vector< ConicalModalBoundary > modal_boundaries
 
std::optional< LayerStack< 2 > > background
 
ConicalField incident
 
ConicalField incident_curl
 
ConicalField current
 
solvers::DirectSolverBackend solver = solvers::DirectSolverBackend::kAuto
 
int extra_quadrature_order = 4
 added to 2p for the non-polynomial incident field
 
int pml_extra_quadrature_order = 6
 
ProgressCallback progress
 
bool scalar_ez = false
 
bool keep_factorisation = false
 

Detailed Description

Description of a conical scattering problem.

Member Data Documentation

◆ background

std::optional<LayerStack<2> > hpfem::physics::ConicalScatteringSetup::background

Layered background (normal along y, ADR-0009): the incident field is then the stack wave (layered_conical_wave(...).field), the scattered-field source lives only where a cell's permittivity deviates from the stack at the cell centroid. Layer interfaces must coincide with facets.

◆ beta

Real hpfem::physics::ConicalScatteringSetup::beta = 0

longitudinal wavenumber k_z [1/m] (0: in-plane incidence)

◆ current

ConicalField hpfem::physics::ConicalScatteringSetup::current

... or the volume source f = iωμ0 J in scaled components (total-field formulation); exactly one of the two.

◆ extra_quadrature_order

int hpfem::physics::ConicalScatteringSetup::extra_quadrature_order = 4

added to 2p for the non-polynomial incident field

◆ incident

ConicalField hpfem::physics::ConicalScatteringSetup::incident

Incident field of the background medium in scaled components (scattered-field formulation) ...

◆ incident_curl

ConicalField hpfem::physics::ConicalScatteringSetup::incident_curl

Physical curl of the physical incident field, \( (\partial_yE_z - i\beta E_y,\ i\beta E_x - \partial_xE_z,\ \partial_xE_y - \partial_yE_x) \), used by h_field and poynting of the total field: conical_plane_wave_curl or LayeredConicalWave::field_curl. If empty, incident_curl falls back to central differences of incident (relative accuracy of about 1e-8).

◆ keep_factorisation

bool hpfem::physics::ConicalScatteringSetup::keep_factorisation = false

Keep the factorised system in the solution (ConicalSolution::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

materials::MaterialMap hpfem::physics::ConicalScatteringSetup::materials

by cell tag; the background for unlisted tags

◆ modal_boundaries

std::vector<ConicalModalBoundary> hpfem::physics::ConicalScatteringSetup::modal_boundaries

Modal transparent boundaries (need exactly one periodic pair; the medium of the cells along the line must be homogeneous and outside the PML). Not used by the estimators, the resonance and sweep solvers.

◆ omega

Real hpfem::physics::ConicalScatteringSetup::omega = 0

angular frequency [rad/s]

◆ pec_tags

std::vector<mesh::Tag> hpfem::physics::ConicalScatteringSetup::pec_tags

facets with n × E = 0

◆ periodic

std::vector<assembly::PeriodicPair<2> > hpfem::physics::ConicalScatteringSetup::periodic

Bloch-periodic directions

◆ pml

std::optional<pml::PmlBox<2> > hpfem::physics::ConicalScatteringSetup::pml

◆ pml_extra_quadrature_order

int hpfem::physics::ConicalScatteringSetup::pml_extra_quadrature_order = 6

added to 2p in PML cells

◆ progress

ProgressCallback hpfem::physics::ConicalScatteringSetup::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.

◆ scalar_ez

bool hpfem::physics::ConicalScatteringSetup::scalar_ez = false

Scalar E_z path: at β = 0 the block system decouples and an E_z-only excitation (the s polarisation at φ = 0, or a current along z) leaves the in-plane field zero, so only the H1 block (about a third of the DoFs) is factorised and solved; the in-plane coefficients of the solution are zero and every post-processing applies unchanged. The constructor checks β = 0 and that the incident field / current has no in-plane components. Opt-in; hpfem.grating.solve sets it automatically for s at φ = 0.

◆ solver

solvers::DirectSolverBackend hpfem::physics::ConicalScatteringSetup::solver = solvers::DirectSolverBackend::kAuto

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