deeptrack.backend.mie Module#

Mie scattering calculations.

This module provides functions to perform Mie scattering calculations, including computation of spherical harmonics coefficients and related operations.

Module Structure#

Functions:

  • coefficients: Coefficients for spherical harmonics.

  • stratified_coefficients: Coefficients for stratified spherical harmonics.

  • harmonics: Evaluates spherical harmonics of the Mie field.

Example#

Define the parameters of the particle and the Mie scattering:

>>> relative_refract_index = 1.5 + 0.01j
>>> particle_radius = 0.5
>>> max_order = 5

Calculate Mie coefficients for a solid particle:

>>> from deeptrack.backend import mie
>>> A, B = mie.coefficients(relative_refract_index, particle_radius, max_order)

Print them:

>>> print("A coefficients:", A)
>>> print("B coefficients:", B)

Functions#

coefficients(m, a, L)

Calculate the Mie scattering coefficients for a spherical particle.

dricbesh(l, x)

The first derivative of the Riccati-Bessel polynomial of the 3rd kind.

dricbesj(l, x)

The first derivative of the Riccati-Bessel polynomial of the 1st kind.

dricbesy(l, x)

The first derivative of the Riccati-Bessel polynomial of the 2nd kind.

harmonics(x, L)

Calculate the spherical harmonics of the Mie field.

ricbesh(l, x)

The Riccati-Bessel polynomial of the 3rd kind.

ricbesj(l, x)

The Riccati-Bessel polynomial of the 1st kind.

ricbesy(l, x)

The Riccati-Bessel polynomial of the 2nd kind.

stratified_coefficients(m, a, L)

Calculate the Mie scattering coefficients for stratified spherical particles.