|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <axisymmetric.hpp>
Public Member Functions | |
| AxisymmetricScattering (const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, AxisymmetricScatteringSetup setup) | |
| const AxisymmetricScatteringSetup & | setup () const noexcept |
| Real | wavenumber () const noexcept |
| const materials::Material & | background_material (Index cell) const |
| assembly::AxisymmetricForm | form_of_cell (Index cell) const |
| Per-cell form: material tensors (stretched inside the PML) and the contrast source. | |
| AxisymmetricScatteredField | solve () const |
| Vector | load (std::span< const Index > cells={}) const |
| AxisymmetricScatteredField | solution_from (const Vector &block) const |
| Vector | mirrored (const Vector &block) const |
| adaptivity::Estimate | estimate (const AxisymmetricScatteredField &field, const adaptivity::EstimatorOptions &options={}) const |
| AbsorbedPower | absorbed_power (const AxisymmetricScatteredField &field, int extra_order=4) const |
| AbsorbedPower | incident_absorbed_power (int extra_order=4) const |
| std::vector< Index > | scatterer_cells () const |
| AxisymmetricError | error (const AxisymmetricScatteredField &field, const AxisymmetricField &exact, const AxisymmetricField &exact_curl={}) const |
Error of a solution against an exact field (axisymmetric_error). | |
| const std::vector< Index > & | free_dofs () const noexcept |
Assembles the order-m operator \( S - k_0^2 M \) with the PML and the volume source and solves for the scattered field. PEC walls impose the scattered field −E^inc only through the homogeneous condition (the incident field must vanish there, as for closed walls of a resonator); open problems have no PEC.
| hpfem::physics::AxisymmetricScattering::AxisymmetricScattering | ( | const fespace::NedelecDofMap< 2 > & | meridian, |
| const fespace::DofMap< 2 > & | azimuthal, | ||
| AxisymmetricScatteringSetup | setup | ||
| ) |
| InvalidArgument | for ω ≤ 0, neither or both of incident field and current, a missing axis tag, mismatched maps, a PML with a layer on the axis side, a cell straddling an interface of the layered background, or (with an incident field) a PML cell whose material deviates from the layered background. |
| AbsorbedPower hpfem::physics::AxisymmetricScattering::absorbed_power | ( | const AxisymmetricScatteredField & | field, |
| int | extra_order = 4 |
||
| ) | const |
Absorbed power of the total field of a solution (ADR-0014 §4): the scattered field plus the incident field setup.incident in the scattered-field formulation, the field itself with a current; per cell and per tag, cells inside the PML left out (their loss is the absorber's). Units [W] for this order; the orders add up.
| const materials::Material & hpfem::physics::AxisymmetricScattering::background_material | ( | Index | cell | ) | const |
Background material of a cell: the layer of setup.background at the cell centroid, otherwise materials.background(). The scattered-field source is proportional to material(c) − background_material(c).
| AxisymmetricError hpfem::physics::AxisymmetricScattering::error | ( | const AxisymmetricScatteredField & | field, |
| const AxisymmetricField & | exact, | ||
| const AxisymmetricField & | exact_curl = {} |
||
| ) | const |
Error of a solution against an exact field (axisymmetric_error).
| adaptivity::Estimate hpfem::physics::AxisymmetricScattering::estimate | ( | const AxisymmetricScatteredField & | field, |
| const adaptivity::EstimatorOptions & | options = {} |
||
| ) | const |
Element indicators of a solution (adaptivity::axisymmetric_residual_estimate with the per-cell forms of this problem and k0²): the residual of the equation actually solved, PML and contrast source included.
| assembly::AxisymmetricForm hpfem::physics::AxisymmetricScattering::form_of_cell | ( | Index | cell | ) | const |
Per-cell form: material tensors (stretched inside the PML) and the contrast source.
|
inlinenoexcept |
| AbsorbedPower hpfem::physics::AxisymmetricScattering::incident_absorbed_power | ( | int | extra_order = 4 | ) | const |
Absorbed power of the incident field alone in the bare background: every cell with background_material (the stack's layer, also in the cells of the body), PML left out; zero without an incident field or with a lossless uniform background. Summed over a bounded region, absorbed_power minus this is the absorption change caused by the body (negative where a hole removes absorbing material).
The load of solve over the full block DoFs (e | v), before the axis and PEC elimination: the scattered-field source of the cells whose material deviates from the background, or the current. Assembled on cells if given (the support of a localised current such as axisymmetric_gaussian_dipole, which is otherwise integrated over every cell), else on the cells with a source; zero if there are none. Problems of the same order that differ only in the excitation share the operator, so the factorisation one of them kept (KeptFactorisation::solve_many) solves the loads of the others without assembling or factorising again.
| InvalidArgument | if a cell index is out of range. |
The block vector with the sign of the azimuthal part v flipped, \( D = \mathrm{diag}(I,
-I) \). The operators of the orders ±m are related by \( A_{-m} = D A_m D \) (m enters the forms as m² on the diagonal blocks and linearly in the e–v coupling; the axis conditions depend on m ≠ 0 only; the material tensors are diagonal in (r, φ, z), mirror-symmetric in φ), so the order −m is solved on the factorisation of +m: \( x_{-m} = D A_m^{-1} D b_{-m} \) (mirrored(kept.solve(mirrored(load)))).
| InvalidArgument | if the size is not the number of block DoFs. |
| std::vector< Index > hpfem::physics::AxisymmetricScattering::scatterer_cells | ( | ) | const |
Cells outside the PML whose material deviates from background_material (particles and holes): the body whose total-field absorption is the absorption cross-section.
|
inlinenoexcept |
| AxisymmetricScatteredField hpfem::physics::AxisymmetricScattering::solution_from | ( | const Vector & | block | ) | const |
The solution of a full block coefficient vector (e | v), e.g. a column of KeptFactorisation::solve_many of load().
| InvalidArgument | if the size is not the number of block DoFs. |
| AxisymmetricScatteredField hpfem::physics::AxisymmetricScattering::solve | ( | ) | const |
| Error | if the factorisation fails. |
|
inlinenoexcept |