acoustotreams.ScalarSphericalWaveBasis.defaultdim

static ScalarSphericalWaveBasis.defaultdim(lmax, nmax=1)[source]

Calculate the number of modes for a given mulipolar degree.

Return the dimesion of the T-matrix given the maximum value of l. This is the inverse of defaultlmax(). A value of lmax=-1 is allowed.

Parameters:
  • lmax (int) – Maximum multipolar degree

  • nmax (int, optional) – Number of scatterers. Defaults to 1

Returns:

int