disk_harmonic

hcipy.mode_basis.disk_harmonic(n, m, D=1, bc='dirichlet', grid=None)[source]

Create a disk harmonic.

Parameters:
nint

Radial order

mint

Azimuthal order

Dscalar

The diameter of the pupil.

bcstring

The boundary conditions to use. This can be either ‘dirichlet’, or ‘neumann’ for a Dirichlet or Neumann boundary condition respectively.

gridGrid

The grid on which to evaluate the function.

Returns:
Field

The disk harmonic function evaluated on grid.

Raises:
ValueError

If the boundary condition is not recognized.

Notes

The mode is normalized to unit RMS over the disk, that is, \(\frac{1}{\pi (D/2)^2} \int_{\mathrm{disk}} z^2 \, \mathrm{d}A = 1\), where the integral is approximated using the grid area weights.