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.TensorWavelengths (nm) corresponding to the spectra.
q_exttorch.TensorExtinction efficiency.
q_scatorch.TensorScattering efficiency.
q_abstorch.TensorAbsorption efficiency.
c_exttorch.TensorExtinction cross‑section (nm^2).
c_scatorch.TensorScattering cross‑section (nm^2).
c_abstorch.TensorAbsorption 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.