pymiediff.Particle.get_angular_scattering#
- Particle.get_angular_scattering(k0: Tensor, theta: Tensor, **kwargs) dict#
Compute angular scattering for a single particle.
- Parameters:
k0 (torch.Tensor) – Evaluation wavenumbers (rad nm^-1). Will be moved to the particle’s device internally.
theta (torch.Tensor) – Scattering angles (rad). Can be any shape that broadcasts with
k0.**kwargs (dict) – Additional keyword arguments passed to
pymiediff.coreshell.angular_scattering(). Typical options includen_maxto manually set the truncation order.
- Returns:
Dictionary containing angular‑scattering results. Keys include (but are not limited to):
thetatorch.TensorThe input angles (rad) after possible broadcasting.
i_unpoltorch.TensorUnpolarised intensity as a function of
thetaandk0.
i_partorch.TensorParallel‑polarised intensity.
i_perptorch.TensorPerpendicular‑polarised intensity.
Any additional fields returned by
pymiediff.coreshell.angular_scattering()are also present.- Return type:
dict
Notes
The helper function
_squeeze_dimensionsis applied to the result to remove the singleton particle dimension for single‑particle calculations.