|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#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 |
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.
| 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).
| InvalidArgument | for a thickness ≤ 0, a magnetic material, a lossy incidence medium or Im ε < 0 anywhere. |
|
inlinenoexcept |
|
inline |
| Real hpfem::physics::LayerStack< Dim >::interface | ( | int | i | ) | const |
Coordinate of interface i, i = 0 (top) … num_layers() (bottom); descending.
| const materials::Material & hpfem::physics::LayerStack< Dim >::material | ( | int | region | ) | const |
|
inline |
|
inlinenoexcept |
| 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.
| InvalidArgument | for k0 ≤ 0, |angle| ≥ π/2, grazing incidence or kS in 2D; AnisotropicUnsupported if a region is a crystal. |
|
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.
|
inline |
|
inlinenoexcept |