bfieldtools.sphtools.potential¶
-
bfieldtools.sphtools.
potential
(p, acoeffs, bcoeffs, lmax, normalization='default', R=1)¶ Computes magnetic scalar potential from the sph coefficients. Ignores the ‘DC’ component l=0.
- Parameters
- p: Nx3 array
coordinates in which the potential is computed
- acoeffs: lmax*(lmax+2)x1 array
spectral coefficients of r**l terms
- bcoeffs: lmax*(lmax+2)x1 array
spectral coefficients of r**(-l) terms
- 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: Nx array
magnetic scalar potential at p