pymiediff.special.vsh#
- pymiediff.special.vsh(n_max, k0, n_medium, r, theta, phi, kind, epsilon=1e-08)#
vector spherical harmonics for l=1
- Parameters:
n_max (int) – Maximum evaluation order (all up to this will be returned)
k0 (torch.Tensor) – vacuum wavenumber
n_medium (torch.Tensor) – refractive index of medium
r (torch.Tensor) – radial coordiantes
theta (torch.Tensor) – polar angle coordinates
phi (torch.Tensor) – azimuthal angle coordinates
kind (int) – radial dependence. 1: j_n, 2: y_n, 3: h1_n.
epsilon (float, optional) – small numerical value to avoid singularity at origin. Defaults to 1e-8.
- Raises:
ValueError – _description_
- Returns:
_description_
- Return type:
_type_