54 const std::vector<mesh::Tag>& pec_tags,
76 std::optional<int> quadrature_order = std::nullopt);
108 [[nodiscard]] std::vector<AxisymmetricMode>
solve()
const;
110 [[nodiscard]]
const std::vector<Index>&
free_dofs() const noexcept {
return sets_.
free; }
134 std::optional<pml::PmlBox<2>>
pml;
169 [[nodiscard]] std::vector<AxisymmetricResonantMode>
solve()
const;
170 [[nodiscard]]
const std::vector<Index>&
free_dofs() const noexcept {
return sets_.
free; }
227 Real radius,
Real position,
const Eigen::Matrix<Complex, 3, 1>& moment,
Real sigma,
Real omega,
238 int extra_order = 4);
261 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
276 std::optional<pml::PmlBox<2>>
pml;
341 [[nodiscard]]
Vector load(std::span<const Index> cells = {})
const;
365 int extra_order = 4)
const;
379 [[nodiscard]]
const std::vector<Index>&
free_dofs() const noexcept {
return sets_.
free; }
385 void check_background()
const;
404 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
417 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
418 const Eigen::Matrix<Real, Eigen::Dynamic, 2>& points);
437 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
459 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
474 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
476 const std::optional<pml::PmlBox<2>>& pml = std::nullopt,
int extra_order = 4);
506 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
508 const std::vector<Real>& theta,
int order = 8);
538 const Vector& meridian_coefficients,
const Vector& azimuthal_coefficients,
int azimuthal_order,
540 const LayerStack<3>& stack,
const std::vector<Real>& theta_up,
541 const std::vector<Real>& theta_down,
int order = 8);
604 std::vector<AxisymmetricScatteredField>
fields;
625 const std::vector<AxisymmetricFarField>& patterns,
const std::vector<int>& orders,
Real phi);
Definition dof_map.hpp:51
Definition material.hpp:149
Definition material.hpp:31
Assembles the order-m pencil and solves the gauged eigenproblem.
Definition axisymmetric.hpp:99
const std::vector< Index > & free_potential() const noexcept
Free H1 DoFs of the gauge potential ψ.
Definition axisymmetric.hpp:112
AxisymmetricCavity(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, AxisymmetricCavitySetup setup)
const AxisymmetricCavitySetup & setup() const noexcept
Definition axisymmetric.hpp:105
std::vector< AxisymmetricMode > solve() const
const std::vector< Index > & free_dofs() const noexcept
Free (unconstrained) block DoFs after PEC and axis conditions.
Definition axisymmetric.hpp:110
const assembly::AxisymmetricSystem & system() const noexcept
Definition axisymmetric.hpp:115
Definition axisymmetric.hpp:156
assembly::AxisymmetricForm form_of_cell(Index cell) const
Per-cell form: material tensors, stretched inside the PML.
const std::vector< Index > & free_dofs() const noexcept
Definition axisymmetric.hpp:170
const AxisymmetricResonanceSetup & setup() const noexcept
Definition axisymmetric.hpp:162
std::vector< AxisymmetricResonantMode > solve() const
AxisymmetricResonance(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, AxisymmetricResonanceSetup setup)
const fespace::NedelecDofMap< 2 > & meridian() const noexcept
Definition axisymmetric.hpp:163
const fespace::DofMap< 2 > & azimuthal() const noexcept
Definition axisymmetric.hpp:164
Definition axisymmetric.hpp:314
const std::vector< Index > & free_dofs() const noexcept
Definition axisymmetric.hpp:379
AxisymmetricScattering(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, AxisymmetricScatteringSetup setup)
Vector mirrored(const Vector &block) const
AxisymmetricScatteredField solve() const
adaptivity::Estimate estimate(const AxisymmetricScatteredField &field, const adaptivity::EstimatorOptions &options={}) const
const materials::Material & background_material(Index cell) const
AbsorbedPower incident_absorbed_power(int extra_order=4) const
AbsorbedPower absorbed_power(const AxisymmetricScatteredField &field, int extra_order=4) const
AxisymmetricError error(const AxisymmetricScatteredField &field, const AxisymmetricField &exact, const AxisymmetricField &exact_curl={}) const
Error of a solution against an exact field (axisymmetric_error).
assembly::AxisymmetricForm form_of_cell(Index cell) const
Per-cell form: material tensors (stretched inside the PML) and the contrast source.
Real wavenumber() const noexcept
Definition axisymmetric.hpp:323
AxisymmetricScatteredField solution_from(const Vector &block) const
std::vector< Index > scatterer_cells() const
Vector load(std::span< const Index > cells={}) const
const AxisymmetricScatteringSetup & setup() const noexcept
Definition axisymmetric.hpp:322
Definition layer_stack.hpp:57
std::int32_t Tag
Integer tag of a physical group (Gmsh convention: positive; 0 means untagged).
Definition mesh.hpp:23
constexpr Tag kNoTag
Definition mesh.hpp:24
Definition absorption.hpp:21
Vector axisymmetric_current_load(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, int m, const AxisymmetricField ¤t, int extra_order=4)
AxisymmetricField axisymmetric_gaussian_dipole(Real position, Complex moment, AxisDipole orientation, Real sigma, Real omega, int m)
AbsorbedPower axisymmetric_absorbed_power(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, const AxisymmetricField &added={}, const std::optional< pml::PmlBox< 2 > > &pml=std::nullopt, int extra_order=4)
AxisymmetricLayeredWave layered_axisymmetric_wave(const LayerStack< 3 > &stack, Real k0, Real theta, Polarisation pol, int m, StackSide side=StackSide::kTop, Complex amplitude=1.0)
AxisDipole
Orientation of a dipole on the axis.
Definition axisymmetric.hpp:191
AxisymmetricField axial_plane_wave(Complex amplitude, Real k, int m)
AxisymmetricFluxChannels axisymmetric_flux_channels(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, const Surface< 2 > &surface, const LayerStack< 3 > &stack, int order=8, const AxisymmetricField &added_value={}, const AxisymmetricField &added_curl={})
Eigen::Matrix< Complex, Eigen::Dynamic, 3 > axisymmetric_fields_at(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, const Eigen::Matrix< Real, Eigen::Dynamic, 2 > &points)
assembly::AxisymmetricForm axisymmetric_pml_form(const pml::PmlBox< 2 > &box, const materials::Material &material, std::optional< int > quadrature_order=std::nullopt)
AxisymmetricFarField superpose_far_field(const std::vector< AxisymmetricFarField > &patterns, const std::vector< int > &orders, Real phi)
AxisymmetricField axisymmetric_offaxis_gaussian_dipole(Real radius, Real position, const Eigen::Matrix< Complex, 3, 1 > &moment, Real sigma, Real omega, int m)
AxisymmetricLayeredFarField axisymmetric_layered_far_field(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, const Surface< 2 > &surface, const LayerStack< 3 > &stack, const std::vector< Real > &theta_up, const std::vector< Real > &theta_down, int order=8)
Real dipole_vacuum_power(Complex moment, Real omega)
AxisymmetricDofSets axisymmetric_dof_sets(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const std::vector< mesh::Tag > &pec_tags, mesh::Tag axis_tag, int azimuthal_order)
Real axisymmetric_poynting_flux(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, const Surface< 2 > &surface, int order=8, const AxisymmetricField &added_value={}, const AxisymmetricField &added_curl={})
AxisymmetricField oblique_plane_wave(Complex amplitude, Real k, Real theta_i, PlanePolarisation polarisation, int m)
AxisymmetricFarField axisymmetric_far_field(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, const Surface< 2 > &surface, const std::vector< Real > &theta, int order=8)
AxisymmetricDiscFlux axisymmetric_disc_flux(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, Real omega, const materials::MaterialMap &materials, Real z, Real radius, int direction=-1, const AxisymmetricField &added_value={}, const AxisymmetricField &added_curl={}, int order=8)
AxisymmetricOrders scatter_orders(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, AxisymmetricScatteringSetup setup, const std::function< AxisymmetricField(int)> &incident_of_order, int max_order, const Surface< 2 > &surface, Real tolerance=1e-6)
Eigen::Matrix< Complex, 3, 1 > axisymmetric_permittivity(const materials::Material &material)
std::function< Eigen::Matrix< Complex, 3, 1 >(const Point< 2 > &)> AxisymmetricField
Definition axisymmetric.hpp:181
PlanePolarisation
Polarisation of a plane wave relative to its plane of incidence (the x–z plane).
Definition axisymmetric.hpp:544
AxisymmetricError axisymmetric_error(const fespace::NedelecDofMap< 2 > &meridian, const fespace::DofMap< 2 > &azimuthal, const Vector &meridian_coefficients, const Vector &azimuthal_coefficients, int azimuthal_order, const AxisymmetricField &exact, const AxisymmetricField &exact_curl={}, int extra_order=4)
StackSide
Side of a layer stack from which a plane wave comes.
Definition axisymmetric.hpp:562
@ kBottom
from the substrate (lossless), travelling towards +z
@ kTop
from the incidence medium, travelling towards −z
Polarisation
Definition layer_stack.hpp:21
DirectSolverBackend
Direct solver backends.
Definition linear_solver.hpp:70
double Real
Definition types.hpp:15
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
Eigen::SparseMatrix< Complex, Eigen::RowMajor, Index > SparseMatrix
Definition types.hpp:24
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17
Eigen::Matrix< Complex, Eigen::Dynamic, 1 > Vector
Definition types.hpp:20
std::complex< double > Complex
Definition types.hpp:16
Element indicators of one discrete solution.
Definition residual_estimator.hpp:65
Definition residual_estimator.hpp:37
Definition axisymmetric_forms.hpp:53
Absorbed power split by material tag and by cell.
Definition absorption.hpp:24
Description of an axisymmetric cavity problem (closed, lossless).
Definition axisymmetric.hpp:79
Index krylov_dimension
Definition axisymmetric.hpp:85
mesh::Tag axis_tag
facets on the axis r = 0 (required)
Definition axisymmetric.hpp:82
Real tolerance
Definition axisymmetric.hpp:86
std::vector< mesh::Tag > pec_tags
facets with n × E = 0
Definition axisymmetric.hpp:81
int max_iterations
Definition axisymmetric.hpp:87
int extra_quadrature_order
Definition axisymmetric.hpp:88
Index num_modes
Definition axisymmetric.hpp:84
materials::MaterialMap materials
lossless, by cell tag
Definition axisymmetric.hpp:80
int azimuthal_order
m
Definition axisymmetric.hpp:83
Definition axisymmetric.hpp:448
Real total
Definition axisymmetric.hpp:449
Real background
Definition axisymmetric.hpp:450
Real change() const noexcept
Definition axisymmetric.hpp:451
Definition axisymmetric.hpp:38
std::vector< Index > free
block indices (Nédélec first, then H1 of v)
Definition axisymmetric.hpp:39
std::optional< fespace::Constraints > constraints
Definition axisymmetric.hpp:43
std::vector< Index > free_potential
Definition axisymmetric.hpp:40
std::optional< fespace::Constraints > potential_constraints
The same for ψ, restricted to free_potential.
Definition axisymmetric.hpp:45
Definition axisymmetric.hpp:247
Real l2
weighted L2 norm of the field error
Definition axisymmetric.hpp:248
Real curl
weighted L2 norm of the curl error
Definition axisymmetric.hpp:249
Definition axisymmetric.hpp:480
std::vector< Real > theta
polar angles [rad]
Definition axisymmetric.hpp:484
int azimuthal_order
Definition axisymmetric.hpp:481
std::vector< Complex > f_phi
Definition axisymmetric.hpp:486
std::vector< Complex > f_theta
at φ = 0 [V/m · m]
Definition axisymmetric.hpp:485
Real impedance
Z of the background [Ohm].
Definition axisymmetric.hpp:483
Real wavenumber
k of the background [1/m]
Definition axisymmetric.hpp:482
Real radiated_power() const
Real power_between(Real theta_min, Real theta_max) const
Definition axisymmetric.hpp:426
Real lateral
[W]
Definition axisymmetric.hpp:429
Real total() const noexcept
Definition axisymmetric.hpp:430
Real down
[W]
Definition axisymmetric.hpp:428
Real up
[W]
Definition axisymmetric.hpp:427
Definition axisymmetric.hpp:513
AxisymmetricFarField up
Definition axisymmetric.hpp:514
AxisymmetricFarField down
Definition axisymmetric.hpp:515
Order m of the plane wave on a layer stack, see layered_axisymmetric_wave.
Definition axisymmetric.hpp:568
Real reflectance
R of the bare stack for this side.
Definition axisymmetric.hpp:573
Real absorptance
1 − R − T
Definition axisymmetric.hpp:575
AxisymmetricField value
Definition axisymmetric.hpp:569
AxisymmetricField curl
Definition axisymmetric.hpp:572
Real transmittance
T of the bare stack for this side.
Definition axisymmetric.hpp:574
One eigenmode of order m.
Definition axisymmetric.hpp:92
Vector meridian
(E_r, E_z) coefficients on the Nédélec map (full size)
Definition axisymmetric.hpp:94
Real wavenumber
k0 [1/m]
Definition axisymmetric.hpp:93
Vector azimuthal
v = -i r E_phi coefficients on the H1 map (full size)
Definition axisymmetric.hpp:95
Fields of several orders and their powers through a common surface.
Definition axisymmetric.hpp:602
std::vector< int > orders
m of every solved order
Definition axisymmetric.hpp:603
Real total_power() const
Σ_m power (orders are orthogonal)
std::vector< Real > power
power [W] of every order
Definition axisymmetric.hpp:605
std::vector< AxisymmetricScatteredField > fields
one per order
Definition axisymmetric.hpp:604
Definition axisymmetric.hpp:128
materials::MaterialMap materials
by cell tag (may be lossy)
Definition axisymmetric.hpp:130
Index num_modes
Definition axisymmetric.hpp:135
Index krylov_dimension
Definition axisymmetric.hpp:136
int extra_quadrature_order
Definition axisymmetric.hpp:140
int max_iterations
Definition axisymmetric.hpp:138
Real target_omega
search centre of ω [rad/s] (and PML design frequency)
Definition axisymmetric.hpp:129
mesh::Tag axis_tag
facets on the axis r = 0 (required)
Definition axisymmetric.hpp:132
std::vector< mesh::Tag > pec_tags
facets with n × E = 0
Definition axisymmetric.hpp:131
int pml_extra_quadrature_order
Definition axisymmetric.hpp:141
solvers::DirectSolverBackend solver
Definition axisymmetric.hpp:139
Real tolerance
Definition axisymmetric.hpp:137
int azimuthal_order
m
Definition axisymmetric.hpp:133
std::optional< pml::PmlBox< 2 > > pml
absorbing layers (r-max, z-min, z-max)
Definition axisymmetric.hpp:134
A quasi-normal mode of order m.
Definition axisymmetric.hpp:145
Real residual
Arnoldi residual.
Definition axisymmetric.hpp:149
Real quality
Q = Re ω / (−2 Im ω)
Definition axisymmetric.hpp:148
Vector meridian
(E_r, E_z) coefficients (full size)
Definition axisymmetric.hpp:150
Vector azimuthal
v = -i r E_phi coefficients (full size)
Definition axisymmetric.hpp:151
Complex omega
complex angular frequency [rad/s], Im ω < 0 for decay
Definition axisymmetric.hpp:146
Real wavelength
2π c0 / Re ω [m]
Definition axisymmetric.hpp:147
Definition axisymmetric.hpp:301
Vector meridian
(E_r, E_z) coefficients (full size)
Definition axisymmetric.hpp:303
int azimuthal_order
Definition axisymmetric.hpp:302
Vector azimuthal
Definition axisymmetric.hpp:304
std::shared_ptr< const KeptFactorisation > factorisation
Definition axisymmetric.hpp:307
Definition axisymmetric.hpp:270
materials::MaterialMap materials
by cell tag; the background for unlisted tags
Definition axisymmetric.hpp:272
int extra_quadrature_order
added to 2p for the non-polynomial incident field
Definition axisymmetric.hpp:291
std::vector< mesh::Tag > pec_tags
facets with n × E = 0 (scattered field = −incident)
Definition axisymmetric.hpp:273
AxisymmetricField incident
m-th component of the incident field (scattered-field formulation) ...
Definition axisymmetric.hpp:286
AxisymmetricField current
Definition axisymmetric.hpp:289
solvers::DirectSolverBackend solver
Definition axisymmetric.hpp:290
Real omega
angular frequency [rad/s]
Definition axisymmetric.hpp:271
mesh::Tag axis_tag
facets on the axis r = 0 (required)
Definition axisymmetric.hpp:274
int azimuthal_order
m of the incident component
Definition axisymmetric.hpp:275
std::optional< pml::PmlBox< 2 > > pml
Definition axisymmetric.hpp:276
bool keep_factorisation
Definition axisymmetric.hpp:296
std::optional< LayerStack< 3 > > background
Definition axisymmetric.hpp:284
int pml_extra_quadrature_order
Definition axisymmetric.hpp:292
Definition postprocess.hpp:28