Expand description
Q-matrices of the extended boundary condition method (EBCM) for particles that are symmetric about the z axis, with analytic gradients for the surface and the media.
Upstream: treams.ebcm. qmat computes treams.ebcm.qmat with two differences:
radial_area_factor = trueincludes the factorrof the surface element(r rhat - r' theta-hat) r sin(theta) dtheta dphi, which treams omits;falsereproduces treams. See https://yaugenst.github.io/treams-rs/latest/coming-from-treams/differences/.- It sums over the fixed polar nodes and weights of a
Surface; the Pythonebcm.qmatpasses Gauss-Legendre nodes. treams integrates each matrix entry with the adaptivescipy.integrate.quad.
StructsΒ§
- Node
Gradient π - The gradient contributions of one node: its radius and slope, and its share of the wavenumber and impedance gradients.
- Qmat
Gradient - Input gradients of
QmatResidual::pullback. - Qmat
Residual - What
qmatsaves for its pullback: the modes, the surface and the media, without any wave values; the pullback evaluates the waves again. - Sample π
- Surface weight and normal of one node with the waves evaluated there.
- Sample
Tangent π - The value and directional derivative of a nodeβs integrand factors. Wave derivatives are contracted here, before assembling any matrix entries.
- Surface
- A surface of revolution
r(theta)about the z axis, sampled at fixed polar quadrature nodes in [0, pi].
ConstantsΒ§
- HELICITY π
- The sign
2 pol - 1of polarizations 0 and 1 (negative and positive helicity), ashelicity_signgives it. A pair of helicities couples through the impedance factorHELICITY[a] z_outer + HELICITY[b] z_inner, so the impedance gradients use the same signs.
FunctionsΒ§
- cross π
a x nof a complex and a real vector.- dot π
- The bilinear (unconjugated) product
a . b. - evaluate_
waves π - The first
countwaves ofwavesatpoint, which share their radial functions per degree and wavenumber and their solid harmonics per degree and order.Nis the derivative level,VALUESorSPATIAL_AND_K. - node_
geometry π - The point of node
iin the x-z plane, its unnormalized surface normalr rhat - r' theta-hat(r'is the slopedr/dtheta) and the unit vectorsrhatand-theta-hat, along which the normal changes with the radius and the slope. - origin_
waves π - Spherical helicity waves of
modesabout the origin with wavenumbersks. Only the wavenumbers of helicities with modes are evaluated. The other may be zero, whichWaveSet::newrejects, so it takes the evaluated oneβs value. - qmat
- Integrate Q between regular inner test waves and regular or singular outer waves.
- triple π
- The triple product
n . (a x b).