Skip to main content

Module layer

Module layer 

Source
Expand description

Slab descriptions and the packing of dispersion tensors into kernel records.

Owns the plain-old-data types shared by every solver backend (Layer, LayerCoeffs) and the wavelength conversion. It does not solve transfer chains or validate whole stacks; see crate::validate and the refloxide-tmm crate.

Structs§

Layer
One slab in a stratified medium.
LayerCoeffs
Per-slab coefficients consumed by the uniaxial kernel.

Constants§

HC_EV_ANGSTROM
Photon energy to wavelength conversion constant in eV * Angstrom.

Functions§

layer_coeffs
Packs per-slab rows and dispersion tensors into kernel LayerCoeffs.
wavenumber
Vacuum wavenumber 2 pi / lambda in 1/Angstrom for a photon energy in eV.