The depth formula
Each well's depth is its quadratic residue times a fixed step. The step is the wavelength at your design frequency divided by twice the well count:
d_n = s_n · λ₀ / (2N), where λ₀ = c / f₀ and s_n = n² mod NA worked example
Take a QRD with N = 7 wells at a design frequency of 500 Hz. The wavelength is about 686 mm, so the depth step is 686 / 14 ≈ 49 mm. The residues `n² mod 7` for n = 0…6 are 0, 1, 4, 2, 2, 4, 1 — giving depths of 0, 49, 196, 98, 98, 196, and 49 mm. The deepest well is about 196 mm, which is what your stock has to accommodate.
Working backwards from your stock
More often the constraint runs the other way: you have material of a certain thickness and want to know how low the panel will reach. The deepest well can't exceed your stock, so a shallower panel simply has a higher design frequency. Fresnelcut solves this for you — set the maximum depth and it reports the achievable f₀.
f₀ = s_max · c / (2N · d_max)