Expand description
Chirality-density forms of plane-wave modes, averaged over an interval.
Two kernels compute these forms from different inputs, and each differentiates its
own. chirality_density takes the full and normal wavenumbers of modes with real
transverse wavevectors in the xy plane and returns the forms without the helicity
sign. oriented_chirality takes the real transverse components and the normal
wavenumber along any Cartesian axis and includes the helicity sign of each mode.
Both kernels exist because their gradients answer different questions: the first
differentiates with respect to the medium (k, kz), the second with respect to
the direction of incidence (q, kz). On modes with q.q = k^2 - kz^2 their
forms agree up to the helicity sign.
Upstream: treams.chirality_density. Its interval average decays with Re(kz)
instead of Im(kz) and drops the phase of the cross form; these kernels keep both.
ModulesΒ§
- saved π
- Fixed numeric layouts of the per-mode chirality derivative state. treams-rs extension.
StructsΒ§
- Chirality
Density Gradient - Complex full/normal wavenumber and real interval-endpoint cotangents.
- Chirality
Density Residual - What
chirality_densitysaves for its pullback: the full and normal wavenumbers and the interval. - Oriented
Chirality Gradient - Real transverse, complex normal and real interval-endpoint cotangents.
- Oriented
Chirality Residual - What
oriented_chiralitysaves for its pullback: the real transverse components, the normal wavenumbers, the polarizations, the axis and the interval.
ConstantsΒ§
- INTERVAL π
- See
KS. - KS π
- Jet seed offsets of the six real local parameters of one mode: the full wavenumber
k(real, imaginary) ofchirality_densityor the transverse componentsqoforiented_chiralityatKSorQ, the normal wavenumber (real, imaginary) atKZSand the interval endpoints atINTERVAL. - KZS π
- See
KS. - Q π
- See
KS.
FunctionsΒ§
- chirality_
density - Up, down and coherent cross coefficients, shape (3, modes), before polarization.
- chirality_
forms π - The same scaled formulas for value, coordinate derivatives and directional jets.
- chirality_
mode π - The up, down and cross forms of one mode of
chirality_density. - mean_
exp π - The mean of
exp(slope z)overzininterval, from a six-term series when the exponent changes by less than 0.1 across the interval. - mode_
cotangents π - Pair the six local real derivatives of every modeβs forms with its column of the (3, modes) cotangent, in parallel from 1024 modes.
- mode_
forms π - The three forms of every mode as a (3, modes) matrix, in parallel from 1024 modes.
- oriented_
chirality - Signed helicity up/down/cross forms, shape (3, modes), for any Cartesian normal.
- oriented_
chirality_ πforms - Jets of the real coordinates retain the non-holomorphic polarization inner products.
- oriented_
chirality_ πmode - The helicity-signed up, down and cross forms of one mode of
oriented_chirality. - real_
direction π - Real and imaginary coordinates of one complex directional input.