N_odd_array

miepython.vsh.N_odd_array(n, lambda0, d_sphere, m_index, r, theta, phi)[source]

Generate first n odd electric vector spherical harmonics (m=1).

The units of lambda0, d_sphere, and r should be the same (e.g., microns).

The conventions used follow the “Vector Spherical Harmonics” Wikipedia page and Ladutenko’s paper (DOI: https://doi.org/10.1016/j.cpc.2017.01.017).

Parameters:
  • n (int) – Harmonic (1 for dipole, 2 for quadrupole, etc.).

  • lambda0 (float) – Wavelength in a vacuum.

  • d_sphere (float) – Diameter of the sphere.

  • m_index (complex) – Refractive index at position r.

  • r (float) – Radial distance from center of sphere.

  • theta (float) – Polar angle in radians (angle from z-axis).

  • phi (float) – Azimuthal angle in radians. (angle from x-axis).

Returns:

tuple – [N_r, N_theta, N_phi] where each is an array