treams.SphericalWaveBasis.defaultdim¶
- static SphericalWaveBasis.defaultdim(lmax, nmax=1)¶
Default number of modes for a given mulipolar order.
Given the maximal value of l return the size of the corresponding T-matrix. This is the inverse of
defaultlmax()
. A value of zero is allowed.- Parameters:
lmax (int) – Maximal multipolar order
nmax (int, optional) – Number of particles, defaults to 1
- Returns:
int