M_odd_array
- miepython.vsh.M_odd_array(n, lambda0, d_sphere, m_index, r, theta, phi)[source]
Generate the first n odd magnetic vector spherical harmonics (m=1).
The wavenumber k=2𝜋m/λ₀ where m is the index of refraction of the sphere or medium at a distance r from the center of the sphere. λ₀ is the wavelength in a vacuum.
The units on d_sphere, r and are should be the same (e.g., microns) and those on k should be the reciprocal (e.g. 1/microns)
- 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 – (M_r, M_theta, M_phi) where each is an array