hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::physics::AxisymmetricScattering Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AxisymmetricScattering()

hpfem::physics::AxisymmetricScattering::AxisymmetricScattering ( const fespace::NedelecDofMap< 2 > &  meridian,
const fespace::DofMap< 2 > &  azimuthal,
AxisymmetricScatteringSetup  setup 
)
Exceptions
InvalidArgumentfor ω ≤ 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.

Member Function Documentation

◆ absorbed_power()

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.

◆ background_material()

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).

◆ error()

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).

◆ estimate()

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.

◆ form_of_cell()

assembly::AxisymmetricForm hpfem::physics::AxisymmetricScattering::form_of_cell ( Index  cell) const

Per-cell form: material tensors (stretched inside the PML) and the contrast source.

◆ free_dofs()

const std::vector< Index > & hpfem::physics::AxisymmetricScattering::free_dofs ( ) const
inlinenoexcept

◆ incident_absorbed_power()

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).

◆ load()

Vector hpfem::physics::AxisymmetricScattering::load ( std::span< const Index >  cells = {}) const

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.

Exceptions
InvalidArgumentif a cell index is out of range.

◆ mirrored()

Vector hpfem::physics::AxisymmetricScattering::mirrored ( const Vector &  block) const

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)))).

Exceptions
InvalidArgumentif the size is not the number of block DoFs.

◆ scatterer_cells()

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.

◆ setup()

const AxisymmetricScatteringSetup & hpfem::physics::AxisymmetricScattering::setup ( ) const
inlinenoexcept

◆ solution_from()

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().

Exceptions
InvalidArgumentif the size is not the number of block DoFs.

◆ solve()

AxisymmetricScatteredField hpfem::physics::AxisymmetricScattering::solve ( ) const
Exceptions
Errorif the factorisation fails.

◆ wavenumber()

Real hpfem::physics::AxisymmetricScattering::wavenumber ( ) const
inlinenoexcept

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