Expand description
Chiral Fresnel and Cartesian planar interfaces, and propagation of up/down reference planes.
Upstream: treams.coeffs.fresnel, treams.SMatrices.interface and
treams.SMatrices.propagation.
Modulesยง
- saved ๐
- Fixed numeric layouts for interface and propagation derivative state. treams-rs extension.
Structsยง
- Fresnel
Gradient - Cotangents of the inputs of
fresnel, in the order of its arguments; each array lists the medium on the negative side (below), then the positive side (above). - Fresnel
Residual - What
fresnelsaves for its pullback: the wavenumbers, the normal wavenumbers and the impedances. The pullback differentiates the closed forms again instead of keeping a Jacobian. - Interface
Gradient - Cotangents of the inputs of
interface, in the order of its arguments; the media are listed negative side (below), then positive side (above). - Interface
Residual - What
interface()saves for its pullback: the media, the transverse wavevector, the axis, the inverse of the tangential-field matching matrix and the blocks. - Propagation
Gradient - Cotangents of the inputs of
propagation, in the order of its arguments. - Propagation
Residual - What
propagationsaves for its pullback: the wavevectors, the displacement and the diagonal phases.
Functionsยง
- fresnel
- Planar interface from full and normal wavenumbers and impedances, each indexed by medium (negative side, then positive side) and then by polarization.
- fresnel_
values ๐ - The chiral Fresnel coefficients
res[out][in][out pol][in pol], transcribed from upstreamtreams.coeffs.fresnelwith its variable names. - interface
- Interface from wavenumbers and impedances, indexed by medium (negative side, then
positive side), and the real transverse wavevector
q. - interface_
blocks ๐ - The four 2-by-2 polarization blocks of a 4-by-4 interface matrix.
- interface_
boundary ๐ - The tangential-field matching
lhs s = rhsof an interface. The columns oflhsare the outgoing waves (up in the positive medium, down in the negative one), those ofrhsthe incoming waves (up in the negative medium, down in the positive one). - interface_
matrix ๐ - Blocks
[[b0, b1], [b2, b3]]of 2-by-2 polarization blocks as one 4-by-4 matrix. - normal_
component ๐ - The normal wavenumber
sqrt(k^2 - q.q)on the branch with a nonnegative imaginary part. - port_
boundary ๐ - Tangential fields
[E_a, E_b, H_a, H_b]of the plane waves in one medium, indexed by propagation direction (0 = up) and polarization;aandbare the two axes afteraxisin cyclic order. - propagation
- Propagate by a Cartesian displacement, given upgoing wavevectors for every mode.
Type Aliasesยง
- Boundary
Jets ๐ - One 4-by-4 matrix (
lhsorrhs) of the tangential-field matching, as jets. - Interface
Matrix ๐ - The four 2-by-2 scattering blocks of one interface as a 4-by-4 matrix.