|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
Description of a conical scattering problem. More...
#include <conical_scattering.hpp>

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 |
Description of a conical scattering problem.
| 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.
| Real hpfem::physics::ConicalScatteringSetup::beta = 0 |
longitudinal wavenumber k_z [1/m] (0: in-plane incidence)
| ConicalField hpfem::physics::ConicalScatteringSetup::current |
... or the volume source f = iωμ0 J in scaled components (total-field formulation); exactly one of the two.
| int hpfem::physics::ConicalScatteringSetup::extra_quadrature_order = 4 |
added to 2p for the non-polynomial incident field
| ConicalField hpfem::physics::ConicalScatteringSetup::incident |
Incident field of the background medium in scaled components (scattered-field formulation) ...
| 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).
| 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::MaterialMap hpfem::physics::ConicalScatteringSetup::materials |
by cell tag; the background for unlisted tags
| 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.
| Real hpfem::physics::ConicalScatteringSetup::omega = 0 |
angular frequency [rad/s]
| std::vector<mesh::Tag> hpfem::physics::ConicalScatteringSetup::pec_tags |
facets with n × E = 0
| std::vector<assembly::PeriodicPair<2> > hpfem::physics::ConicalScatteringSetup::periodic |
Bloch-periodic directions
| std::optional<pml::PmlBox<2> > hpfem::physics::ConicalScatteringSetup::pml |
| int hpfem::physics::ConicalScatteringSetup::pml_extra_quadrature_order = 6 |
added to 2p in PML cells
| 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.
| 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.
| solvers::DirectSolverBackend hpfem::physics::ConicalScatteringSetup::solver = solvers::DirectSolverBackend::kAuto |