bfieldtools.sphtools.basis_potentials¶
- bfieldtools.sphtools.basis_potentials(p, lmax, normalization='default', R=1)¶
Computes inner/outer basis functions for magnetic scalar potential. Ignores the ‘DC’ component l=0.
- Parameters:
- p: Nx3 array
coordinates in which the potential is computed
- lmax: int
maximum degree l which is used in computing
- normalization: string
which normalization scheme to use “default”: Integration over unit sphere <Y_lm,Y_l’m’> = delta_ll’mm’ (default) “energy”: each term in inner/outer basis function with respect to sphere with radius R is normalized to unit energy
- R: float
Sphere radius that separates inner/outer components
- Returns:
- pot1: Nxlmax*(lmax+2) array
inner potential (alpha_lm) basis functions at p
- pot2: Nxlmax*(lmax+2) array
outer potential (beta_lm) basis functions at p