pymiediff.Particle.get_cross_sections

pymiediff.Particle.get_cross_sections#

Particle.get_cross_sections(k0: Tensor, **kwargs) dict#

Compute far‑field cross‑section spectra.

Parameters:
  • k0 (torch.Tensor) – Tensor of evaluation wavenumbers (rad nm^-1). Will be cast to the particle’s device automatically.

  • **kwargs – Additional keyword arguments passed to pymiediff.coreshell.cross_sections().

Returns:

Dictionary containing the spectral results. Keys include:

  • wavelengthtorch.Tensor

    Wavelengths (nm) corresponding to the spectra.

  • q_exttorch.Tensor

    Extinction efficiency.

  • q_scatorch.Tensor

    Scattering efficiency.

  • q_abstorch.Tensor

    Absorption efficiency.

  • c_exttorch.Tensor

    Extinction cross‑section (nm^2).

  • c_scatorch.Tensor

    Scattering cross‑section (nm^2).

  • c_abstorch.Tensor

    Absorption cross‑section (nm^2).

Any additional fields returned by pymiediff.coreshell.cross_sections() are also included.

Return type:

dict

Notes

The Wiscombe criterion is used internally to truncate the Mie series. The result is squeezed to remove the singleton particle dimension.