chirality_density

Function chirality_density 

Source
pub fn chirality_density(
    ks: Vec<Complex>,
    normal: Vec<Complex>,
    interval: [f64; 2],
) -> Result<(DMatrix<Complex>, ChiralityDensityResidual)>
Expand description

Up, down and coherent cross coefficients, shape (3, modes), before polarization.

The density is 2 Re(E* . i Z H). The cross form X enters it as Re(d* X u), with the down and up amplitudes d and u. The modes have real transverse wavevectors in the xy plane; the gradients cover the full and normal wavenumbers.

Upstream: treams.chirality_density, with the differences of the module docs.