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

#include <layer_stack.hpp>

Public Member Functions

 LayerStack (materials::Material incidence_medium, std::vector< Layer > layers, materials::Material substrate, Real top=0.0)
 
int num_layers () const noexcept
 
Real interface (int i) const
 Coordinate of interface i, i = 0 (top) … num_layers() (bottom); descending.
 
Real top () const noexcept
 
Real bottom () const noexcept
 
int region (Real z) const noexcept
 
const materials::Material & material (int region) const
 
const materials::Material & material_at (const Point< Dim > &x) const
 
const materials::Material & incidence_medium () const
 
const materials::Material & substrate () const
 
LayeredPlaneWave< Dim > plane_wave (Real k0, Real angle, Polarisation pol=Polarisation::kP, Real amplitude=1.0, Real azimuth=0.0) const
 

Detailed Description

template<int Dim>
class hpfem::physics::LayerStack< Dim >

A stack of planar layers: incidence medium (semi-infinite, lossless) above the coordinate top, then layers from top to bottom, then the semi-infinite substrate. Interfaces must coincide with mesh facets when the stack is used as background.

Constructor & Destructor Documentation

◆ LayerStack()

template<int Dim>
hpfem::physics::LayerStack< Dim >::LayerStack ( materials::Material  incidence_medium,
std::vector< Layer >  layers,
materials::Material  substrate,
Real  top = 0.0 
)

Layers, the substrate and (lossless) the incidence medium may be crystals (ADR-0015 §5): the stack then serves as the geometry and the materials of a layered background, and its field comes from AnisotropicStack::plane_wave / mode_wave (plane_wave here refuses crystals).

Exceptions
InvalidArgumentfor a thickness ≤ 0, a magnetic material, a lossy incidence medium or Im ε < 0 anywhere.

Member Function Documentation

◆ bottom()

template<int Dim>
Real hpfem::physics::LayerStack< Dim >::bottom ( ) const
inlinenoexcept

◆ incidence_medium()

template<int Dim>
const materials::Material & hpfem::physics::LayerStack< Dim >::incidence_medium ( ) const
inline

◆ interface()

template<int Dim>
Real hpfem::physics::LayerStack< Dim >::interface ( int  i) const

Coordinate of interface i, i = 0 (top) … num_layers() (bottom); descending.

◆ material()

template<int Dim>
const materials::Material & hpfem::physics::LayerStack< Dim >::material ( int  region) const

◆ material_at()

template<int Dim>
const materials::Material & hpfem::physics::LayerStack< Dim >::material_at ( const Point< Dim > &  x) const
inline

◆ num_layers()

template<int Dim>
int hpfem::physics::LayerStack< Dim >::num_layers ( ) const
inlinenoexcept

◆ plane_wave()

template<int Dim>
LayeredPlaneWave< Dim > hpfem::physics::LayerStack< Dim >::plane_wave ( Real  k0,
Real  angle,
Polarisation  pol = Polarisation::kP,
Real  amplitude = 1.0,
Real  azimuth = 0.0 
) const

Plane wave of unit amplitude |E| = amplitude [V/m] incident from above at the angle angle [rad] from the normal with in-plane wavevector along +x (3D: rotated by azimuth [rad] about the normal), vacuum wavenumber k0 [1/m]. Stable Airy / S-matrix recursion of the reflection coefficients from the substrate upwards and layer-local amplitude references, so thick absorbing layers neither overflow nor cancel. In 2D pol must be kP.

Exceptions
InvalidArgumentfor k0 ≤ 0, |angle| ≥ π/2, grazing incidence or kS in 2D; AnisotropicUnsupported if a region is a crystal.

◆ region()

template<int Dim>
int hpfem::physics::LayerStack< Dim >::region ( Real  z) const
noexcept

Material of the region containing the vertical coordinate z (an interface belongs to the region above it): index 0 incidence medium, 1..N layers, N + 1 substrate.

◆ substrate()

template<int Dim>
const materials::Material & hpfem::physics::LayerStack< Dim >::substrate ( ) const
inline

◆ top()

template<int Dim>
Real hpfem::physics::LayerStack< Dim >::top ( ) const
inlinenoexcept

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