API documentation#

pyMieDiff - Mie + auto-diff

Mie theory for core-shell particles, implemted in pytorch.

API#

Particle class#

The pymiediff.Particle class describes core-shell particles and provides high-level access to the main functionalities:

Particle(r_core, mat_core[, r_shell, ...])

Materials#

pymiediff contains pyTorch autodiff classes for tabulated material permittivities, compatible with the refractiveindex.info format.

materials

material optical properties

Farfield#

farfield contains pyTorch autodiff funtions that can be directly used to compute the farfield obserables.

farfield

farfield observables

Special#

pymiediff contains pyTorch autodiff comptible spherical bessel functions and their derivatives.

special

auto-diff ready wrapper of scipy spherical Bessel functions

Core-shell#

This contains the core-shell scattering coefficients

coreshell

Core-shell scattering coefficients

Helper#

pyMieDiff contains tools e.g. for truncation critera, interpolation, numerical gradients or plotting.

helper

package for various tools for pymiediff