Fundamentals / Physics / Electrodynamics / Electrostatic field theory and measurement

Rectangular geometries, orthogonality and sources that drive individual modes

Fourier modes are solutions selected by their electrode walls. On a rectangle they turn a boundary-voltage problem into independent vertical equations. When a charge fills the rectangle the same eigenfunctions give a different denominator and a different physical response.

Determine which sign of a separation constant can fit the walls

Take a vacuum rectangle \(0<x<a,\ 0<y<b\), invariant along \(z\). Ground the left, right and bottom edges and impose \(V(x,b)=f(x)\) at the top. If the boundary data disagree at a corner, the continuum problem can have large edge fields; we first choose smooth \(f\) vanishing at both endpoints. In the charge-free interior, a product solution \(X(x)Y(y)\) gives \(X''/X=-Y''/Y\), equal to a constant wherever the product is nonzero. If \(X''=k^2X\), the only combination of hyperbolic functions zero at both \(x=0,a\) is zero. The same is true for the linear case \(k=0\). Thus \(X''=-k^2X\). The left boundary picks a sine and the right boundary enforces \(k=n\pi/a,\ n=1,2,\dots\).

Then \(Y''=k^2Y\), with the bottom condition choosing \(\sinh ky\). Choosing its top value as unity gives the transfer function \(Y_n=\sinh(k_n y)/\sinh(k_n b)\). Summing products,

\[V(x,y)=\sum_{n\ge1} f_n\sin(k_nx)\frac{\sinh(k_n y)}{\sinh(k_n b)},\]
\[f_n=\frac2a\int_0^a f(x)\sin(k_nx)\,dx .\]

These coefficients follow by multiplying the top boundary by \(\sin(k_mx)\) and integrating. For \(n\ne m\) the product reduces to cosines with integer half-wave multiples and integral zero; for equal indices its integral is \(a/2\). This orthogonality incorporates the edge boundary values. Periodically repeating a voltage function without regard to its endpoint conditions can give cosine or constant terms that violate the grounded side walls.

Track how geometry filters electrode detail

A mode's vertical derivative is \(k_n\cosh(k_n y)/\sinh(k_nb)\), so the field normal to the electrode weights high modes differently from potential. At the top the magnitude multiplier is \(k_n\coth(k_nb)\). For a half-space, high-frequency field content can be large very near a patterned electrode even if it disappears rapidly a short distance inside. For large \(k_nb\), direct numerical evaluation of hyperbolic sines may overflow. The algebraically equivalent ratio \(e^{-k_n(b-y)}[1-e^{-2k_n y}]/[1-e^{-2k_n b}]\) stays bounded; for very small arguments evaluate \(1-e^{-t}\) with a numerically stable exponential-difference routine.

Suppose the rectangle is square and the electrode has \(f=4\sin(\pi x/a)-2\sin(3\pi x/a)\) V. At mid-height \(y=a/2\), the fundamental transfer factor is \(1/[2\cosh(\pi/2)]=0.1993\), while the third is

\[1/[2\cosh(3\pi/2)]=0.00898.\]

At \(x=a/2\) the first sine is 1 and the third is \(-1\), so the potential is \(0.815\) V approximately, compared with the 6 V drive at the same \(x\) on the electrode. Taking the simple arithmetic average of the top and bottom voltages at that \(x\) would predict 3 V and miss leakage to the grounded side walls.

If a second boundary carries a pattern, superpose the source-free solution produced by it with the other boundaries grounded. For example a nonzero bottom voltage pattern uses \(\sinh[k_n(b-y)]/\sinh(k_nb)\). This works because the field equation and boundary conditions in fixed-voltage form are linear. A floating conductor imposes a different constraint coupling many modal coefficients, not the prescription of one extra arbitrary voltage profile.

Integrate a discontinuous electrode and distinguish two kinds of convergence

Let a short strip centred on the top boundary span \(a/2-w/2<x<a/2+w/2\) with voltage \(V_d\), the remaining top grounded. Integrating the sine over that interval gives

\[f_n=4V_d\sin(n\pi/2)\sin(n\pi w/(2a))/(n\pi).\]

Even modes vanish by mirror symmetry. Individual allowed coefficients decrease as \(1/n\) at most because the boundary has jumps. On the boundary partial sums overshoot close to a jump. Adding terms narrows that region rather than removing its limiting fractional overshoot. At fixed interior distance the exponential transfer renders the series much better behaved.

For \(w=a/3\), the first and third coefficients are \(2V_d/\pi\) and \(-4V_d/(3\pi)\). Along the centreline both contribute positively because their sine factors have opposite signs. A finite-width electrode cannot be captured exactly with a single spatial mode even when its interior signal far away is mainly fundamental. Recovering the electrode width from a distant scan by dividing attenuated high modes by their transfer factors will amplify measurement errors. Forward propagation and inverse reconstruction need different treatments of frequency content.

Let the volume rather than the electrode excite the modes

Ground all four edges and embed a known charge density \(\rho(x,y)\). Choose double sines \(\sin(m\pi x/a)\sin(n\pi y/b)\). They already vanish on all edges and are eigenfunctions of the negative Laplacian with eigenvalues \(\lambda_{mn}=(m\pi/a)^2+(n\pi/b)^2\). Project the charge using \(\rho_{mn}=4(ab)^{-1}\int_0^a\int_0^b\rho\sin(m\pi x/a)\sin(n\pi y/b)\,dy\,dx\). Applying Poisson's equation coefficient by coefficient yields

\[V_{mn}=\frac{\rho_{mn}}{\epsilon_0\lambda_{mn}} .\]

High spatial frequencies of a volume charge produce weaker potentials by an inverse-square spectral factor. The corresponding normal field on a boundary involves an additional derivative. This polynomial filtering differs from the exponential decay of a boundary pattern measured away from its source. Both follow from the same PDE but answer different experiments.

For a manufactured test choose a square of side 10 mm with \(\rho=\rho_0\sin(\pi x/a)\sin(2\pi y/a)\). The voltage magnitude peaks at \(\rho_0a^2/(5\pi^2\epsilon_0)\). With \(\rho_0=1.0\ \mu{\rm C/m^3}\) it is \(0.229\) V. The total charge integrates to zero, since the second sine is odd about the mid-height. The field and stored energy are nonzero. At \(x=a/2,y=a/4\) the voltage is a positive maximum, consistent with a positive local source. At \(x=a/2,y=3a/4\) the same amplitude is negative.

Use an exact discrete eigenvalue for a rigorous code check

On a uniform square grid of spacing \(h=a/N\), replace \(-\partial_x^2\) by its centred three-point formula. Acting on the sampled sine gives eigenvalue \(4h^{-2}\sin^2(m\pi h/(2a))\). The two-dimensional sum of the corresponding factors is therefore the exact discrete eigenvalue for this interior mode with zero edges. A computed solution can be compared first to \(\rho_{mn}/(\epsilon_0\lambda_{mn,h})\), which tests the solver algebra, and then to the continuous \(\rho_{mn}/(\epsilon_0\lambda_{mn})\), which tests spatial discretisation. Reducing the iterative residual alone cannot remove the difference between these two physical amplitudes.

At \(N=10\), modes \((1,2)\) have \(a^2\lambda_h=4N^2[\sin^2(\pi/20)+\sin^2(\pi/10)]=47.99\), versus \(5\pi^2=49.35\). The discrete amplitude is about 2.8% high despite solving its linear equations exactly. For fixed mode under grid halving, expansion of the sine gives an eigenvalue error proportional to \(h^2\). At wavelengths only a few cells wide this expansion is unreliable. Try a sequence of grids with the same physical mode and compare actual amplitude ratios. Holding instead a fixed number of cells per wavelength while changing the physical wavelength tests a different convergence question.

Two transverse dimensions select a different attenuation length

Extend the rectangle into a rectangular conducting shaft \(0<x<a,\ 0<z<c\), running to \(y>0\). Ground all four side walls, require bounded potential far down the shaft and prescribe a voltage on its mouth at \(y=0\). Separation in the cross section now gives products \(\sin(m\pi x/a)\sin(n\pi z/c)\) with both \(m,n\ge1\). The axial equation is

\[Y''=[(m\pi/a)^2+(n\pi/c)^2]Y.\]

Each boundary coefficient therefore propagates as \(e^{-\gamma_{mn}y}\),

\[\gamma_{mn}=\pi\sqrt{m^2/a^2+n^2/c^2}.\]

A narrow second dimension suppresses penetration even when the first dimension is very broad. Approximating the shaft by a two-dimensional strip removes an entire contribution to the decay constant.

If the aperture is driven uniformly at \(V_0\), projecting gives \(f_{mn}=16V_0/(\pi^2 mn)\) for odd \(m,n\), zero otherwise. The ideal mouth voltage jumps at the grounded rim. Deep inside, only the lowest odd pair survives and its amplitude exceeds \(V_0\) before the exponential is applied; the higher terms restore the actual boundary value at \(y=0\). With \(a=20\) mm and \(c=10\) mm the slowest decay length is

\[1/\gamma_{11}=2.85\,\mathrm{mm}.\]

A two-dimensional strip ignoring the 10 mm side would instead give

\[a/\pi=6.37\,\mathrm{mm}.\]

After 10 mm penetration the first-mode attenuation factors are 0.0298 and 0.208, almost a factor of seven apart.

A simple numerical test samples the centreline voltage at several heights and calculates adjacent log slopes. Close to the mouth many odd modes matter, while deep inside the ratio between two positions \(\Delta y\) apart approaches \(e^{-\gamma_{11}\Delta y}\). Compare with a second geometry that swaps \(a,c\). The two lowest-order decay lengths must agree because the eigenvalue is symmetric in the two dimensions; an implementation that uses only the nominal 'width' may fail this check. A second observation path away from the centre can sense different mode weights, even though every mode's exponential is unchanged.

Suppose the mouth instead has opposite voltages on the left and right halves, antisymmetric about \(x=a/2\). Its coefficients vanish for odd \(m\), so the \((1,1)\) mode is absent by symmetry. The leading allowed mode can be \((2,1)\), shortening the decay length. A centreline probe would then read zero everywhere by antisymmetry and could not fit any length at all. Move the probe to \(x=a/4\) while keeping it at mid-height of the cross section. This illustrates how an excited spectrum, a geometry's complete set of eigenvalues, and an instrument's observed spectrum may differ.

Why the energy of an ideal electrode voltage step depends on edge resolution

Return to a two-dimensional strip or half-plane. To focus on a single boundary Fourier mode take \(V=A\sin(kx)e^{-ky}\) in \(0<x<a,\ y>0\), with \(ka=n\pi\). Its gradients in \(x\) and \(y\) have equal prefactor \(kA e^{-ky}\). The sum of their squared sine and cosine factors is one, so the energy per perpendicular length is

\[U'_n=\epsilon a k A^2/4.\]

For many orthogonal sine modes cross terms vanish after integration. Thus the stored field energy involves the weighted sum \(\sum_n n|f_n|^2\), while the mean-square boundary voltage itself involves simply \(\sum_n|f_n|^2\). The extra factor of \(n\) comes from the steep near-electrode field of short-wavelength structure.

For a finite electrode patch abruptly stepping from 0 to \(V_d\), the allowed Fourier amplitudes typically decay as \(1/n\) along nonzero subsequences. The voltage series converges in mean square, but its energy sum can contain a logarithmically diverging \(\sum 1/n\). This is the local singularity of the zero-width voltage discontinuity. It does not prevent a well-defined voltage at any interior distance, but it prevents assigning a finite total energy or a cut-off-independent peak electric field to that exact sharp-edge idealisation. Mesh refinement can produce progressively higher energy estimates even as interior voltage curves appear perfectly stable.

There is a local way to see the same conclusion without a Fourier series. Consider a small half-disk of vacuum around a junction where an otherwise flat boundary jumps between voltages zero and \(V_d\). In polar coordinates about the junction, the leading harmonic solution depends only on angle: \(V=V_d\phi/\pi\) with angle origin chosen on the grounded side. Its field magnitude is \(V_d/(\pi r)\). Integrating \(\epsilon E^2/2\) over a half-annulus of inner radius \(\delta\) and outer radius \(R\) gives

\[U'=\epsilon V_d^2\ln(R/\delta)/(2\pi).\]

Halving the microscopic length changes this single-edge contribution by \(\epsilon V_d^2\ln 2/(2\pi)\). The independence of \(R\) in that change is a practical test of the logarithmic asymptotic regime.

A finite insulation seam between real electrodes supplies a different boundary problem. For a deliberately smoothed transition of width \(\delta\), the spectrum falls faster above \(k\sim1/\delta\); the local singularity is cut off. One can compare a family of specified physical seam widths while separately refining each numerical grid until it resolves its own seam. Shrinking seam width along with mesh spacing instead changes the physical geometry at each refinement. Report the interior voltage, near-edge energy within a named observation region and the physical seam model separately. Each can converge at a different rate even in a technically correct Laplace solver.

A discrete residual can fall quickly while the wrong spatial scale remains

The separated sine basis makes it possible to analyse the convergence of a concrete numerical Laplace solver as well as the continuum solution. On a square grid with equal spacing, the five-point discretisation in a charge-free cell says its voltage equals the mean of its four neighbours. A Jacobi sweep sets all new values to this mean of the old grid, preserving fixed boundary values meanwhile. Subtract the exact discrete solution from the current approximation: the error evolves by the same averaging step with zero boundary values, independently of the inhomogeneous source that generated the original solution.

Insert an error pattern \(e_{ij}=\sin(m\pi i/N)\sin(n\pi j/N)\). Elementary sine addition on the two \(x\)-neighbours produces \(2\cos(m\pi/N)e_{ij}\); the \(y\)-neighbours produce the analogous factor. Hence one sweep multiplies this error mode by \(\mu_{mn}=[\cos(m\pi/N)+\cos(n\pi/N)]/2\). For the longest \((1,1)\) mode, \(\mu\simeq1-\pi^2/(2N^2)\). Its amplitude takes roughly \(2N^2/\pi^2\) sweeps to drop by \(1/e\). Doubling resolution therefore makes this relaxation about four times slower per physical longest mode even before counting the four times as many cells per sweep.

Choose \(N=64\). Then \(\mu_{11}=0.99880\). After 100 sweeps about 88.6% of that initial smooth error still remains, although the update per cell has become small. At the opposite corner of the spectrum \((N-1,N-1)\) gives nearly \(-1\), so a checkerboard mode also decays slowly while changing sign on successive sweeps. Weighted Jacobi replaces an old value by \((1-\omega)\) times itself plus \(\omega\) times the neighbour mean. At \(\omega=2/3\) that checkerboard amplification becomes approximately \(-1/3\), removing short-wavelength oscillations quickly. The long smooth mode still has amplification near one. An attractive smooth colour map after a few sweeps can thus be misleading.

A multigrid correction exploits these distinct errors. First relax high-frequency errors on the fine grid. Compute the residual of the original discrete equation and restrict it to a coarser grid. A long fine-grid mode becomes easier to change there. Solve the coarse error equation, prolong its correction back to the fine grid, and smooth again. The correction must solve for error with the appropriate homogeneous boundary constraints, not repeat the original boundary excitation a second time. The residual and prolongation should respect the same physical units and grid volumes as the original source. Otherwise a visually plausible coarse correction can inject net charge at each level.

For a manufactured check initialise the fine-grid error to a known sine mode on top of an exact discrete solution. After one weighted sweep measure the inner product of the new error with the original mode and divide by its squared norm. The observed ratio must equal \(1-\omega+\omega\mu_{mn}\) before roundoff or boundary effects. Repeat with \((1,1)\), a mixed \((1,N-1)\) mode, and the checkerboard-like \((N-1,N-1)\) mode. This directly tests the implementation's indexing, old-versus-new updates and boundary handling; it does not require the continuum equation to be discretisation exact.

Finally compare iterative and truncation errors in measurable volts. For a discrete mode, if the algebraic residual coefficient is \(r_{mn}\) in the form \(-\nabla_h^2 e=r\), its error coefficient is \(r_{mn}/\lambda_{mn,h}\). The same residual amplitude in a long-wavelength mode produces a larger voltage error than in a high-frequency mode. An absolute solver tolerance with no physical scaling is therefore insufficient to certify a voltage reading. Stop iterating when the solver error in the actual observable is small compared with discretisation and experimental uncertainty, then refine the spatial representation separately.

Resolve a short-wavelength electrode pattern

Increase the transverse mode number. Predict how far the pattern reaches into the strip before inspecting the voltage profile.

Build a resistor-network analogue of the rectangular boundary problem

Use Kirchhoff measurements to check a field solver

A square lattice of nodes is connected by identical resistors \(R\) between nearest neighbours. Outer nodes are held at prescribed voltages. Derive the interior equation from charge conservation at a node. Which measured electrical quantity can test a normal field at the boundary? What changes on an anisotropic grid?

Derive and check the result

For a steady interior node with no supplied current, the sum of currents \((V_{ij}-V_{\rm neighbour})/R\) is zero. Rearrangement gives the same mean-of-four equation as the square-grid discrete Laplacian. Thus the resistor array reproduces the discrete Dirichlet solution for the same pinned boundary voltages. Its Joule dissipation \(\sum_{\rm edges}(V_i-V_j)^2/R\) is stationary against variations of the unfixed voltages, giving the same equations a second way. The numerical voltage maps can be compared node by node; the physical power and the electrostatic field energy are different dimensional quantities even though their quadratic forms are analogous.

To estimate the normal field near a flat boundary, measure the signed current from a boundary node along the edge connecting it to its nearest interior neighbour. This equals the observed voltage difference divided by \(R\); multiplying by \(R/h\) converts it to the corresponding one-sided field magnitude in volts per metre. At sharp corners the one-sided difference has large discretisation error and the continuum physical field may be singular. Summing all currents supplied to a terminal edge gives a more robust integrated flux analogue. Account for any links between nodes at different prescribed boundary voltages if those links contribute separate current to the laboratory power supplies.

For horizontal spacing \(h_x\) and vertical spacing \(h_y\), replacing every resistor by the same value no longer matches the isotropic Cartesian Laplacian. A finite-volume cell requires conductance proportional to face length divided by edge length: horizontal links have conductance proportional to \(h_y/h_x\), vertical links to \(h_x/h_y\). Their ratio is \(h_y^2/h_x^2\). This restores a discrete conservation law with the correct physical area factors. A measured profile agreeing exactly with an equal-resistor lattice on a stretched geometry could therefore validate the wrong continuum material or geometry unless those weights were checked first.

Tutorial · design a boundary measurement and a solver benchmark

Identify a forbidden mode

A symmetric positive top electrode has its centre at \(x=a/2\). A numerical sine transform reports a large \(n=2\) coefficient. Is it evidence of physical high-frequency content? Which controlled change could verify the sign of the defect?

Work through the solution

Mirror substitution \(x\mapsto a-x\) preserves the boundary voltage but changes \(\sin(2\pi x/a)\) to its negative. Its exact projection is zero. Sharp electrode edges may require many odd modes; they cannot explain an even coefficient under exact symmetry. Check coordinate origin, edge alignment on the grid and measurement offsets. Shift the actual patterned patch by a small amount to one side, then the same amount to the opposite side. A genuine even coefficient changes sign under these mirrored displacements, while odd-mode amplitudes agree. The response at interior height has the same parity because the transfer factor depends on mode number alone.

Measure where electrode charge resides

For a single sinusoidal top voltage \(V_d\sin(\pi x/a)\), derive the total free charge per perpendicular length on the upper electrode face. Why does it depend on the bottom distance even though the top voltage profile is the same?

Work through the solution

At the upper metal the normal from metal into the dielectric is \(-\hat{\mathbf y}\). With \(E_y=-\partial_y V\), the metal charge density is

\[+\epsilon_0\partial_yV=\epsilon_0kV_d\coth(kb)\sin(kx),\]
\[k=\pi/a.\]

Integrating along \(0<x<a\) yields \(2\epsilon_0V_d\coth(\pi b/a)\) per length. Bringing the bottom closer increases \(\coth(kb)\). For \(kb\ll1\) the expression tends to \(\epsilon_0 b^{-1}\int_0^a f(x)dx\), the local parallel-plate limit. A segmented electrode supplies a nonuniform fixed profile; the result counts its integrated face charge and assumes the ideal voltage boundary remains prescribed in each segment.

Further reading