hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
diffraction.hpp File Reference
#include <functional>
#include <vector>
#include "hpfem/assembly/maxwell_forms.hpp"
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/dof_map.hpp"
#include "hpfem/mesh/point_location.hpp"
Include dependency graph for diffraction.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpfem::physics::DiffractionOrder
 One diffraction order. More...
 
struct  hpfem::physics::OrderLine
 
struct  hpfem::physics::DiffractionOrderField
 One diffraction order with its complex vector amplitude. More...
 
struct  hpfem::physics::OrderPlane
 
struct  hpfem::physics::DiffractionOrder3D
 One order (m, n) of a crossed grating with its complex vector amplitude. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::physics
 

Typedefs

using hpfem::physics::FieldFunction = std::function< assembly::ComplexVector< 2 >(const Point< 2 > &)>
 A field as a function of the point, e.g. problem.total_field through a locator.
 
using hpfem::physics::FieldFunction3D = std::function< assembly::ComplexVector< 3 >(const Point< 3 > &)>
 

Functions

std::vector< assembly::ComplexVector< 2 > > hpfem::physics::fourier_coefficients (const std::function< assembly::ComplexVector< 2 >(const Point< 2 > &)> &field, Real x0, Real y0, Real period, Real ky0, int max_order, int num_points)
 
std::vector< assembly::ComplexVector< 2 > > hpfem::physics::fourier_coefficients (const fespace::NedelecDofMap< 2 > &dofs, const Vector &e_h, const mesh::PointLocator< 2 > &locator, Real x0, Real y0, Real period, Real ky0, int max_order, int num_points)
 
std::vector< DiffractionOrder > hpfem::physics::diffraction_efficiencies (const std::vector< assembly::ComplexVector< 2 > > &coefficients, Real k0, Real index_line, Real period, Real ky0, Real kx_incident, Real incident_amplitude)
 
std::vector< DiffractionOrderField > hpfem::physics::diffraction_orders (const FieldFunction &field, const OrderLine &line, Real k0, Real index_line, Real k_tangential, Real kn_incident, const FieldFunction &incident={}, int max_order=3, int num_points=0, Real incident_amplitude=1.0)
 
std::vector< DiffractionOrder3D > hpfem::physics::diffraction_orders (const FieldFunction3D &field, const OrderPlane &plane, Real k0, Real index_plane, const Point< 3 > &k_tangential, Real kn_incident, const FieldFunction3D &incident={}, int max_order=2, int num_points=0, Real incident_amplitude=1.0)
 

Detailed Description

Diffraction orders of Bloch-periodic structures. 2D: on a line \( x = x_0 \) in a homogeneous region the field is a sum of plane waves \( E = \sum_m A_m\,e^{i k_{y,m} y} \) with \( k_{y,m} = k_{y,0} + 2\pi m/a \), and the Fourier coefficients give the reflected / transmitted diffraction efficiencies \( \eta_m = \mathrm{Re}(k_{x,m})\,|A_m|^2 / (k_{x,0}^{inc}|E_0|^2) \) with \( k_{x,m} = \sqrt{k^2 n^2 - k_{y,m}^2} \). 3D (crossed gratings, M21): the same on a plane over one cell of the lattice, orders (m, n). See docs/theory/maxwell.md#post-processing-quantities.