The modes of boxes and round domains

A box or a round domain with boundary conditions is solved in the modes of each axis with its conditions: see boxes and round domains. This page explains how an eigenproblem is answered from those modes, and which potentials it may hold.

Asking for the modes

The modes are also what an eigenproblem asks for: \(-\sum_i a_i\,\partial_i^2 u + c\,u = E\,u\) on a box, or \(-a\nabla^2 u + c\,u = E\,u\) on a round domain, with a condition that gives zero on each face. The equation is read as the one in time whose modes these are, as on a shape, and nothing new is computed: the eigenvalues of all products of modes are sorted, and the lowest are returned with their functions.

Along an angle, and along a periodic axis, the modes are complex waves, \(e^{im\varphi}\) and \(e^{-im\varphi}\) with one eigenvalue. Their real and imaginary parts are modes as well, and those are returned. Within one eigenvalue the functions are made orthogonal to each other, each with the integral of its square over the domain equal to one and its largest value positive.

A potential may stand beside the derivatives where the modes stay products. Between walls that is a sum of functions of the single coordinates, \(V = \sum_i V_i(x_i)\): each \(V_i\) goes on the diagonal of the matrix of its axis, at the inner points. In a disk, a ring, a ball or a shell it is a function of the radius, on the diagonal of the radial matrix of every wave or harmonic. Whether a potential is such a sum is checked at a few points: it must equal the sum of its values along the lines through one point, less the value there. Along a periodic axis the modes are waves, which a potential would mix, and it is refused there.

A potential with a singularity at the centre of a ball, such as \(-1/r\), is no difficulty: no point of the radius lies at the centre, and the states are smooth functions of the radius, \(e^{-r}\) for the ground state of hydrogen. Nor is one with a singularity on a wall where the mode is zero, such as \(2/x^2\): the operator is not asked for on a face.

The planner takes the coarsest grid on which the spectrum of every mode that is asked for has fallen to \(10^{-10}\).

Domain

Modes

Grid

Error of the eigenvalues

Time

A string, held at both ends

4

48

\(8\cdot10^{-13}\)

0.01 s

A plate of the sides 1 and 2, held

6

\(24\times48\)

\(4\cdot10^{-13}\)

0.004 s

The unit cube, held

10

\(32^3\)

\(10^{-12}\)

0.04 s

The unit cube, held

100

\(48^3\)

1.6 s

The unit disk, held

6

\(24\times48\)

\(3\cdot10^{-13}\)

0.004 s

The unit ball, held

9

\(24\times24\times48\)

\(6\cdot10^{-13}\)

0.03 s

A can of the radius 1 and the height 2, held

4

\(24\times48\times48\)

\(3\cdot10^{-13}\)

0.03 s

Hydrogen in a ball of the radius 40

5

\(64\times64\times128\)

\(5\cdot10^{-13}\)

0.8 s

Hydrogen in the plane, in a disk of the radius 30

4

\(64\times128\)

\(7\cdot10^{-14}\)

0.06 s

The oscillator between walls at \(\pm8\), in the plane

6

\(128^2\)

\(2\cdot10^{-14}\)

0.06 s

Only the lowest modes of a grid are modes of the domain. The highest ones belong to the grid: of the modes along an axis with \(n\) points, about the lower half are accurate. The planner sees that in their spectra. A plan of your own that asks for more gets them, and the diagnostic solution_tail shows that the grid does not resolve them.

Limits

  • Coefficients are constant here, but for a potential that leaves the modes separate. Every other eigenproblem between walls is answered by an iteration on the stationary solve.

See also the limits of boxes and of round domains.