hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
conical_scattering.hpp File Reference
#include <functional>
#include <optional>
#include <vector>
#include <Eigen/Core>
#include "hpfem/adaptivity/residual_estimator.hpp"
#include "hpfem/assembly/conical_forms.hpp"
#include "hpfem/assembly/periodic.hpp"
#include "hpfem/core/progress.hpp"
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/constraints.hpp"
#include "hpfem/fespace/dof_map.hpp"
#include "hpfem/materials/material.hpp"
#include "hpfem/mesh/mesh.hpp"
#include "hpfem/mesh/point_location.hpp"
#include "hpfem/physics/anisotropic_stack.hpp"
#include "hpfem/physics/kept_factorisation.hpp"
#include "hpfem/physics/layer_stack.hpp"
#include "hpfem/physics/postprocess.hpp"
#include "hpfem/pml/pml.hpp"
#include "hpfem/solvers/linear_solver.hpp"
Include dependency graph for conical_scattering.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpfem::physics::ConicalModalBoundary
 
struct  hpfem::physics::ConicalScatteringSetup
 Description of a conical scattering problem. More...
 
struct  hpfem::physics::ConicalError
 
struct  hpfem::physics::ConicalSolution
 
class  hpfem::physics::ConicalScattering
 
struct  hpfem::physics::LayeredConicalWave
 
struct  hpfem::physics::AnisotropicConicalWave
 
struct  hpfem::physics::ConicalDiffractionOrder
 One diffraction order of a conical problem. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::physics
 

Typedefs

using hpfem::physics::ConicalVector = Eigen::Matrix< Complex, 3, 1 >
 
using hpfem::physics::ConicalField = std::function< ConicalVector(const Point< 2 > &)>
 

Functions

ConicalField hpfem::physics::conical_plane_wave (const ConicalVector &amplitude, const Point< 3 > &wave_vector)
 
ConicalField hpfem::physics::conical_plane_wave_curl (const ConicalVector &amplitude, const Point< 3 > &wave_vector)
 
ConicalVector hpfem::physics::conical_polarisation (const Point< 3 > &wave_vector, const Point< 3 > &normal, Polarisation polarisation)
 
assembly::ConicalForm hpfem::physics::conical_material_form (const materials::Material &material)
 
assembly::ConicalForm hpfem::physics::conical_pml_form (const pml::PmlBox< 2 > &box, const materials::Material &material, std::optional< int > quadrature_order={})
 
ConicalVector hpfem::physics::conical_field_at (const fespace::NedelecDofMap< 2 > &transverse, const fespace::DofMap< 2 > &longitudinal, const Vector &e, const Vector &v, Real beta, Index cell, const Point< 2 > &xi, ConicalVector *curl=nullptr)
 
Real hpfem::physics::conical_poynting_flux (const fespace::NedelecDofMap< 2 > &transverse, const fespace::DofMap< 2 > &longitudinal, const Vector &e, const Vector &v, Real beta, Real omega, const materials::MaterialMap &materials, const Surface< 2 > &surface, int order=8)
 
SparseMatrix hpfem::physics::conical_modal_boundary_matrix (const fespace::NedelecDofMap< 2 > &transverse, const fespace::DofMap< 2 > &longitudinal, const Surface< 2 > &line, const materials::Tensor3 &eps, Real k0, Real beta, const Point< 2 > &shift, Real kt0, int max_order)
 
LayeredConicalWave hpfem::physics::layered_conical_wave (const LayerStack< 2 > &stack, Real k0, Real angle, Real azimuth, Polarisation pol, Real amplitude=1.0)
 
LayeredConicalWave hpfem::physics::layered_conical_wave_from_substrate (const LayerStack< 2 > &stack, Real k0, Real angle, Real azimuth, Polarisation pol, Real amplitude=1.0)
 
AnisotropicConicalWave hpfem::physics::anisotropic_conical_wave (const AnisotropicStack &stack, Real k0, Real angle, Real azimuth, Polarisation pol, Real amplitude=1.0)
 
AnisotropicConicalWave hpfem::physics::anisotropic_conical_mode_wave (const AnisotropicStack &stack, Real k0, Real kx, Real beta, int mode, Real amplitude=1.0)
 
std::vector< ConicalVector > hpfem::physics::conical_fourier_coefficients (const std::function< ConicalVector(const Point< 2 > &)> &field, const Point< 2 > &origin, const Point< 2 > &tangent, Real period, Real kt0, int max_order, int num_points)
 
std::vector< ConicalVector > hpfem::physics::conical_fourier_coefficients (const std::function< ConicalVector(const Point< 2 > &)> &field, Real x0, Real y0, Real period, Real ky0, int max_order, int num_points)
 The same on the line x = x0 with the period along y (origin (x0, y0), tangent ŷ).
 
std::vector< ConicalDiffractionOrder > hpfem::physics::conical_diffraction_efficiencies (const std::vector< ConicalVector > &coefficients, Real k0, Real index_line, Real period, Real ky0, Real beta, Real kx_incident, Real incident_amplitude)
 

Detailed Description

Scattering by z-invariant structures under conical incidence (2.5D, M13): the field \( E = (E_x, E_y, E_z)(x, y)\,e^{i\beta z} \) with the longitudinal wavenumber β of the incident wave is solved on the 2D mesh with the forms of assembly/conical_forms.hpp (in-plane components in the Nédélec space, the scaled \( v = -iE_z \) in the H1 space). At β = 0 the problem decouples into the in-plane polarisation of Scattering<2> and the E_z polarisation (E parallel to the invariant direction, the "TE" of the grating literature), which this solver therefore provides as well: an incident field with \( E = E_z\hat z \) and β = 0 keeps the in-plane block at zero. Boundary conditions: PEC (n × E = 0: the tangential in-plane DoFs and E_z), Bloch-periodic directions on both spaces, PML as the stretched tensors \( \Lambda = \mathrm{diag}(s_y/s_x, s_x/s_y, s_xs_y) \) ( \( \tilde\varepsilon = \varepsilon\Lambda \), \( \tilde\mu^{-1} = \mu^{-1}\Lambda^{-1} \)), hanging nodes of locally refined meshes. Formulations: scattered field with an analytic incident wave of the (homogeneous) background, source \( k_0^2(\varepsilon - \varepsilon_{bg})E^{inc} \) in the cells whose permittivity differs (μ must equal the background's); total field with a current \( f = i\omega\mu_0 J \). Convention exp(-iωt). See docs/theory/maxwell.md#conical-incidence.