Skip to main content

lorenz_mie_coefs

lorenz_mie_coefs(radius_m, wavelength_m, n_p, n_med) ⇒ Float64Array

Implementation of Lorenz-Mie theory. Useful for calculating physically correct radiation scattering events for particles in a medium.

Kind: global function
Returns: Float64Array - Mie coefficients a_n and b_n in form [a_n0.r, a_n0.i, b_n0.r, b_n0.i, ... a_nN.r, a_nN.i, b_nN.r, b_nN.i]
See

Author: Alexander Goldring (c) 2025

ParamTypeDescription
radius_mnumberParticle radius (in meters).
wavelength_mnumberWavelength of light in vacuum (in meters).
n_pvec2Complex refractive index of the particle
n_medvec2Complex refractive index of the medium (e.g., [1.0, 0.0] for air).