treams._core.SphericalWaveBasis#
- class treams._core.SphericalWaveBasis(modes, positions=None)[source]#
Basis of spherical waves.
Functions of the spherical wave basis are defined by their angular momentum
l, its projection onto the z-axism, and the polarizationpol. If the basis is defined with respect to a single origin it is referred to as “global”, if it contains multiple origins it is referred to as “local”. In a local basis an additional position indexpidxis used to link the modes to one of the specifiedpositions.For spherical waves there exist multiple Polarizations and they can be separated into incident and scattered fields. Depending on these combinations the basis modes refer to one of the functions
treams.special.vsw_A(),treams.special.vsw_rA(),treams.special.vsw_M(),treams.special.vsw_rM(),treams.special.vsw_N(), ortreams.special.vsw_rN().- Parameters:
modes (array-like) – A tuple containing a list for each of
l,m, andpolorpidx,l,m, and``pol``.positions (array-like, optional) – The positions of the origins for the specified modes. Defaults to
[[0, 0, 0]].
- pidx#
Integer referring to a row in
positions.- Type:
array-like
- l#
Angular momentum as an integer \(l > 0\)
- Type:
array-like
- m#
Angular momentum projection onto the z-axis, it is an integer with \(m \leq |l|\)
- Type:
array-like
- pol#
Polarization, see also Polarizations.
- Type:
array-like
Methods
__init__(modes[, positions])Initalization.
count(value)default(lmax[, nmax, positions])Default basis for the given maximal multipolar order.
defaultdim(lmax[, nmax])Default number of modes for a given mulipolar order.
defaultlmax(dim[, nmax])Calculate the default mode order for a given length.
ebcm(lmax[, nmax, mmax, positions])Order of modes suited for ECBM.
index(value, [start, [stop]])Raises ValueError if the value is not present.
isdisjoint(other)Return True if two sets have a null intersection.
Attributes
isglobalBasis is defined with respect to a single (global) origin.
positionsPositions of the modes' origins.