Expand description
Regular spherical and cylindrical expansions of plane waves, with analytic pullbacks.
Upstream: treams.pw.to_sw, treams.pw.to_cw, and the Expand operator from a
plane-wave basis to a spherical or cylindrical basis.
StructsΒ§
- Angular
Labels π - Angular plane-wave coefficients depend on a modeβs label, not on its position: modes that repeat at several positions share one evaluation.
- Expansion
Gradient - Plane-expansion cotangents.
- Expansion
Residual - What
expansionsaves for its pullback: its inputs. The pullback recomputes the coefficients instead of keeping a Jacobian.
FunctionsΒ§
- cylindrical_
angular π - The angular factor
((i kx + ky) / sqrt(kx^2 + ky^2))^m = (i exp(-i phi))^mof the cylindrical expansion of a plane wave,i^mon the z axis. - cylindrical_
coefficient π - The coefficient of
modein the regular expansion of a unit plane wave of polarizationpol, without the position phase; zero unless the labels match. - cylindrical_
mode_ πmatches - Whether a plane wave of axial wavenumber
kzand polarizationpolcouples to the cylindricalmode: equalpol, a realkz, andkzwithin 16 ulps of the modeβs. - expansion
- Expand multiple plane waves in a regular multipole basis: column
jholds the amplitudes of plane wavejat the basis positions. - spherical_
coefficient π - The coefficient of
modein the regular expansion of a unit plane wave of polarizationpol, without the position phase: the prefactor timesexp(-i m phi)times the polarized angular function oftheta. - spherical_
prefactor π - Normalization and phase
i^lof the spherical expansion of a plane wave, which depend on the degree and order alone. - to_cw
- One plane-to-cylindrical coefficient with exact axial-label matching.
- to_sw
- Spherical expansion coefficient for a unit-amplitude plane wave.