Driving-field library for the QPMS Python bindings.
Provides incoming-field objects usable with
``ScatteringSystem.incident_field_vector``:
* :func:`planewave_full` — one-shot plane-wave coefficient vector;
* :class:`IncFieldFromField` — **custom incoming field from a Python
function**: the user supplies a callable returning the electric field
phasor at points; the VSWF coefficients are obtained by a weighted
least-squares projection of the field samples onto the regular VSWF
basis over a spherical quadrature surface around each particle
(exact for fields that are source-free in the neighbourhood of
every particle);
* :class:`PointDipole` — oscillating electric point dipole (analytic
dyadic Green function + the generic projection);
* :class:`GaussianBeam` — beam via plane-wave angular-spectrum
quadrature over a focusing cone;
* :func:`sigma_convention_B` — cross sections per the frozen
Convention B (``ai_notes/simspec_draft.md`` §7).
All positions and wavenumbers are SI (metres, rad/s). Complex k is
supported where meaningful (quadrature projection, dipole); the beam
spectrum uses real propagation directions.
| qpms.fields.sigma_convention_B |
( |
|
ss, |
|
|
|
ssw, |
|
|
|
a, |
|
|
|
f |
|
) |
| |
Cross sections per frozen Convention B (finite systems).
σ_ext = −Re⟨a, f⟩/k², σ_scat = Re⟨f, (I + W_h+) f⟩/k² with the
translation-corrected scattered flux (plain Σ|f|²/k² is valid only
for single-particle systems), σ_abs = σ_ext − σ_scat.
Returns (sigma_ext, sigma_scat, sigma_abs).