pub fn uniaxial_reflectivity(
q: &[f64],
layers: &[Layer],
tensor: &[Matrix3<Complex<f64>>],
energy_ev: f64,
parallel: bool,
) -> Result<UniaxialOutput>Expand description
Computes polarized reflectance and transmission for a uniaxial multilayer.
§Parameters
q: scattering wavevectors in1/Angstrom.layers: per-slab parameters, lengthnlayers. The first and last entries describe the fronting and the backing.tensor: per-slab 3x3 dispersion tensor, lengthnlayers. The Berreman dielectric is built aseps = conj(I - 2 * tensor).energy_ev: photon energy in eV. Must be strictly positive.parallel: when true, distribute q-points across rayon’s global thread pool. When false, run sequentially. Callers driving the kernel from a Python fitting routine that is itself multi-threaded or multi-process should passfalseto avoid CPU oversubscription. The rayon pool size is controlled by theRAYON_NUM_THREADSenvironment variable when set.
§Errors
Returns [RefloxideError] for shape mismatches, fewer than two slabs,
non-finite or non-positive energies, and for singular dynamic matrices
at any (q, layer).