hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
hpfem::physics::AnisotropicStack Class Reference

#include <anisotropic_stack.hpp>

Public Member Functions

 AnisotropicStack (materials::Material incidence_medium, std::vector< Layer > layers, materials::Material substrate, Real top=0.0)
 
int num_layers () const noexcept
 
const materials::Material & material (int region) const
 
const std::vector< Layer > & layers () const noexcept
 
Real top () const noexcept
 
LayerStack< 3 > layer_stack () const
 
StackResponse response (Real k0, Real angle, Real azimuth=0.0) const
 
AnisotropicPlaneWave plane_wave (Real k0, Real angle, Polarisation pol, Real amplitude=1.0, Real azimuth=0.0) const
 
Eigen::Matrix2cd reflection_at (Real k0, Complex a, Complex b) const
 
AnisotropicPlaneWave mode_wave (Real k0, Real a, Real b, int mode, Real amplitude=1.0) const
 

Static Public Member Functions

static Eigen::Matrix4cd berreman_matrix (const materials::Tensor3 &eps, Real a, Real b)
 

Detailed Description

A planar stack of possibly anisotropic layers (laboratory frame, z the normal): isotropic, lossless incidence medium above top, layers from top to bottom, semi-infinite substrate.

Constructor & Destructor Documentation

◆ AnisotropicStack()

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

The incidence medium may be a lossless crystal, whose waves are then those of mode_wave (response, plane_wave and reflection_at need an isotropic one).

Exceptions
InvalidArgumentfor a thickness ≤ 0, a magnetic material, a lossy incidence medium, a gain medium (Im ε not positive semi-definite) or an epsilon-near-zero \( |\varepsilon_{zz}| < 10^{-8}\max|\varepsilon_{ij}| \).

Member Function Documentation

◆ berreman_matrix()

static Eigen::Matrix4cd hpfem::physics::AnisotropicStack::berreman_matrix ( const materials::Tensor3 &  eps,
Real  a,
Real  b 
)
static

Berreman matrix K of a medium for the normalised in-plane wavevector (a, b) = (k_x, k_y)/k0: \( \psi' = ik_0K\psi \) (exposed for tests and the theory page).

◆ layer_stack()

LayerStack< 3 > hpfem::physics::AnisotropicStack::layer_stack ( ) const

The geometry and materials as a LayerStack<3>, the layered background of Scattering<3> (its scalar plane_wave refuses crystals; use plane_wave here).

◆ layers()

const std::vector< Layer > & hpfem::physics::AnisotropicStack::layers ( ) const
inlinenoexcept

◆ material()

const materials::Material & hpfem::physics::AnisotropicStack::material ( int  region) const

◆ mode_wave()

AnisotropicPlaneWave hpfem::physics::AnisotropicStack::mode_wave ( Real  k0,
Real  a,
Real  b,
int  mode,
Real  amplitude = 1.0 
) const

The analytic field of the downward mode mode (0 or 1, the order of half_space_modes: s / p, ordinary / extraordinary) of the incidence medium, with |E| = amplitude [V/m], at the normalised in-plane wavevector (a, b): as plane_wave, also for a lossless crystal incidence medium (M19 S7e: the plane wave incident from a crystal substrate, mirrored, in the reciprocity of emitters). response is left empty. The incident wave has the phase 1 at the origin of the top interface.

Exceptions
InvalidArgumentfor an evanescent mode or a mode index other than 0, 1.

◆ num_layers()

int hpfem::physics::AnisotropicStack::num_layers ( ) const
inlinenoexcept

◆ plane_wave()

AnisotropicPlaneWave hpfem::physics::AnisotropicStack::plane_wave ( Real  k0,
Real  angle,
Polarisation  pol,
Real  amplitude = 1.0,
Real  azimuth = 0.0 
) const

Plane wave of polarisation pol (s or p) and amplitude |E| = amplitude [V/m] incident as in response: the analytic field in every region (E and curl E = i k0 Z0 H), \( \psi(z) = W_u e^{ik_0T_u(z - z_b)}\alpha + W_d e^{ik_0T_d(z - z_t)}\delta \) with the upward amplitudes at the bottom and the downward ones at the top of each region, so all exponentials decay.

Exceptions
asresponse.

◆ reflection_at()

Eigen::Matrix2cd hpfem::physics::AnisotropicStack::reflection_at ( Real  k0,
Complex  a,
Complex  b 
) const

Jones reflection matrix (as StackResponse::reflection) at the normalised in-plane wavevector (a, b) = (k_x, k_y)/k0 of the incidence medium, also beyond its light cone, where the incident and the reflected wave are evanescent (k_z / k0 = ±sqrt(n0² − a² − b²), Im ≥ 0 towards the decaying side): the plane-wave spectrum of a dipole above the stack (dipole_power_above). ŝ = ẑ × k̂_∥ (ŷ at a = b = 0), p̂ = ŝ × k̂ / n0 with the complex k̂. Guided modes of a lossless stack are poles on the real (a, b) plane, where the matrix is singular or large.

Exceptions
InvalidArgumentfor k0 ≤ 0 or grazing propagation in a region (k_z = 0, e.g. |(a, b)| = n0). (a, b) may be complex: the analytic continuation on a deformed integration path below the real axis (guided-mode poles of lossless stacks, M19 S7e), with ŝ normalised by the non-conjugating norm and the up / down modes of every region chosen by Im k_z (causal).

◆ response()

StackResponse hpfem::physics::AnisotropicStack::response ( Real  k0,
Real  angle,
Real  azimuth = 0.0 
) const

Response at the vacuum wavenumber k0 [1/m] for incidence at angle [rad] from the normal in the plane at the azimuth azimuth [rad] (in-plane wavevector \( k_0n_0\sin\theta(\cos\phi, \sin\phi) \)).

Exceptions
InvalidArgumentfor k0 ≤ 0, |angle| ≥ π/2, or a region without two upward and two downward modes (grazing propagation, k_z = 0).

◆ top()

Real hpfem::physics::AnisotropicStack::top ( ) const
inlinenoexcept

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