Fundamentals / Numerical mathematics / Numerical partial differential equations

Numerical partial differential equations · Advanced study

Read the connected derivations and worked problems in sequence, or open each chapter in its home course.

  1. Boundary data, uniqueness and singular sources

    Derive the continuous problem before assembling a discrete row. Test what happens to uniqueness, source flux and interface voltage under a change of boundary data.

  2. Heat, momentum and wave transport

    Test the same spatial method on diffusion, a propagating pulse and an elastic mode. Compare dissipation, dispersion and boundary residuals on a common footing.

Boundary data, uniqueness and singular sources

Derive the continuous problem before assembling a discrete row. Test what happens to uniqueness, source flux and interface voltage under a change of boundary data.

  1. Vector calculus through flux, circulation and singular sources
  2. When do boundary measurements determine a unique electrostatic field?
  3. Green functions, the Poisson kernel and what a small electrode can influence
  4. Rectangular geometries, orthogonality and sources that drive individual modes
  5. Cylindrical geometry, coaxial boundaries and Bessel spectra
  6. A converged field solver can still give the wrong voltage
  7. Measure the capacitance of a continuously graded dielectric
  8. Is a computed screening layer resolved?
  9. What can a mesh measure about a point charge?

Vector calculus through flux, circulation and singular sources

A closed-surface flux and a closed-path circulation answer different experimental questions. Starting from small physical collecting surfaces shows why the associated differential operators look different in Cartesian, cylindrical and spherical coordinates.

How a short displacement detects a derivative

A voltmeter measures a difference between endpoints. If a small displacement \(d\boldsymbol\ell\) changes a smooth potential by \(dV\), the gradient is the unique vector satisfying \(dV=\nabla V\cdot d\boldsymbol\ell\) for every displacement. Its component along an arbitrary unit vector is the slope in that direction. Its largest rate of increase occurs when the displacement is parallel to the gradient. A unit step in a coordinate label does not necessarily mean a unit physical displacement. This distinction is the source of the metric factors in curvilinear coordinates.

At position \((s,\phi,z)\) in cylindrical coordinates, the three physical components of displacement are \(ds,s\,d\phi,dz\). Equating the general dot product to \(\partial_s V\,ds+\partial_\phi V\,d\phi+\partial_z V\,dz\) gives

\[\nabla V=\hat{\mathbf s}\partial_sV+\hat{\boldsymbol\phi}s^{-1}\partial_\phi V+\hat{\mathbf z}\partial_zV .\]

The azimuthal factor converts a voltage change per radian into a voltage change per metre around a circle. For \(V=V_0(s/a)\cos\phi\) the radial and azimuthal components of \(-\nabla V\) are \(-V_0\cos\phi/a\) and \(+V_0\sin\phi/a\). Together they equal the constant Cartesian field \(-V_0\hat{\mathbf x}/a\), since \(s\cos\phi=x\). The apparent angular variation comes only from the rotating local unit vectors. Leaving out \(1/s\) would predict a nonuniform field and components with incompatible dimensions.

Count what leaves the sides of a shrinking cell

Consider a vector \(\mathbf F\), perhaps electric displacement measured in C/m². Define its divergence at a smooth point as the limiting outward flux per cell volume. In a Cartesian box \(\Delta x\Delta y\Delta z\), the opposing \(x\) faces give \([F_x(x+\Delta x)-F_x(x)]\Delta y\Delta z\). Dividing by volume and adding the other pairs gives \(\partial_xF_x+\partial_yF_y+\partial_zF_z\). The signed flux measures the local excess of outflow over inflow. A field can be large and uniform while its divergence is zero.

Repeat the count in a thin cylindrical wedge between \(s\) and \(s+ds\), angular width \(d\phi\), height \(dz\). The outer curved face has larger area than the inner one. Their net flux is \(\partial_s(sF_s)ds\,d\phi\,dz\). The two cuts at fixed angle each have physical area \(ds\,dz\) and differ by \(\partial_\phi F_\phi d\phi\). The axial faces contribute \(\partial_zF_z\,s\,ds\,d\phi\,dz\). Division by the wedge volume gives

\[\nabla\cdot\mathbf F=\frac1s\partial_s(sF_s)+\frac1s\partial_\phi F_\phi+\partial_z F_z .\]

A radial flow \(F_s=A/s\) has zero divergence at positive \(s\) because the same flux crosses every cylindrical side of fixed height. A constant radial magnitude instead has divergence \(A/s\): larger cylinders carry greater total flux and therefore enclose additional source. Specifying that a magnitude is constant says nothing about the divergence of its direction field.

In a spherical sector the radial areas grow as \(r^2\). For a spherically symmetric radial field \(F_r(r)\), the same count gives \(r^{-2}d(r^2F_r)/dr\). A sphere of radius \(r\) then has flux \(4\pi r^2F_r(r)\). Choosing \(F_r=Ar\) produces \(3A\) everywhere instead of \(A\); the two missing contributions in a one-dimensional derivative account for growth of transverse area. For a uniform charge density \(\rho\), setting \(3A=\rho/\epsilon_0\) immediately reconstructs the interior electrostatic field of a sphere.

Inspect a small loop before asserting that a potential exists

The component of curl normal to a surface is the limiting circulation of \(\mathbf F\) around an oriented small loop divided by its area. In an \(xy\) rectangle the upper side is traversed oppositely to the lower one. Opposite \(x\)-directed sides leave \(-\partial_yF_x\); opposite \(y\)-directed sides leave \(+\partial_xF_y\). Thus

\[(\nabla\times\mathbf F)_z=\partial_xF_y-\partial_yF_x.\]

For a planar polar loop the curved segments have different lengths, giving \((\nabla\times\mathbf F)_z=s^{-1}[\partial_s(sF_\phi)-\partial_\phi F_s]\). Curl and divergence use different faces and signs even when their cylindrical formulas share a factor \(1/s\).

Join many neighboring loops. Circulations on common edges cancel in pairs, leaving only the outer boundary; the summed area integrals of the curl give Stokes's theorem. A similar cancellation of internal face fluxes gives the divergence theorem. These are physical bookkeeping identities, and they motivate discretisations that attach oriented fluxes to shared faces and voltages to shared edges. Assigning two independent approximations to one shared face can spoil exact cancellation in a computed conservation budget.

Take \(\mathbf F=A\hat{\boldsymbol\phi}/s\) outside a thin excluded cylinder. Its ordinary curl is zero there. Any circle about the cylinder has circulation \(2\pi A\). A disk spanning this circle would pass through the excluded region, so a surface lying entirely inside the stated domain cannot supply the usual zero-curl conclusion. Locally \(\mathbf F=\nabla(A\phi)\) on any small patch avoiding a branch cut, while the putative potential changes by \(2\pi A\) after a full turn. This example explains the role of domain topology. A genuine static electrostatic source in ordinary free space has a globally consistent potential; a changing flux through an excluded region can instead generate precisely such an exterior circulation.

Measure curvature through neighboring voltages

Taking the divergence of a gradient defines \(\nabla^2V\). A Taylor expansion at a point gives

\[[V(x+h)-2V(x)+V(x-h)]/h^2=\partial_x^2V+O(h^2).\]

Adding the three Cartesian expressions relates the six neighbouring voltage readings to the local charge density. Equivalently, averaging a potential over directions at radius \(h\) removes all terms odd in the displacement. The angular mean of \(n_i n_j\) is \(\delta_{ij}/3\), so for smooth \(V\)

\[\langle V(\mathbf x+h\mathbf n)\rangle_\Omega=V(\mathbf x)+\frac{h^2}{6}\nabla^2V(\mathbf x)+O(h^4).\]

In a region with positive charge, Poisson's equation makes the spherical average smaller than the centre value. An uncharged saddle can have strong curvature along each of two axes that cancels in the sum. A local maximum along a single measurement line therefore does not prove that an interior source exists. To make such an inference one needs curvature in every independent spatial direction or independent symmetry information.

Near a boundary or dielectric interface this smooth Taylor analysis may break down. Enforce the integral flux balance on a cell straddling the interface instead. In media of different permittivity the normal derivative of \(V\) can jump even where there is no free charge. The physical differential operator is then \(\nabla\cdot(\epsilon\nabla V)\); simply inserting a pointwise averaged permittivity in front of a smooth Laplacian may erase the correct jump condition.

Use a test volume to give singular expressions meaning

Outside the origin the divergence of \(\hat{\mathbf r}/r^2\) is zero, yet every sphere centred there has flux \(4\pi\). To characterize its source measure the field against a smooth test function \(f\) of compact support. Excise a ball of radius \(\eta\), integrate by parts in the remaining exterior and note that its inward-facing inner boundary normal is \(-\hat{\mathbf r}\). The zero bulk divergence eliminates the interior term, leaving \(-\int(\hat{\mathbf r}/r^2)\cdot\nabla f\,dV\to4\pi f(0)\) as the ball shrinks. This is the defining action of the three-dimensional delta distribution:

\[\nabla\cdot(\hat{\mathbf r}/r^2)=4\pi\delta^3(\mathbf r),\]
\[\nabla^2(1/r)=-4\pi\delta^3(\mathbf r).\]

The factors and signs follow from an ordinary finite flux calculation. A delta distribution has no finite peak height to compare with a mesh value. A convergent field computation should reproduce its integral and its action on smooth functions. In spherical coordinates a radially concentrated charge can be represented with a radial delta only when the \(4\pi r^2\) integration weight and the convention for the endpoint are treated consistently. It is often safer to specify the enclosed charge directly.

For a finite regularisation take \(V_a=q/(4\pi\epsilon_0\sqrt{r^2+a^2})\). Differentiation gives

\[E_r=q r/[4\pi\epsilon_0(r^2+a^2)^{3/2}].\]

A spherical flux measurement encloses \(Q/q=r^3/(r^2+a^2)^{3/2}\). Its derivative divided by \(4\pi r^2\) gives

\[\rho_a=3qa^2/[4\pi(r^2+a^2)^{5/2}].\]

For every \(a>0\) the density is smooth; its peak scales as \(a^{-3}\), preserving a finite total charge. For fixed \(r>0\), \(Q/q\to1\) as \(a\to0\). Shrinking the collecting radius and the source core simultaneously at fixed \(r/a\) instead retains a nontrivial fraction. The resolution of the probe is part of the limiting experiment.

A sheet of dipoles produces a voltage jump without a net sheet charge

Replace an ideal neutral polarised layer by two parallel charge sheets, one at \(z=-d/2\) with density \(-\sigma\), another at \(z=+d/2\) with density \(+\sigma\). Assume both planes extend far beyond the detectors so their fields can be treated as infinite-plane fields. The field outside cancels. Between them it points from positive to negative,

\[E_z=-\sigma/\epsilon_0.\]

A voltmeter moved from below to above the pair rises by \(+\sigma d/\epsilon_0\). The result can stay finite when \(d\) shrinks provided that the dipole moment per area \(p_s=\sigma d\) is fixed. The fields away from the layer then converge to zero on both sides while the voltage difference persists. This model is useful for a surface dipole layer, for example when positive and negative charge distributions are displaced by molecular-scale distances.

It is essential not to infer the voltage jump from the net charge enclosed in a pillbox, since the net is zero for every \(d\). Write the signed density as \(\rho_d=\sigma[\delta(z-d/2)-\delta(z+d/2)]\). For any smooth test voltage \(f(z)\), integration gives \(\sigma[f(d/2)-f(-d/2)]\to p_sf'(0)\). The distribution with action \(f\mapsto p_s f'(0)\) is \(-p_s\delta'(z)\). In one dimension Poisson's equation is \(-\epsilon_0 V''=\rho\), so a solution is

\[V=(p_s/\epsilon_0)H(z)+{\rm constant},\]

where \(H\) is a step. Its derivative is a delta, its second derivative a delta derivative. Reversing the layer orientation reverses both the jump and the sign of this source distribution.

A conventional monopole sheet instead has \(\rho=\sigma_f\delta(z)\). Its potential is continuous and its normal derivative jumps. The two types of ideal source thus leave different signatures in electrode boundary models. For a voltage jump of 20 mV, the required \(p_s=\epsilon_0(0.020)=1.77\times10^{-13}\) C/m in vacuum. Spreading it across 1.0 nm requires \(\sigma=1.77\times10^{-4}\) C/m² and an internal field of 20 MV/m in that thin-layer model. The large internal field is consistent with a small voltage step because it acts only over one nanometre. At fixed \(p_s\) the field energy per area grows as \(p_s^2/(2\epsilon_0d)\). Thus taking a perfect zero-thickness dipole layer gives useful exterior fields and voltage jumps but not a finite internal energy. A physical model of finite layer thickness is necessary for that observable.

Moving a numerical grid across the sheet illustrates how to recognise the two cases. If its potential samples resolve a continuous cusp, integrating the inferred charge across one symmetric layer gives finite sheet charge. If instead the voltage contains a step, two neighbouring density bins can acquire large opposite entries whose sum tends to zero. Their first moment stays finite. A useful verification uses both \(\int \rho\,dz\) and \(\int z\rho\,dz\) and compares potential readings on each side. A code that preserves charge but smooths a dipole step into an incorrect zero voltage would pass the first test but fail the others.

An explicit flux audit on a nonuniform mesh

To separate geometrical signs from a particular physical equation, take a rectangular box \(0<x<L_x,\ 0<y<L_y,\ 0<z<L_z\) and an exactly known displacement \(\mathbf D=Axy\,\hat{\mathbf x}+B y^2\,\hat{\mathbf y}+Cz\,\hat{\mathbf z}\). The constants have units making each term C/m². Its divergence is \((A+2B)y+C\). Integrating over the volume gives total free charge \(L_x L_z[(A+2B)L_y^2/2+C L_y]\). At \(x=0,y=0,z=0\) the relevant normal components vanish. At \(x=L_x\), integrating over the face gives \(A L_x L_z L_y^2/2\). The \(y=L_y\) face gives \(B L_x L_zL_y^2\), and the top gives \(C L_xL_yL_z\). Addition reproduces the volume calculation, including its factors of two.

Choose numerical constants by specifying \(L_x=L_y=L_z=1\) m, \(A=2\) nC/m⁴, \(B=3\) nC/m⁴ and \(C=4\) nC/m³. The three positive-face contributions are 1, 3 and 4 nC, for total 8 nC. Split the volume at \(y=0.30\) m. The bottom subvolume has volume charge \(\int_0^{0.3}(8y+4)\,dy=1.56\) nC. Its new upper face carries \(B(0.30)^2=0.27\) nC. The bottom section of the \(x=L_x\) face carries \(0.090\) nC and that of the top carries \(1.20\) nC. Their sum is 1.56 nC. For the upper subvolume the same internal face must be counted with the opposite sign. Physical flux is single-valued on that shared face even if the cells on its sides have very different thicknesses.

Suppose a program evaluates the shared face once using a derivative from the lower cell and independently using another from the upper cell. A mismatch of 0.03 nC in those estimates generates a global charge defect when summing cells, although each side may display a locally plausible gradient. A conservative scheme stores one oriented face flux and uses the same number with opposite signs in both cells. Flux conservation can then hold to floating-point accuracy on any partition, without guaranteeing the shared flux is physically accurate. In our manufactured example a shared wrong value would move the two cell errors in opposite directions and leave the total exact. Compare the two individual subvolume charges as well as the global one.

Is this manufactured \(\mathbf D\) an electrostatic vacuum solution? In a homogeneous scalar dielectric, \(\nabla\times\mathbf D\) would have to vanish for a purely electrostatic field. Its \(z\) component here is \(-Ax\). Thus the displacement tests the divergence theorem and a face-flux data structure perfectly, but it does not simultaneously test a potential-gradient solver with constant permittivity. For the latter choose \(\mathbf D=-\epsilon\nabla V\) from an explicit potential before manufacturing the charge. This example separates validation of a mathematical operation from validation of a whole physical model, an important distinction when a beautifully closed flux budget is the only available diagnostic.

Reconstruct a field from its divergence and curl in a periodic measurement cell

Suppose a three-dimensional field map is tabulated on a periodic cube and you know two derived maps: its divergence \(d\) and its curl \(\mathbf w\). Can these determine the original field? Fourier analysis gives a practical construction and reveals the missing information. For a nonzero spatial wavevector \(\mathbf k\), use the convention \(\mathbf F(\mathbf x)=\sum_{\mathbf k}\mathbf F_{\mathbf k}e^{i\mathbf k\cdot\mathbf x}\). Then \(d_{\mathbf k}=i\mathbf k\cdot\mathbf F_{\mathbf k}\) and \(\mathbf w_{\mathbf k}=i\mathbf k\times\mathbf F_{\mathbf k}\). Decompose \(\mathbf F_{\mathbf k}\) into its component parallel to \(\mathbf k\) and the remaining transverse component. Elementary vector identities give

\[\mathbf F_{\mathbf k}=-\frac{i\mathbf k}{k^2}d_{\mathbf k}+\frac{i}{k^2}\mathbf k\times\mathbf w_{\mathbf k}\qquad(\mathbf k\ne0).\]

The first term supplies the requested divergence and zero curl. The second supplies the requested curl when \(\mathbf k\cdot\mathbf w_{\mathbf k}=0\), a compatibility requirement because the divergence of a curl vanishes. At \(\mathbf k=0\) both operations annihilate the constant field. Its mean must be measured independently. In a nonperiodic region suitable boundary data enter as well. This is a constructive version of the statement that divergence and curl determine a field only after specifying its domain, boundary information and any harmonic freedom.

For a concrete field take \(\mathbf F=(A\cos kx,B\sin kx,C)\). Its divergence is \(-kA\sin kx\), its only curl component is \(w_z=kB\cos kx\), and the constant offset \(C\hat{\mathbf z}\) drops out of both maps. The first input alone reconstructs the \(x\) component and the second the \(y\) component. A purely electrostatic solver may legitimately require \(B=0\) but will not recover \(C\) from the local charge distribution alone. A uniform applied field can be imposed by suitable distant electrodes. A strictly periodic scalar potential cannot represent a nonzero mean field without separately adding a linear background.

A grid-based reconstruction needs its own consistency check. A centred difference on a periodic grid maps \(e^{ikx}\) to \(i\sin(kh)e^{ikx}/h\), not exactly \(ik e^{ikx}\). A source plane wave at the highest alternating grid mode \(k=\pi/h\) has zero centred derivative at every node despite alternating sign. Treating discrete divergence measurements as exact continuum coefficients near that grid scale would infer falsely that an oscillatory field has vanished. Use a consistent discrete operator, stagger quantities if appropriate, and restrict quantitative interpretation to adequately sampled modes. The continuous Helmholtz identity is exact; the data acquisition and differentiation scheme decides which components of that identity are actually observable.

Enclose different amounts of a regularised source

Predict how the flux of a small sphere changes as it crosses the charge cloud. Compare the enclosed fraction with the local source density.

Tutorial · turn field values into reliable local measurements

Reconstruct a sheet from a voltage cusp

Two electrodes at \(z=\pm L\) are grounded. Inside the gap a measured potential is \(V_0(1-|z|/L)\). Find both fields and reconstruct the source, then explain what a centred finite difference reports at the cusp.

Work through the solution

For \(z<0\), \(E_z=-V_0/L\); for \(z>0\), \(E_z=+V_0/L\). The jump gives a sheet \(\sigma=2\epsilon_0V_0/L\) at zero. A centred estimate of the first derivative there returns zero by symmetry, reflecting the arithmetic mean of the two one-sided fields. It cannot be interpreted as either physical one-sided limit. The centred second difference is \(-2V_0/(Lh)\), so the inferred cell density grows as \(1/h\). Multiplying by a cell width \(h\) returns the finite sheet charge. This is the correct quantity to compare when refining the grid.

With \(V_0=2\) V and \(L=2\) mm the fields have magnitudes 1000 V/m and the sheet charge is \(17.7\) nC/m². Reversing \(V_0\) reverses both field vectors and the sheet sign without moving the cusp.

Can a voltage map distinguish a saddle from a charge?

Near the origin a section shows \(V(x,0,0)=V_c-Ax^2\), \(A>0\). Give a source-free three-dimensional extension and a second extension consistent with uniform positive charge. Propose a minimum additional measurement given no prior symmetry.

Work through the solution

The first is \(V_c-Ax^2+Ay^2\), independent of \(z\). Its Laplacian vanishes. The second is \(V_c-A(x^2+y^2+z^2)\), whose Laplacian is \(-6A\), giving \(\rho=6\epsilon_0A\). Both match the entire original line. Curvatures along \(y,z\) together with the given \(x\)-curvature determine the Laplacian. A small enclosing surface measuring normal electric flux provides the same information integrated over a volume and does not require numerical second differentiation. Neither a second derivative along one line nor a visibly crowded pair of voltage contours is a universal charge detector.

Further reading

When do boundary measurements determine a unique electrostatic field?

A boundary-value solver may converge while solving the wrong electrical experiment. Establishing which potentials, charges and fluxes are fixed gives a uniqueness proof and a way to turn an approximate field into an upper bound.

Specify the experiment before specifying the equation

An insulating region occupies a bounded volume \(\Omega\) with smooth conducting or insulating boundaries. A known free charge density \(\rho_f\) is embedded in the region. For a positive scalar linear permittivity \(\epsilon(\mathbf x)\), electrostatics reduces to

\[-\nabla\cdot(\epsilon\nabla V)=\rho_f.\]

To turn this into an experiment one must decide how each boundary is prepared. A conductor attached to a source supplies a fixed voltage; an isolated conductor keeps a fixed total charge while becoming an equipotential; an insulating surface with known displacement flux prescribes a normal component. These preparations require different mathematical data. The same electrode shape can participate in any of them.

At an interface between two ordinary dielectrics the potential is continuous in the absence of a prescribed dipole sheet. Integrating Gauss's law across the interface gives

\[(\mathbf D_2-\mathbf D_1)\cdot\mathbf n=\sigma_f,\]

where \(\mathbf n\) points from medium 1 to 2. Thus the appropriate field problem can be posed either in a weak integral form across both materials or as two equations joined by voltage and flux conditions. The latter view is especially helpful when a measured charge appears on just one internal sheet. A jump in permittivity alone does not permit an arbitrary jump in voltage.

Prove uniqueness by testing the difference, not the solution

Suppose two solutions \(V_1,V_2\) fit identical prescribed volume sources, material data and boundary voltages. Define \(w=V_1-V_2\). It satisfies \(\nabla\cdot(\epsilon\nabla w)=0\) and vanishes at the boundary. Multiply by \(w\) and apply the product rule to \(\nabla\cdot(w\epsilon\nabla w)\). Integration yields

\[\int_\Omega \epsilon|\nabla w|^2\,dV=\oint_{\partial\Omega}w\epsilon\,\partial_nw\,dA.\]

The boundary term is zero. The integrand on the left is nonnegative and \(\epsilon>0\), so the gradient vanishes wherever the material is regular. The function must be constant on each connected component; its fixed boundary value makes it zero. This proves that at most one field solves the stated problem. It does not itself construct a solution. It converts a difficult task of checking every possible competitor into checking the PDE and boundary data for one candidate.

The same reasoning works for a symmetric positive-definite permittivity tensor: replace \(\epsilon|\nabla w|^2\) by \((\nabla w)^T\boldsymbol\epsilon\nabla w\). It also applies with internal material interfaces. Integrate separately on either side. Their face terms cancel because \(w\) is continuous and the prescribed free sheet makes the jump in the difference flux zero. An unaccounted interface charge would supply precisely the term that invalidates this cancellation.

If only the normal flux is fixed everywhere, the boundary difference flux vanishes and the left integral again gives a constant \(w\). Constants are now indistinguishable by the boundary data; the electric field remains unique. Gauss's law also imposes compatibility \(\oint_{\partial\Omega}\mathbf D\cdot\mathbf n\,dA=\int_\Omega\rho_f\,dV\). Choosing flux values whose sum disagrees with the enclosed charge produces no solution, even after choosing a voltage reference. Numerically this can appear as a residual that never falls below a threshold, or as a solver modifying the source silently to make the equations compatible.

Prove uniqueness when only total conductor charge is known

Take a region surrounding several isolated conductors. The value on each metal is constant but initially unknown. For the difference of two candidate solutions denote these constants by \(w_i\). Then each conductor's contribution to the right-hand side of the energy identity factors as \(w_i\int_{S_i}\epsilon\partial_n w\,dA\). With outward normal from the dielectric into the metal this integral is the difference in the conductor's free charge. Prescribing total charge for each metal makes every such term vanish individually. Provided a reference conductor or condition at infinity removes an overall constant, the potential is unique.

Knowing only the sum of charges over several electrically disconnected metals can be insufficient. For two isolated spheres, allow one to take charge \(+\delta q\) and the other \(-\delta q\) while fixing their total at zero. Their equipotential values can change relative to each other, and an external field may appear. If instead they are joined by an ideal wire they must share one voltage, so the common boundary contribution factors against their total charge. The proof itself identifies the physical distinction between strings of electrically connected metal and separate conductors.

A functional whose variation is Gauss’s law

For fixed boundary voltage consider

\[\mathcal I[V]=\int_\Omega\left[\frac12\nabla V\cdot\epsilon\nabla V-\rho_f V\right]\,dV .\]

The two meanings of \(V\) in this notation are distinguishable from context: \(V(\mathbf x)\) is potential and \(dV\) is a volume element. Add a trial perturbation \(\eta\) that vanishes on the fixed-voltage boundary. The first-order change is \(\int[\nabla\eta\cdot\epsilon\nabla V-\rho_f\eta]dV\). Integrate the first term by parts. Requiring zero for every admissible \(\eta\) gives

\[-\nabla\cdot(\epsilon\nabla V)=\rho_f.\]

On a boundary portion where flux rather than voltage is prescribed, an additional linear boundary contribution accounts for the specified normal derivative. It is not generally correct to hold every trial voltage zero there.

For an exact fixed-voltage solution \(V_*\) expand \(\mathcal I[V_*+\eta]\). The first-order terms vanish, leaving

\[\mathcal I[V_*+\eta]-\mathcal I[V_*]=\frac12\int_\Omega \nabla\eta\cdot\epsilon\nabla\eta\,dV .\]

The exact solution minimises the functional, and the gap measures the field error in an energy-weighted norm. If \(\rho_f=0\) the functional is the stored field energy. With embedded sources the linear term matters; the value of the functional is generally not just field energy. Restrict the trial fields to a finite space and minimize there. This is the variational origin of a potential-based finite-element method. A small change in the energy between two grids can coexist with a noticeably changing local peak field because the integral weights errors by volume.

A complete numerical comparison without a black box

Take a unit area filled by two dielectric slabs each of thickness \(d=1\) mm and relative permittivities 2 and 8. Set one electrode at 10 V, the other at zero, with no free charge inside. A trial straight line through the whole gap obeys both electrode voltages. Its energy per area is \(\epsilon_0(2+8)d(5000)^2/2=1.107\ \mu{\rm J/m^2}\) after unit conversion. The exact interface problem requires constant normal displacement. It gives voltage drops of 8 and 2 V, fields of 8000 and 2000 V/m and energy per area \(0.708\ \mu{\rm J/m^2}\). A single continuous slope produced too much energy by about 56%. The trial is admissible despite its incorrect interface flux, because stationarity, rather than a kinematic constraint, enforces that flux.

Recover the exact answer as a one-variable minimisation. Let \(u\) be the voltage at the interface measured relative to the grounded end, with the first material next to the 10 V electrode. The energy per area is \(\epsilon_0[2(10-u)^2+8u^2]/(2d)\). Differentiation gives \(-2(10-u)+8u=0\), hence \(u=2\) V. The derivative with respect to an interior trial voltage measures the flux imbalance between neighbouring elements. This makes the algebraic finite-element equation a local charge balance. Conversely a trial that fails to equal an electrode's prescribed voltage is inadmissible, even if its energy appears lower than the computed answer.

A maximum principle as a diagnostic independent of energy

In a charge-free region with uniform permittivity the potential at the centre of a sphere equals its mean over the sphere. To see this, differentiate the angular average with respect to its radius. The result is proportional to the total normal derivative, which is zero by Gauss's law for an empty sphere. Shrink the sphere to its centre to identify the constant average. Therefore a nonconstant harmonic function cannot have a strict interior maximum or minimum. If the centre assumes the maximum value, all sufficiently nearby directions must assume that same value to keep the average equal; continuing through the connected region forces constancy.

For source-free Poisson solvers an interior voltage above all fixed outer values indicates an issue with boundary data, source terms or discretisation. But the same observation is entirely possible with positive internal charge, as the one-dimensional grounded-plane parabola demonstrates. The maximum principle concerns potentials; it does not say that a field magnitude, an individual component in an inhomogeneous medium, or the potential restricted to a line must remain between the corresponding boundary values on that line.

A thin dielectric coating turns a boundary voltage into a Robin condition

Suppose a grounded metal enclosure is lined with an insulating film of thickness \(d_f\) and permittivity \(\epsilon_f\). We want the electrostatic potential in an interior region large compared with the film thickness. Simply declaring the film's exposed face grounded neglects its voltage drop. If the tangential scale of the interior field and the radius of curvature of the surface are both much larger than \(d_f\), the film behaves locally like a plane capacitor with capacitance per area \(c_f=\epsilon_f/d_f\). Let \(\mathbf n\) point from the interior into the film, let the backing metal be at \(V_b\), and denote the interior-side surface potential by \(v\). Without free charge at the contact, the outward displacement from the interior equals \(c_f(v-V_b)\). Since \(\mathbf D=-\epsilon\nabla V\) inside, the effective boundary condition is

\[\epsilon\,\partial_n V+c_f(V-V_b)=0 .\]

This is a Robin boundary condition: both the potential and its derivative enter. The coefficient \(c_f\) has units F/m², so both terms are surface charges. For \(c_f\to\infty\) a bounded normal field forces \(V\) to the backing voltage. For \(c_f\to0\) a finite voltage difference can sustain almost no normal flux. The two familiar boundary ideals are limiting cases of one measurable material preparation. The derivation requires the film to contain no embedded free charge and to respond linearly; measured leakage over long times adds a current-balance problem.

The variational proof above extends naturally. Add \(\tfrac12\int_{S_f}c_f(V-V_b)^2dA\) to the interior functional. Its first variation at the exposed face gives \(\epsilon\partial_nV+c_f(V-V_b)\) times the arbitrary boundary variation. The added quadratic term is exactly the electrostatic energy stored in the eliminated thin layer under the one-dimensional approximation. For the difference of two solutions the energy identity becomes

\[\int\epsilon|\nabla w|^2dV+\int c_f w^2dA=0.\]

Either a prescribed reference voltage or a positive-area Robin patch with \(c_f>0\) removes the constant null mode. This follows without pretending that the exposed potential itself was prescribed.

Consider a planar interior region of thickness 2.0 mm filled with \(\epsilon_i=4\epsilon_0\), separated from its 0 V backing by a 50 μm film with \(\epsilon_f=2\epsilon_0\). Set the opposite electrode to 10 V. The exact one-dimensional displacement is

\[D=10/[L/\epsilon_i+d_f/\epsilon_f].\]

The effective electric length in vacuum units is \(0.50+0.025=0.525\) mm, hence \(D=169\) nC/m² and the film takes \(10(0.025/0.525)=0.476\) V. Imposing a direct 0 V boundary at the exposed film face would overpredict displacement by 5%. Solving with the Robin condition instead reproduces the series result exactly in the flat one-dimensional model. For a patterned electrode with wavelength comparable to film thickness, tangential field in the film cannot be ignored and the effective boundary response depends on spatial frequency.

What a voltage error bound does and does not control

If two source-free solutions have slightly different Dirichlet data, their difference is harmonic, not necessarily zero. Let their boundary discrepancy have maximum magnitude \(\delta\). The maximum principle applied to the difference and its negative guarantees \(|V_1-V_2|\le\delta\) throughout the region. This gives a stability estimate for voltage even where the exact solution is unknown. It requires an error bound on the whole boundary and identical sources inside. Collocation residuals evaluated only at a few points do not establish the premise between those points.

Does the same number bound the error in local electric field? Consider the upper half-space with boundary error \(\delta\cos(kx)\). The harmonic difference at height \(h\) is \(w=\delta e^{-kh}\cos(kx)\). Immediately at the boundary the field-error amplitude is \(k\delta\), which can be arbitrarily large as the spatial wavelength shrinks even though the voltage error stays below \(\delta\). At nonzero \(h\) the field-error amplitude for this single mode is \(k\delta e^{-kh}\). For fixed \(h\) it is maximal at \(k=1/h\), with value \(\delta/(eh)\). Depth regularises the sensitivity to ever finer ripples. A global bound on arbitrary superpositions requires accounting for how their amplitudes combine; maximising one sinusoid does not prove that every boundary function attains the same bound.

Suppose a nominally grounded instrument panel has a sinusoidal ripple of peak voltage 5 mV and wavelength 1.0 mm. At the surface it creates an electric-field amplitude of \(31.4\) V/m. Just 1.0 mm away its amplitude is multiplied by \(e^{-2\pi}=0.00187\), leaving 0.0587 V/m. A sensor directly at the surface and one millimetre inside may therefore make very different accuracy demands on the boundary model, despite the same nominal voltage tolerance. A field solver claiming agreement of all electrode voltages to 5 mV still needs a spatial smoothness or resolution statement before claiming local field accuracy.

A useful related identity controls energy error when an approximate potential has an interior residual. Let \(V_h\) satisfy the exact boundary values, and define \(r=\rho+\nabla\cdot(\epsilon\nabla V_h)\). With \(e=V_*-V_h\) zero on the boundary,

\[-\nabla\cdot(\epsilon\nabla e)=r.\]

Multiplying by \(e\) gives \(\int\epsilon|\nabla e|^2dV=\int r e\,dV\) for a smooth admissible approximation. If a piecewise field has jumps at internal element faces their residual contributions must be included. A tiny volume residual computed inside each piece can coexist with incorrect flux matching at every face. In the two-layer example, a straight-line trial has zero second derivative in both layers, yet its displacement mismatch at the interface is exactly what forces a different physical solution.

Why a conductor becomes equipotential when charge can move

So far conductor voltages or charges entered as boundary conditions. A related variational argument explains the equipotential condition itself. Imagine charges on one connected conductor that may redistribute while their total stays fixed. Treat the final material state as ideal and static, with no ongoing currents or dissipative constraints. The change in electrostatic field energy for an infinitesimal change in free surface charge is \(\delta U=\int_S V(\mathbf x)\delta\sigma(\mathbf x)\,dA\). This follows either by slowly bringing in each incremental charge at its current potential or by varying the symmetric double integral \(\tfrac12\int\int \rho(\mathbf x)G(\mathbf x,\mathbf y)\rho(\mathbf y)d^3x\,d^3y\). The half in the energy disappears upon variation because either source factor may vary.

Move a small positive charge \(dq\) from a patch at potential \(V_A\) to another at \(V_B\), preserving total conductor charge. The change is \((V_B-V_A)dq\). If the two voltages differ, one direction of transfer lowers the energy. At equilibrium every such redistribution must have zero first-order energy change, hence the potential is constant over the connected conductor. For disconnected conductors whose individual totals are fixed the same reasoning gives a different allowed constant on each. If an ideal wire joins them, transfers across the wire become admissible and their two constants equalise. This is a statement about electrical connectivity and constraints, not merely the smoothness or shape of the conducting material.

The second-order change for a neutral redistribution is its own nonnegative field energy. For a fixed-charge isolated conductor it follows that the electrostatic equilibrium distribution minimises energy over all allowed placements of the same surface charge. This is a different trial principle from prescribing electrode voltages and varying a potential throughout the space. A trial charge that obeys a total-charge constraint need not produce an exactly equipotential conductor; its excess energy measures a failure of equilibrium. Confusing these two variational principles can switch the direction of an inferred capacitance bound.

As a measurable limit, take two small spheres far apart, with approximate capacitances \(C_1=4\pi\epsilon_0a_1\) and \(C_2=4\pi\epsilon_0a_2\) to infinity. Temporarily neglect mutual coupling. With total charge \(Q\), write \(U(q)=q^2/(2C_1)+(Q-q)^2/(2C_2)\). Differentiating gives \(q/C_1=(Q-q)/C_2\), the equipotential solution after wiring. For radii 10 and 20 mm and \(Q=30\) pC this gives shares 10 and 20 pC at a common voltage about 9.0 V. Putting all the charge initially on the smaller sphere would give energy \(Q^2/(2C_1)\). After connection the energy is \(Q^2/[2(C_1+C_2)]\), one third as large. The missing field energy leaves during transient currents through radiation or dissipation; static uniqueness alone describes neither time history nor dissipation partition. As sphere spacing is reduced, mutual capacitance must be included and the simple radius ratio becomes an approximation to test rather than an exact rule.

Check a potential independently of its residual

Refine a grounded square with known boundary data. Compare centre voltage with the series solution as well as the discrete residual. The accompanying OneSimulation model solves the same field problem.

Tutorial · can the proposed computation represent this experiment?

Find a compatible flux and determine the remaining freedom

A slab \(0<x<L\) contains uniform positive free charge \(\rho\). At \(x=0\) the outward displacement is measured as \(D_n=-D_0\). Determine what flux must be prescribed at \(L\), the electric field throughout, and one piece of information needed for the absolute potential.

Work through the solution

Positive \(x\) displacement at the left is \(D_0\) because that face's outward normal points towards negative \(x\). Integrating \(dD_x/dx=\rho\) gives

\[D_x=D_0+\rho x.\]

Therefore the outward flux at \(L\) is \(D_0+\rho L\). Their sum per unit area equals \(\rho L\). In constant permittivity \(E_x=(D_0+\rho x)/\epsilon\) and \(V(x)=V(0)-(D_0x+\rho x^2/2)/\epsilon\). A reference voltage fixes \(V(0)\); none can fix an incompatible pair of flux measurements. A negative right-hand outward reading with very large positive enclosed charge would contradict Gauss's law before one even solves for \(V\).

Bound a capacitance with an intentionally poor trial

In a charge-free parallel-plate vacuum gap of thickness \(L\), use \(V(x)=V_0(x/L)^2\) to bound the capacitance per area. Compare with the exact linear voltage. How does improving the potential shape turn into a monotonic bound?

Work through the solution

The trial satisfies the endpoints. It gives energy per area \(\epsilon_0\int_0^L(2V_0x/L^2)^2dx/2=2\epsilon_0V_0^2/(3L)\), hence a capacitance estimate \(4\epsilon_0/(3L)\). The exact value is \(\epsilon_0/L\), lower by the predicted variational inequality. Expanding a trial space to include both the old functions and new ones cannot raise its optimal energy because the old minimiser remains available. This monotonic property requires nested trial spaces and consistent integration; changing quadrature or replacing the physical geometry changes the comparison.

Further reading

Green functions, the Poisson kernel and what a small electrode can influence

A Green function is the response of an entire boundary-value problem to a unit source. Once that response is known, a continuous charge distribution and a patterned boundary voltage can both be treated by integration. The two integrations require different kernels.

Define a point response with its boundary conditions

Let \(\Omega\) be a vacuum domain with boundary on which the voltage is given. Use the convention \(-\nabla_{\mathbf y}^2G(\mathbf x,\mathbf y)=\delta^3(\mathbf y-\mathbf x)\) and \(G=0\) on the boundary as a function of \(\mathbf y\). In free space \(G=1/(4\pi|\mathbf x-\mathbf y|)\) if decay is required at infinity. This definition places no permittivity in \(G\); physical charge enters as \(\rho/\epsilon_0\). A different frequent convention puts \(4\pi\) in the defining equation, changing all subsequent prefactors. Comparing the near-source flux to unity is a straightforward way to fix which convention is being used.

Begin with two differentiable functions \(u,v\). The difference \(\nabla\cdot(u\nabla v-v\nabla u)=u\nabla^2v-v\nabla^2u\) has no mixed-gradient term. Integrate this identity with \(u=V(\mathbf y)\),

\[v=G(\mathbf x,\mathbf y).\]

The source equation for \(G\) samples \(V\) at \(\mathbf x\), while Poisson's equation for \(V\) supplies a volume density. With the outward normal taken from \(\Omega\),

\[V(\mathbf x)=\int_\Omega G(\mathbf x,\mathbf y)\frac{\rho(\mathbf y)}{\epsilon_0}\,d^3y-\oint_{\partial\Omega}V(\mathbf y)\partial_{n_{\mathbf y}}G(\mathbf x,\mathbf y)\,dA_{\mathbf y}.\]

The \(G\partial_n V\) boundary term vanishes because \(G=0\) there. If the singularity causes concern, exclude a small sphere about \(\mathbf x\), apply the ordinary identity, and shrink the sphere. The inward normal on the excised sphere produces the same \(V(\mathbf x)\) term. The representation separates charges in the volume from voltages maintained by electrode sources; it does not combine them into one fictitious material distribution.

Solve the half-space and differentiate with respect to source position

Consider \(\mathbf x=(\mathbf X,h)\) with \(h>0\) above the plane \(z=0\). For an interior source \(\mathbf y=(\mathbf Y,z)\), denote its reflection by \(\mathbf y^*=(\mathbf Y,-z)\). The grounded half-space Green function is

\[G=\frac1{4\pi}\left[\frac1{\sqrt{|\mathbf X-\mathbf Y|^2+(h-z)^2}}-\frac1{\sqrt{|\mathbf X-\mathbf Y|^2+(h+z)^2}}\right].\]

It vanishes as the source coordinate approaches the plane. The outward domain normal there is \(-\hat{\mathbf z}\); therefore the coefficient of a prescribed boundary voltage is

\[P_h=-\partial_nG=\partial_zG|_{z=0}.\]

Differentiating the two terms gives equal positive contributions:

\[P_h(\mathbf X-\mathbf Y)=\frac{h}{2\pi[|\mathbf X-\mathbf Y|^2+h^2]^{3/2}} .\]

Its units are inverse area, while \(G\) has inverse length in this three-dimensional convention. For no interior charge \(V(\mathbf X,h)=\int P_h(\mathbf X-\mathbf Y)f(\mathbf Y)\,d^2Y\). The kernel is positive. Integrate over the whole plane using \(2\pi s\,ds\); the result is one. Hence a constant boundary voltage is reproduced, and an arbitrary voltage bounded between two numbers produces values between the same bounds inside. The integral solves the bounded half-space problem with the far-field condition appropriate to the data. Demanding decay for a nonzero constant boundary value would be inconsistent.

A detector at height \(h\) takes a weighted average over a neighbourhood of width comparable with \(h\). The kernel has algebraic tails, so its support is not a sharp circular footprint. The contribution from radii smaller than \(b\) is \(1-h/\sqrt{b^2+h^2}\). Half the total weight lies within \(b=\sqrt3h\). Ninety per cent requires

\[b=\sqrt{99}h\simeq9.95h.\]

These quite different radii show why a full-width-at-half-maximum measurement of the kernel cannot by itself define the region that contains most of its influence.

A finite driven electrode and a reciprocity experiment

Fix a circular disk of radius \(b\) in the plane at voltage \(V_d\) while grounding the rest of the plane, with ideal thin insulating seams. Directly over its centre,

\[V(0,h)=V_d\left(1-\frac{h}{\sqrt{h^2+b^2}}\right),\]
\[E_z(0,h)=V_d\frac{b^2}{(h^2+b^2)^{3/2}} .\]

At \(h\to0^+\) the electrode voltage is recovered at its centre. For \(h\gg b\) the voltage scales as \(V_d b^2/(2h^2)\). A small electrode surrounded by ground does not behave at long distance as an isolated charged electrode with a \(1/h\) potential. Its surrounding return charge makes a combined disturbance whose far field has a different order. At the sharp ideal edge the boundary voltage jumps, and local fields there require an actual seam geometry if one wants a bounded peak or a breakdown prediction.

For \(b=5.0\) mm, \(V_d=4.0\) V and \(h=5.0\) mm the axial voltage is 1.17 V and field is \(283\) V/m. A separate experiment grounds every electrode and places a point charge \(q\) at that observation point. Green reciprocity relates the net charge on the disk to the previous weighting potential \(w=V/V_d\): \(Q_d=-q\,w\). With \(q=20\) pC the disk collects \(-5.86\) pC. Direct integration of the image-plane surface charge \(\sigma(s)=-qh/[2\pi(s^2+h^2)^{3/2}]\) gives the same result. It is precisely \(-qP_h\). Thus the boundary kernel has both a voltage-producing interpretation and a charge-collection interpretation measurable with different instrumentation.

Recover the kernel of an electrode strip

A boundary pattern invariant in \(y\) should not require a two-dimensional source integral. Integrate \(P_h\) over the unused coordinate. With lateral separation \(s=X-X'\), the result is

\[p_h(s)=h/[\pi(s^2+h^2)].\]

It integrates to one over the real line. A strip between \(-b,b\) at \(V_d\) gives on its central normal \(V(0,h)=2V_d\arctan(b/h)/\pi\). At \(h=b\) the value is half the applied voltage, distinct from the circular electrode's \(1-1/\sqrt2\). The strip extends in one more direction and occupies a larger angular range of boundary influence.

For sinusoidal boundary data \(f(X)=\cos kX\) there is an independent way to determine the result without evaluating a difficult oscillatory integral. Translational symmetry and linearity preserve the sinusoid. Solving Laplace's equation with vertical factor \(Z(h)\) gives

\[Z''=k^2Z.\]

The bounded decaying solution with unit boundary amplitude is \(e^{-|k|h}\). Thus the Fourier transform of the strip kernel is \(e^{-|k|h}\). Convolving twice with heights \(h_1,h_2\) is equivalent to convolution once with height \(h_1+h_2\). This composition property checks a numerical propagation code without requiring separate analytic solutions for many different boundary patterns.

Which symmetries does an influence table possess?

Exchange source and detector in the defining equations for \(G(\mathbf x,\cdot)\) and \(G(\mathbf z,\cdot)\). Their difference identity gives \(G(\mathbf x,\mathbf z)-G(\mathbf z,\mathbf x)=0\), since both vanish on the same boundary. Symmetry extends to scalar or symmetric-tensor positive permittivity when the operator is defined as \(-\nabla\cdot\epsilon\nabla\). It refers to exactly the same material, boundary preparation and domain in both experiments. Replacing one experiment's grounded conductor by a floating conductor changes the Green function.

On a nonuniform mesh it matters whether influence entries correspond to equal point charges or equal charge densities in unequal cells. If a finite-volume solver stores sources as densities, a column's total injected charge scales with its cell volume. An unweighted table of sampled voltages can look nonsymmetric even when the discrete physics is reciprocal. Form the matrix with unit total source and consistent detector averaging, or retain the correct volume-weighted inner product. Test positivity for positive sources as a second check. Symmetric influence entries by themselves cannot expose a common incorrect normalisation or a misplaced outer boundary.

A kernel that reproduces every harmonic around a circle

In a two-dimensional circular domain of radius \(a\), prescribe a voltage \(f(\phi')\) around the wall. For a detector at \((r,\phi)\) let \(t=r/a<1\). The angular Fourier component with order \(m\) is multiplied by \(t^{|m|}\) on continuation into the disk. This follows directly from the regular radial power solution of Laplace's equation. Substitute the Fourier coefficient integral into the series and interchange the integral and the absolutely convergent series at fixed \(t<1\). The boundary response per unit angle is then

\[P_t(\delta)=\frac1{2\pi}\sum_{m=-\infty}^{\infty}t^{|m|}e^{im\delta}=\frac{1-t^2}{2\pi(1-2t\cos\delta+t^2)},\]
\[\delta=\phi-\phi' .\]

To obtain the rational form, separate the \(m=0\) term and sum the two conjugate geometric series \(te^{\pm i\delta}/(1-te^{\pm i\delta})\). The result is positive for every interior point. Integrating it over angle leaves only the constant Fourier mode, so it is normalised to unity. At the centre the kernel is simply \(1/(2\pi)\), recovering the exact mean-value theorem for harmonic functions. Near the wall it becomes very sharply concentrated around the detector's azimuth while retaining a small nonlocal tail. Using prescribed boundary data as a flat average at every interior point would reproduce only the centre reading.

For a concrete experiment put a short arc of half-angle \(\alpha\) centred on \(\phi=0\) at 1 V and ground the remaining circular boundary. Along \(\phi=0\) the potential equals the integral of \(P_t\) between \(-\alpha,\alpha\). With \(u=\tan(\phi'/2)\) one has \(\cos\phi'=(1-u^2)/(1+u^2)\), \(d\phi'=2du/(1+u^2)\). Substitution gives the weight

\[w(t)=\frac{2}{\pi}\arctan\!\left[\frac{1+t}{1-t}\tan(\alpha/2)\right] .\]

At \(t=0\) it gives \(\alpha/\pi\), exactly the fraction of the circumference occupied by the arc. For a 60°-wide arc \(\alpha=\pi/6\), hence the centre reads \(1/6\) V. At \(t=0.6\) on the centreline it reads about 0.522 V. Placing a small positive line charge there while grounding the whole cylindrical wall induces \(-0.522\) times the line charge on that arc by the same reciprocity argument used on the flat disk. The angular share depends on position inside the circle even though every point on the conductor has the same actual grounded voltage.

An independent check takes the limit of a very large circle with the probe only a distance \(h=a-r\) from the nearest boundary point. For small angular displacement \(\delta=s/a\), \(1-2t\cos\delta+t^2\simeq(h/a)^2+(s/a)^2\) and \(1-t^2\simeq2h/a\). The angular probability element \(P_t(\delta)d\delta\) therefore tends to \(h\,ds/[\pi(h^2+s^2)]\), precisely the translation-invariant strip kernel obtained by integrating the half-space formula over one coordinate. Curvature corrections can be estimated by increasing \(a/h\) at fixed physical arc width and comparing both predictions.

Why an insulated Green function needs a zero-mode subtraction

Consider the simpler interval \(0<x<L\) with prescribed zero flux at both ends. We would like a point response satisfying \(-G''=\delta(x-s)\), \(G'(0)=G'(L)=0\). Integrate this proposed equation over the interval: the left-hand side is \(-G'(L)+G'(0)=0\), whereas the right-hand side is 1. The attempted kernel violates compatibility. Physically a sealed insulating region cannot take a net free test charge without changing its prescribed outer flux. Adding an arbitrary constant to \(G\) cannot fix this contradiction.

A useful alternative removes the constant source mode and fixes the remaining voltage reference. Define \(-G_N''=\delta(x-s)-1/L\), \(G_N'(0)=G_N'(L)=0\), and \(\int_0^L G_N(x,s)\,dx=0\). Away from the point the curvature is \(+1/L\). The left derivative must be \(x/L\) to vanish at zero, the right derivative \(x/L-1\) to vanish at \(L\). They jump by \(-1\) at \(x=s\). Integrating, imposing continuity and subtracting the mean gives the compact symmetric expression

\[G_N(x,s)=\frac{x^2+s^2}{2L}-\max(x,s)+\frac L3 .\]

Differentiating verifies both end conditions and the jump. Integrating the quadratic part and the piecewise maximum over \(x\) verifies the mean condition. Its sign can be negative because the response includes an opposite uniform return source and uses a zero-mean reference. Unlike the positive grounded Dirichlet kernel, it is not a positive voltage weight to use for a maximum-principle test.

Apply a neutral pair of sheets \(+\sigma\) at \(s_1=0.2L\) and \(-\sigma\) at \(s_2=0.7L\). Their voltage is \(\sigma[G_N(x,s_1)-G_N(x,s_2)]/\epsilon\). The two artificial uniform return sources cancel exactly. To the left of both sheets the field vanishes, between them it equals \(+\sigma/\epsilon\), and to the right it vanishes again. The potential drops by \(0.5L\sigma/\epsilon\) across the two sheets. This matches direct Gauss-law jumps, and the zero-mean potential fixes the constant that Gauss's law could not determine. For more complex closed domains numerical solvers implement the same idea by projecting out the constant eigenvector and checking the compatible total charge before inverting. An arbitrary tiny diagonal regularisation of a singular matrix can hide a physically impossible net-source input.

Construct a point response when the medium itself screens charge

A linear ionic or phenomenological screening model between two grounded parallel electrodes leads in one dimension to \([-\partial_x^2+\kappa^2]V=\rho_{\rm imposed}/\epsilon\), \(0<x<L\). Here \(\rho_{\rm imposed}\) excludes the mobile linear response already represented by \(\kappa^2V\). We seek \(G_\kappa(x,s)\) with zero voltage at both ends. Away from its unit source the equation has hyperbolic solutions. Use \(A\sinh(\kappa x)\) on the left to vanish at zero and \(B\sinh[\kappa(L-x)]\) on the right to vanish at \(L\). Continuity at \(x=s\) removes one constant. Integrating across the source gives \(G'_\kappa(s^+)-G'_\kappa(s^-)=-1\); the finite mass term integrates to zero in a shrinking source interval.

To solve transparently use the functions \(u(x)=\sinh(\kappa x)\),

\[v(x)=\sinh[\kappa(L-x)].\]

Their Wronskian \(u'v-uv'\) is \(\kappa\sinh(\kappa L)\), independent of \(x\). Then continuity, the derivative jump, and symmetry under \(s\leftrightarrow x\) are manifest in

\[G_\kappa(x,s)=\frac{\sinh(\kappa x_<)\sinh[\kappa(L-x_>)]}{\kappa\sinh(\kappa L)},\]
\[x_<=\min(x,s),\]
\[x_>=\max(x,s).\]

For \(\kappa\to0\), expand each hyperbolic sine to first order. The result is \(x_<(L-x_>)/L\), the grounded unscreened response. When both observation and source lie many screening lengths from every boundary, the kernel tends to \(e^{-\kappa|x-s|}/(2\kappa)\), the infinite-line screened solution. Thus one formula contains both geometric screening by grounded conductors and material screening by mobile charges.

At the midpoint source and detector coincide. The finite kernel reduces to \(\tanh(\kappa L/2)/(2\kappa)\). Compared with the unscreened midpoint value \(L/4\), its ratio is \(2\tanh(\kappa L/2)/(\kappa L)\). At \(\kappa L=2\) a fixed inserted sheet therefore creates only 76.2% of its unscreened midpoint voltage. A naïve replacement of plate separation by the screening length would give a constant ratio and miss the smooth small-\(\kappa\) crossover. For long gaps the measured voltage saturates at fixed sheet charge, because the countercharge response near the sheet now sets the local scale.

Check the convolution using a uniform positive imposed charge density \(\rho_0\). Without integrating the kernel directly, seek a constant particular solution plus a symmetric homogeneous correction. The result is

\[V(x)=[\rho_0/(\epsilon\kappa^2)]\{1-\cosh[\kappa(x-L/2)]/\cosh(\kappa L/2)\}.\]

Twice differentiation reconstructs the source and zero endpoints. In the small-\(\kappa L\) limit it tends to \(\rho_0x(L-x)/(2\epsilon)\). A numerical integration of the point response against a uniform source should match this independent closed solution throughout the interval, including the near-electrode regions. It is a stronger test than checking the point kernel at the centre alone.

Integrate the original equation across the gap. The sum of outward displacement fluxes equals imposed charge minus \(\epsilon\kappa^2\int V\,dx\), the magnitude of the compensating mobile charge. For the uniform source the fraction of imposed charge balanced by electrode rather than mobile charge is \(2\tanh(\kappa L/2)/(\kappa L)\). For a long gap this fraction falls like twice the screening length divided by gap width, because only the two boundary regions communicate appreciably with the electrodes. A current meter attached to the electrodes and a chemical measurement of accumulated mobile ions can therefore close the same source budget independently.

Inspect the response to a localised source

Move the source while holding the boundaries fixed. Test the symmetry between source and observation point predicted by reciprocity.

Design a differential collecting electrode from its weighting functions

Two concentric electrodes supply one signed position signal

A grounded plane is divided into a central disk of radius \(a\), a surrounding annulus from \(a\) to \(2a\), and the remainder. A small charge moves along the central normal. Two charge amplifiers measure the disk and annulus. Construct an output that vanishes at \(h=a\), then find its local height sensitivity. Why can that output alone not distinguish uncertain charge from height away from the null?

Derive and check the result

Let \(w_a=1-h/\sqrt{h^2+a^2}\) and \(w_{2a}=1-h/\sqrt{h^2+4a^2}\). The disk reads \(Q_d=-qw_a\); the annulus reads \(Q_r=-q(w_{2a}-w_a)\). An output \(S=Q_d-\gamma Q_r\) vanishes at \(h=a\) if \(\gamma=(1-1/\sqrt2)/(1/\sqrt2-1/\sqrt5)=1.127\) approximately. Both readings are negative for positive \(q\), so it is their difference, not their sum, that rejects the reference position. The ideal zero does not depend on the magnitude of any nonzero \(q\).

Differentiate with respect to height using \(w_b'=-b^2/(h^2+b^2)^{3/2}\). At the null \(a\,w_a'=-1/(2\sqrt2)\) and \(a\,w_{2a}'=-4/(5\sqrt5)\). Hence

\[a\,d(S/q)/dh=-(1+\gamma)a w_a'+\gamma a w_{2a}'\simeq0.349.\]

For \(q=10\) pC, \(a=2.0\) mm, a small upward displacement of 0.10 mm produces approximately \(+0.175\) pC. Finite differences of the full two-disk formula at heights on both sides of \(a\) check the linear slope. For displacements that are no longer small compared with \(a\), use the full expression rather than extrapolating that single sensitivity.

An additional sum channel \(Q_d+Q_r=-q w_{2a}\) permits a dimensionless output \(S/(Q_d+Q_r)\) that cancels the magnitude and sign of \(q\) while retaining height dependence. This ratio becomes noise sensitive far from the electrodes, where collected charge is small. A null by itself can also mean that there is no charge at all, so a usable position detector checks the sum channel at the same time. The exercise combines electrostatic reciprocity, electronic weighting and a finite signal-to-noise constraint while requiring only two precomputed boundary responses.

Tutorial · predict before numerically integrating the kernel

How much charge belongs to an annular collector?

An annular electrode with inner radius \(h\) and outer radius \(3h\) lies in a grounded plane. A charge \(q\) sits at height \(h\) over its centre. Derive its induced charge. If a numerical integration omits all radii beyond \(3h\), where does the missing charge go?

Work through the solution

Subtract two circular weights. The annulus receives \(Q/q=-[1/\sqrt2-1/\sqrt{10}]=-0.3909\). The central disk receives \(-(1-1/\sqrt2)q=-0.2929q\). The whole plane should sum to \(-q\), so the part beyond the outer edge supplies

\[-q/\sqrt{10}=-0.3162q.\]

Nothing has been lost by the physical system; a finite integration patch excludes a considerable piece of the long-tailed kernel. Radial extrapolation with the analytic far tail or an expanding integration domain distinguishes missing area from poor quadrature within the patch.

Use resistance to a modelling mistake

A student proposes \(G\) itself as the weight for setting electrode voltages on the plane. Another replaces it by \(2P_h\), arguing that an image doubles the response. Predict two different tests that diagnose these errors.

Work through the solution

The first proposal gives zero contribution since the Dirichlet Green function is zero at the boundary. It confuses volume source response with a boundary normal derivative. The second produces twice the prescribed constant voltage because the kernel would integrate to two. Independent electrostatic reciprocity would assign \(-2q\) to the whole grounded plane around a charge \(q\), violating the charge sum derived from the real and image fields. For a numerical test, set successively a constant, a sinusoid, and a bounded disk on the same plane. Those cases examine normalisation, spectral attenuation, and spatial tails separately.

Further reading

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

Cylindrical geometry, coaxial boundaries and Bessel spectra

The radial coordinate of a cylinder leads to logarithms in one experiment and to Bessel functions in another. The difference is set by the variation along the axis and around the circumference. Recovering the radial weight from flux clarifies both.

A conducting annulus selects a logarithmic radial potential

Put a long cylindrical metal electrode of radius \(a\) inside a coaxial grounded tube of radius \(b\), with homogeneous dielectric of permittivity \(\epsilon\) in the gap. Long means that probes are far enough from both ends for axial variation to be negligible. With no free gap charge and no angular variation, Laplace's equation reduces to \(\partial_r(r\partial_r V)=0\). One integration gives \(rV'=C\), a statement of conserved radial flux through cylinders; the second gives a logarithm. With inner electrode at \(V_0\),

\[V(r)=V_0\frac{\ln(b/r)}{\ln(b/a)},\]
\[E_r=\frac{V_0}{r\ln(b/a)},\]
\[C'=\frac{2\pi\epsilon}{\ln(b/a)} .\]

Here \(C'\) is capacitance per length. To obtain it, integrate \(D_r\) over the inner metal face per unit axial length and divide by \(V_0\). Another route integrates the energy density \(\epsilon E_r^2/2\) times \(2\pi r\,dr\), giving \(C'V_0^2/2\). For \(a=2\) mm, \(b=8\) mm and \(\epsilon=2\epsilon_0\), \(C'=80.3\) pF/m. At \(r=\sqrt{ab}=4\) mm the voltage is \(V_0/2\); the half-voltage radius is the geometric mean. An equally spaced radial ruler does not sample equal voltage steps.

The logarithm is not allowed at the axis of a solid charge-free cylinder because it diverges and carries line-source flux. In the annular domain the singular axis is outside the field region. The same radial function can therefore be admissible or inadmissible in two problems with very similar geometry. Before discarding a mathematical solution, check which radii actually lie in the domain and whether singular sources were explicitly prescribed.

Nonuniform wall voltages in a two-dimensional disk

Next take a full disk of radius \(a\) with prescribed side voltage \(f(\phi)\), invariant in \(z\). Seek \(R(r)e^{im\phi}\). Single-valuedness after \(\phi\to\phi+2\pi\) forces integer \(m\). The radial equation \(r^2R''+rR'-m^2R=0\) is solved by \(r^{|m|}\) and \(r^{-|m|}\) for \(m\ne0\); regularity at the centre chooses the growing power. The zero mode is constant, discarding its logarithmic partner. Thus an angular Fourier component on the wall penetrates as \((r/a)^{|m|}\). At \(r=a/2\), a third harmonic retains one eighth while a sixth harmonic retains only one sixty-fourth. Both can coexist on the wall without being equally visible in the interior.

For \(f(\phi)=2+3\cos(2\phi)\) V, the interior is

\[2+3(r/a)^2\cos(2\phi)=2+3(x^2-y^2)/a^2.\]

The potential has a saddle at the centre, with zero field there and opposite Cartesian curvatures. A scan along a single diameter could show a conspicuous maximum without detecting any charge. The two-dimensional Laplacian is zero because the curvatures cancel. This is also a useful finite-difference benchmark: a centred Cartesian Laplacian differentiates this quadratic exactly in the interior when the circular boundary has been represented correctly.

End effects produce a Sturm–Liouville problem

Now ground the side of a circular tube, excite its end at \(z=0\) and look for fields decaying into \(z>0\). For an axisymmetric source-free potential \(V=R(r)Z(z)\), choose \(Z=e^{-kz}\) for decay. Laplace's equation becomes

\[(rR')'+k^2rR=0.\]

The solutions are \(J_0(kr)\) and \(Y_0(kr)\). The former is regular with value one at zero; the latter diverges logarithmically. Grounding at \(r=a\) requires \(J_0(ka)=0\), so \(k_n=j_n/a\) with positive roots \(j_1=2.40483,\ j_2=5.52008,\ldots\). Unlike sine wavenumbers they are not evenly spaced at low index.

Multiplying two such eigen-equations by the opposite radial function, subtracting and integrating gives \((k_m^2-k_n^2)\int rR_mR_n\,dr\) equal to the endpoint term \(r(R_n'R_m-R_m'R_n)\). It vanishes at a grounded wall and at a smooth axis. Hence modes at distinct eigenvalues are orthogonal with weight \(r\). This weight arises physically from the circumference of a radial ring. Normalize dimensionless radius \(x=r/a\). For a zero \(j_n\), the squared modal norm is \(J_1(j_n)^2/2\). An end profile \(f(x)\) therefore gives

\[V(r,z)=\sum_n c_n J_0(j_n r/a)e^{-j_n z/a},\]
\[c_n=\frac{2}{J_1(j_n)^2}\int_0^1 x f(x)J_0(j_n x)\,dx .\]

For \(f=V_0\) across the cap, \(\int_0^1xJ_0(jx)dx=J_1(j)/j\) by differentiating \(xJ_1(jx)\). Then \(c_n=2V_0/[j_nJ_1(j_n)]\), with alternating signs. The cap voltage jumps at the wall corner, making its near-rim reconstruction slow. A smooth end pattern that already vanishes at \(a\) yields faster coefficient decay. In either case a narrow radial strip at the axis should not be given as much integration weight as an equal width near the circumference.

Two ways to see which axial scale survives

Far enough from the cap the first excited nonzero coefficient dominates. Its length is

\[a/j_1=0.416a.\]

Ratios of distant on-axis voltages can then identify tube radius without absolute calibration of the cap voltage. For \(a=15.0\) mm, an added 5.0 mm of distance should give factor \(e^{-2.40483/3}=0.449\). Repeat this estimate at several starting positions. The ratio only approaches that value once competing modes have decayed. A datum deep enough to suppress all higher modes may also be close to the instrument noise level, which biases a fitted decay length.

Instead impose an axial sinusoid \(e^{ikz}\) on a very long cylinder's side wall. The radial equation now has the opposite sign, \((rR')'-k^2rR=0\), whose regular solution is the modified Bessel function \(I_0(kr)\). The potential is \(V_0 I_0(kr)\cos(kz)/I_0(ka)\). The experiment selects a real oscillation along \(z\), not an exponential attenuation away from an end. Near the axis \(I_0(\xi)=1+\xi^2/4+\cdots\); the field generated by a long-wavelength side modulation is nearly uniform across a narrow cross section. At large \(ka\), \(I_0(ka)\) grows exponentially and the axis scarcely senses a short-wavelength wall pattern. Calling every radial solution simply a Bessel mode without tracking the separation sign can exchange these two physical predictions.

Construct a grid that treats the axis as a regular point

A conservative radial discretisation starts from \(\int_{r_-}^{r_+}r\,\nabla_r^2V\,dr=[rV']_{r_-}^{r_+}\). Use annular cells and fluxes at shared ring faces. Near \(r=0\) the left face has zero circumference, requiring no unknown point beyond the axis. For a nodal grid with Taylor expansion \(V(r)=V(0)+Ar^2+O(r^4)\), the radial operator at zero is \(4A\), so \(\nabla_r^2V(0)\simeq4[V(h)-V(0)]/h^2\). Simply setting \(1/r=0\) and using the Cartesian one-dimensional second derivative misses a factor of two.

Compare a numerical response to the analytic \(J_0\) mode at a fixed \(z/a\). Test the wall value, axis derivative, radial energy norm and distant decay rate. These are independent observables. A discretisation can reproduce the slowest length while misrepresenting an edge profile composed of many faster modes. Conversely, matching a discontinuous cap perfectly at mesh nodes does not demonstrate that high-order interior amplitudes are accurate.

Can a coaxial dielectric be graded to produce a uniform field?

The homogeneous coaxial field grows as \(1/r\) and reaches its highest magnitude at the inner wire. A designer proposes grading the dielectric radially so the full annular gap experiences one common radial field. Assume both metal faces are equipotentials, the scalar permittivity \(\epsilon(r)\) may vary continuously, and there is no free volume charge. Cylindrical symmetry still gives \(D_r=\lambda/(2\pi r)\), independent of how the material is graded. A constant electric-field magnitude \(E_g\) requires \(\epsilon(r)=\lambda/(2\pi E_g r)\), that is, permittivity proportional to \(1/r\). This construction replaces a uniform material by a known spatial distribution; applying \(\epsilon(r)\nabla^2V=0\) would miss the material gradient and give the wrong field.

Write \(\epsilon(r)=\epsilon_a a/r\). At applied voltage \(V_0\), the constant field is \(E_g=V_0/(b-a)\), and charge per length is

\[\lambda=2\pi\epsilon_a a V_0/(b-a).\]

Thus \(C'=2\pi\epsilon_a a/(b-a)\). For \(a=2.0\) mm, \(b=6.0\) mm, \(\epsilon_a=6\epsilon_0\), the outer relative permittivity is 2, and \(C'=167\) pF/m. At 12 V every radius experiences \(3000\) V/m. For a homogeneous dielectric at the same voltage the inner surface field would be \(12/[0.002\ln3]=5461\) V/m regardless of its constant permittivity. The gradient reduces peak field at fixed voltage. Whether a real material benefits also depends on its local field limit, losses and interfaces.

Where is the polarisation charge that makes this possible? In the dielectric the true total charge satisfies

\[\rho_{\rm tot}=\epsilon_0\nabla\cdot\mathbf E=\epsilon_0E_g/r.\]

All of it is bound since \(\rho_f=0\). Direct evaluation from \(\mathbf P=(\epsilon(r)-\epsilon_0)E_g\hat{\mathbf r}\) gives \(-r^{-1}\partial_r(rP_r)=+\epsilon_0E_g/r\), the same result. Material surfaces add bound charges \(P_r(b)\) on the outer radial face and \(-P_r(a)\) on the inner face. Integrating their surface contributions and the volume charge over a full annulus returns zero net bound charge, as required for a polarised neutral body. A constant radial electric magnitude can therefore coexist with zero free charge and nonzero total charge.

A manufactured graded material is often approximated by concentric homogeneous shells. For shell \(j\) from \(r_j\) to \(r_{j+1}\), its voltage drop at fixed \(\lambda\) is \(\lambda\ln(r_{j+1}/r_j)/(2\pi\epsilon_j)\). To reproduce the exact voltage drop of the continuously graded design over each shell, choose \(\epsilon_j=\epsilon_a a\ln(r_{j+1}/r_j)/(r_{j+1}-r_j)\). This matches electrode capacitance even with relatively few shells. Yet the field inside each discrete shell still falls as \(1/r\) and jumps at its interfaces. Matching terminal capacitance alone does not verify the target uniform-field profile. Compute the field just inside each shell edge and refine the radial layering against a local peak-field tolerance.

What a small displacement of the end electrode excites

An axisymmetric tube calculation retains only angular order \(m=0\). Now impose at the tube entrance a voltage profile proportional to \(r\cos\phi\) near the axis and taper it to zero at the wall. This is a dipolar lateral pattern with positive voltage on one side and negative on the other. Separating \(R(r)\cos(m\phi)e^{-kz}\) into Laplace's equation yields

\[(rR')'+\left(k^2r-\frac{m^2}{r}\right)R=0 .\]

The regular solutions are \(J_m(kr)\). Near the axis their leading powers are \(r^{|m|}\), so an \(m=1\) potential vanishes on the centreline while its transverse gradient generally does not. The grounded wall selects zeros of \(J_m\). The first zero of \(J_1\) is \(3.83171\), larger than the first axisymmetric zero, so the slowest lateral disturbance decays faster than the slowest axisymmetric voltage. Probe design therefore changes which decay laws are experimentally accessible.

For a cap shaped exactly as \(f=V_1J_1(jr/a)\cos\phi\), \(j=3.83171\), the whole solution is a single mode. Near the axis \(J_1(jr/a)\simeq jr/(2a)\); using \(r\cos\phi=x\),

\[V\simeq V_1 j x e^{-jz/a}/(2a).\]

Hence \(E_x(0,z)=-V_1 j e^{-jz/a}/(2a)\). With \(V_1=2.0\) V and \(a=10\) mm, the lateral field starts at \(383\) V/m and falls to \(8.30\) V/m after an axial distance equal to one radius. A centreline voltmeter sees zero at both positions and gives no hint of the finite transverse force. A pair of voltmeters at small opposite \(x\) or a field probe oriented along \(x\) measures the relevant derivative.

For a realistic shifted electrode the input can contain both \(m=0\) and \(m=1\). Place detectors at \((r,0,z)\) and \((r,\pi,z)\). Their average selects even azimuthal orders; their difference selects odd ones. The ratio of the difference at two heights tests \(m=1\) decay after higher odd modes subside. The average also includes \(m=2,4,\ldots\), so attributing it to \(m=0\) requires symmetry information or more angular sensors. Reversing the applied electrode displacement changes the sign of an odd response but leaves even corrections unchanged to leading order. This experiment links angular Fourier selection and radial eigenvalues to a measurable alignment tolerance without requiring an entire three-dimensional voltage map.

Project a ring source without calling an axis cell a point detector

Deposit a thin circular ring of total free charge \(q\) at radius \(s\) in the plane \(z=z_0\) inside a long grounded cylindrical tube. Its volume density in an axisymmetric model is \(q\,\delta(r-s)\delta(z-z_0)/(2\pi s)\), for \(s>0\). The \(2\pi s\) removes the circumference introduced by the volume element. A radial code that deposits \(q\) directly as a density in one mesh bin, without dividing by annular volume, changes the total charge each time the radius or mesh spacing changes. In this calculation one can track that normalisation all the way to a voltage coefficient.

Take the tube infinite in both axial directions for simplicity. Expand \(V=\sum_n v_n(z)J_0(j_n r/a)\) in the grounded radial eigenfunctions. Project Poisson's equation using weight \(r\,dr\) and the norm \(a^2J_1(j_n)^2/2\). The ring produces

\[[-d_z^2+(j_n/a)^2]v_n=\frac{q J_0(j_n s/a)}{\pi\epsilon a^2J_1(j_n)^2}\,\delta(z-z_0).\]

The infinite-line Green response for \(-d_z^2+k^2\) is \(e^{-k|z-z_0|}/(2k)\), as can be checked by integrating its derivative across \(z_0\). Thus each modal voltage has a finite amplitude and two decaying tails, and the complete field is obtained by summing radial modes. At a detector separated axially from the ring the exponential factors ensure rapid convergence. Exactly on the mathematical ring the local potential diverges logarithmically like that of a thin filament; comparing finite-element peak voltages there requires a finite wire cross section or a specified detector average.

An unexpected and testable consequence concerns the source radius. The coupling to mode \(n\) is proportional to \(J_0(j_n s/a)\). It becomes exactly zero when the source sits on a radial node of that mode. The second mode has an interior node at \(s/a=j_1/j_2\simeq0.4357\). A ring there still carries charge and excites many other modes but contributes no second modal coefficient. As an experimental analogy, a weighting potential that changes sign across part of a sensor can receive cancelling contributions from an extended excitation. Here the cancellation is encoded exactly in orthogonality and the pointwise coupling value.

A check independent of the ring-charge normalisation uses reciprocity. Imagine two narrow coaxial source/detector rings of radii \(s,r\), each with the same definition of total charge and voltage measured around its circumference. The modal response contains the symmetric product \(J_0(j_n s/a)J_0(j_n r/a)\) multiplied by a factor that depends only on axial separation. Swapping radius and axial position therefore leaves voltage per total charge unchanged. If a numerical table instead looks symmetric per charge density but not per total ring charge, check whether the radius-dependent integration weights were applied on both deposition and sampling.

Another useful test fixes total deposited charge but reduces a resolved annular thickness around \(s\). First compare with an integral of the analytic ring solution across the same finite distribution. Then take the thin-ring limit at a detector away from the deposition region. Taking grid thickness and source thickness to zero together while comparing a self-voltage at the source conflates numerical refinement with a mathematically singular observable. Stating detector location, normalisation and order of limits turns a superficially straightforward ring source into a robust benchmark for cylindrical Poisson solvers.

Measure a radial cylindrical mode

Change the electrode mode and compare radial nodes with axial decay. A cylindrical boundary chooses a different eigenbasis from a rectangular one.

A cylindrical interface can carry induced bound charge with an entirely radial field

Separate the two charges detected at a coaxial material boundary

A long coaxial gap contains two homogeneous radial layers with interface at \(s\), no free sheet there and fixed inner line charge \(+\lambda\). Find the bound interface charge per length, verify it from the field jump, and determine the interface radius at which the layers take equal voltages. Evaluate the result for \(a=2\) mm, \(b=18\) mm and relative permittivities 2 and 4.

Derive and check the result

For both regions \(D_r=\lambda/(2\pi r)\). In material \(i\) the polarisation is \(P_i=D_r(1-\epsilon_0/\epsilon_i)\) along the radial direction. At the interface the outer face of material 1 has bound density \(+P_1\), the inner face of material 2 has \(-P_2\). Their sum times the circumference gives bound line charge \(\lambda_b=\lambda(\epsilon_0/\epsilon_2-\epsilon_0/\epsilon_1)\). It equals \(-\lambda/4\) for the given ordering; the value per length is independent of \(s\) because the \(1/s\) field cancels the interface circumference. A local density meter would see a different value at a different radius even though the integrated result stays the same.

Direct use of Gauss's law for the true electric field gives \(\epsilon_0\,2\pi s(E_{2r}-E_{1r})=\lambda[\epsilon_0/\epsilon_2-\epsilon_0/\epsilon_1]\), confirming the sign and magnitude. A check with displacement alone gives zero jump and thus correctly reports no free charge at that same surface. The two field laws answer different questions. Extending the shell calculation to include both exterior material faces returns zero total bound charge per material, so the internal negative interface charge never represents a net creation of charge.

The voltage drops are proportional to \(\ln(s/a)/\epsilon_1\) and \(\ln(b/s)/\epsilon_2\). Equality gives \(s^{\epsilon_1+\epsilon_2}=a^{\epsilon_2}b^{\epsilon_1}\), or \(s=a(b/a)^{\epsilon_1/(\epsilon_1+\epsilon_2)}\), a dimensionally transparent form. Numerically \(s=2(9)^{1/3}=4.16\) mm. A half-voltage location at 4.16 mm is far from the arithmetic centre of this gap. It is also distinct from the 6.0 mm geometric mean for a homogeneous annulus, because the inner lower-permittivity layer needs less geometric thickness to take the same voltage.

Tutorial · radial modes with different physical boundaries

Replace the grounded wall by a reflecting boundary

A long tube has \(\partial_r V=0\) on its side instead of \(V=0\), and its end voltage profile is nonuniform. What happens to the radial eigenvalues and to the assertion that every end disturbance dies away?

Work through the solution

The wall now requires

\[J'_0(ka)=-J_1(ka)=0.\]

In addition a constant radial mode with \(k=0\) satisfies both side and axis conditions. Its axial equation is \(Z''=0\), so boundedness allows a constant component. The end profile's weighted cross-sectional mean supplies that persistent offset. Only the components orthogonal to the constant decay. Requiring the potential to tend to zero at infinity while prescribing a nonzero mean cap voltage would be incompatible for this insulated side model unless other boundaries or sources are introduced.

Infer a radial charge density from a coaxial reading

Suppose the measured potential in a coaxial gap is \(V=A\ln(b/r)+B(b^2-r^2)\) with constant permittivity. Determine the volume charge and the signs of its contribution to the two face fluxes. Which part can be changed by externally altering the applied voltage at fixed charge density?

Work through the solution

The logarithmic term is harmonic away from the excluded axis. For the quadratic term \(\nabla_r^2[-Br^2]=-4B\), giving uniform \(\rho=4\epsilon B\). The radial field is \(A/r+2Br\). The net outward displacement flux through the gap per length is \(2\pi\epsilon[bE(b)-aE(a)]=4\pi\epsilon B(b^2-a^2)\), exactly \(\rho\pi(b^2-a^2)\). At positive \(B\) the quadratic term contributes positive outer flux and negative inward-face flux, with the larger outer contribution from both area and field. Changing only the source-free boundary excitation adds a logarithmic term and, if the reference permits it, a constant. It alters both field readings without altering the inferred uniform volume density.

Further reading

A converged field solver can still give the wrong voltage

Verify a two-dimensional electrostatic calculation with two independent charge patterns. Use symmetry to distinguish a transposed output, a coarse mesh and a poorly converged linear solve.

Choose a voltage before choosing a solver

A very long grounded tube has a square cross section \(0\le x,y\le L\), with \(L=1\) m. The contents are uniform along the axis. A model of its transverse charge density should predict what a voltage probe placed inside would measure. Three numerical statements that can sound similar are actually quite different: the discrete equations have a small residual, the grid solution approximates the continuous solution, and the physical source describes the tube. We can test the first two in a laboratory problem where the last is specified exactly.

Start by prescribing a voltage that satisfies all four walls. Introduce \(s_m(x)=\sin(m\pi x/L)\) and choose \(V_*(x,y)=[s_1(x)+g s_2(x)]s_1(y)\) volts. The parameter \(g\) is the signed amplitude of the second spatial pattern relative to the first. A probe at the centre sees exactly 1 V for every \(g\), since \(s_2(L/2)=0\). A calculation checked at that point alone could entirely lose the second pattern and still pass. At \(x=L/4\) on the centreline, \(V_*=1/\sqrt2+g\); at \(3L/4\) it is \(1/\sqrt2-g\). Their difference is \(2g\) volts. First write down all three expected readings for \(g=0.5\).

Manufacture the source by differentiating the field

The physical problem uses Gauss's law and the electrostatic relation \(\mathbf E=-\nabla V\). For uniform vacuum permittivity they yield

\[-\nabla^2V=\rho/\epsilon_0.\]

A product \(s_m(x)s_1(y)\) returns the factor \((m^2+1)\pi^2/L^2\) when acted on by the negative Laplacian. Applying this separately to the two patterns gives

\[\rho/\epsilon_0=(\pi/L)^2[2s_1(x)+5g s_2(x)]s_1(y)\ {\rm V}.\]

The right side has dimensions V/m² after including the factor \(L^{-2}\); multiplication by permittivity gives C/m³. When \(g\) becomes large enough, part of the imposed density changes sign. That is permissible for a manufactured source. The calculation represents a solution of the stated Poisson problem. Judging whether a particular apparatus could maintain that charge requires its own charge-transport model.

Uniqueness gives the reference solution special status. If there were a different voltage for the same walls and charge, their difference \(w\) would satisfy Laplace's equation with zero boundary value. Integrate \(w(-\nabla^2 w)\) over the square. Integration by parts leaves \(\int|\nabla w|^2\), because \(w\) is zero on the boundary. The integral must vanish; \(w\) is constant and its boundary makes that constant zero. This is why agreement with the manufactured voltage is a test of the solver and its input, rather than a choice between two physical solutions.

Background · How can the same source test a second boundary condition?

A smooth manufactured solution that vanishes on every edge tests a homogeneous Dirichlet solve. A code that incorrectly sets every requested boundary voltage to zero may still pass. Add a harmonic lift to the known field on a square of width \(L\). For a constant permittivity the charge depends on the Laplacian, so the exact source is unchanged.

\[\widetilde V(x,y)=V(x,y)+V_0\!\left(1+\frac{x}{L}\right),\]
\[-\epsilon\nabla^2\widetilde V=-\epsilon\nabla^2 V.\]

Prescribe the lifted values on all four sides and solve again using the same charge samples. The difference of the computed solutions should be the linear lift, which a centred second difference represents exactly on a uniform grid. A discrepancy points first to boundary-value handling or to the way known values enter the right-hand side. This comparison isolates that error from the truncation error on the original sine modes.

Solve the discrete problem on paper as a second reference

Let \(h=L/n\). The standard negative Laplacian has centre coefficient \(4/h^2\) and four neighbouring coefficients \(-1/h^2\). Substitute the samples of \(s_m(x)s_1(y)\). In the \(x\) direction the sum of forward and backward neighbours is twice the centre value times \(\cos(m\pi/n)\). Collect the corresponding \(y\) term. The resulting positive grid eigenvalue is

\[\lambda_{h,m}=\frac{4}{h^2}\left[\sin^2\!\frac{m\pi}{2n}+\sin^2\!\frac{\pi}{2n}\right].\]

The continuum eigenvalue is \(\lambda_m=(m^2+1)(\pi/L)^2\). If the source is the continuous source sampled at the nodes, the discrete voltage coefficient is multiplied by \(\lambda_m/\lambda_{h,m}\). Since \(\sin z<z\) for positive \(z\), each factor exceeds one on a resolving grid. The faster spatial oscillation has the larger relative bias. The resulting total pointwise error can still change sign because the spatial modes themselves have signs.

This provides three independent calculations: a continuous closed-form field, an exact solution of the chosen difference equations and a numerical linear solve. Agreement of the latter two isolates assembly, indexing and algebraic errors. Comparing either with the continuous solution measures spatial discretisation error. Tightening an iterative tolerance indefinitely cannot remove a difference between \(\lambda_{h,m}\) and \(\lambda_m\).

Run the full field and compare genuinely different observations

The browser constructs the right-hand side over the two-dimensional interior and applies conjugate gradients to the five-point operator from an all-zero initial field. The two-mode right-hand side belongs to a two-dimensional invariant subspace, so exact-arithmetic convergence takes at most two iterations. In the special case \(g=0\), only one mode is excited. This unusually small iteration count is a property of the test and says very little about a rough source on the same grid.

Download the model and run the displayed case. Its CSV contains the midline \(y=L/2\), ordered by increasing \(x\). For \(n=16,\ g=2\) the value at \(x=0.1875\) m is about 2.42542 V on the grid and 2.40333 V analytically. If the centre is correct but the 0.1875 m reading is about 0.55736 V, check the orientation of the sampled data array. Keeping \(x\) fixed at its midpoint instead of \(y\) happens to annihilate the entire second mode.

A convergence report a second person can reproduce

Set \(g=0.5\). Record the centre voltage, the quarter-point voltage difference, the largest nodal error and the relative algebraic residual for \(n=8,16,32\). Use even grids divisible by four if reading exact quarter points. Estimate an order from two successive maximum errors using \(p=\log(E_n/E_{2n})/\log2\). For this smooth problem the leading difference between \(\sin^2 z\) and \(z^2\) is proportional to \(z^4\), giving a second-order spatial error at fixed physical modes. If \(g\) or the physical source profile changes during refinement, the ratio no longer tests that claim.

An experiment that quotes only the centre voltage has poor sensitivity to \(g\). An experiment quoting only the algebraic residual may perfectly solve the wrong mesh problem. An experiment that compares each plot to itself after smoothing lacks an independent reference. The three diagnostics above address these difficulties with quantities small enough to check by hand.

Extend the verification to a genuinely three-dimensional field

Ground all six faces of a cube with side length L=1 m. A potential that varies in every coordinate is

\[V_*(x,y,z)=A\sin(\pi x/L)\sin(\pi y/L)\sin(\pi z/L),\]
\[\rho=3\epsilon(\pi/L)^2 V_*.\]

Each second derivative contributes −(π/L)² times the potential. Adding the three derivatives gives the source above; every boundary vanishes because one sine is zero. This is a manufactured source for checking a numerical method. In the supplied calculation ε=1 F/m and A=1 V; scaling both charge and permittivity together leaves the voltage unchanged.

On a uniform nodal grid, the seven-point negative Laplacian has centre coefficient 6/h² and six neighbour coefficients −1/h². The same sine addition identity used in two dimensions gives

\[\lambda_h={12\over h^2}\sin^2\!\left({\pi h\over2L}\right),\]
\[V_h={3(\pi/L)^2\over\lambda_h}V_* .\]

The browser evaluates this discrete eigenmode directly. The spatial view places a coloured slice inside the cube; its height is the physical z coordinate. Moving that slice reveals the interior field while the companion line plot compares the grid values with the exact three-dimensional solution. The numerical potential is slightly too large because λh is smaller than its continuum limit.

Try it · Rotate a 3D field, move its slice and refine its mesh

Move the plane from the centre to a grounded face and predict the change. Then compare 8 and 16 cells per direction: the maximum nodal error should decrease by approximately four. Doubling A doubles the absolute error while leaving the relative error almost unchanged. Rotation changes the viewpoint only.

Download the 3D OneSimulation notebook · Download Python script

The notebook assembles and solves the full 3D OneSimulation finite-difference model. It reports an RMS error at cell centres; the browser reports a maximum error at nodes for its stated seven-point operator. These are different diagnostics. Compare each against its own continuous reference and repeat with a finer mesh.

"""Solve a grounded three-dimensional cube with OneSimulation and verify the field."""
import argparse
from dataclasses import dataclass
import numpy as np
import matplotlib.pyplot as plt
from onesim.cad.d3 import Box
from onesim.meshing import StructuredHexahedralMesher
from onesim.numerics import Numerics
from onesim.numerics.linear import SparseDirect
from onesim.numerics.fdm import FiniteDifference, CentralDifference, CentralLaplacian
from onesim.physics.electrostatics import FixedPotential, PoissonEquation
from onesim.simulation import Problem, Simulation

parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--cells', type=int, default=16)
parser.add_argument('--amplitude', type=float, default=1.0, help='Reference potential amplitude in V')
parser.add_argument('--slice', type=float, default=50, help='Depth as a percentage of the cube')
args = parser.parse_args()
if not 8 <= args.cells <= 24 or not np.isfinite(args.amplitude) or args.amplitude <= 0 or not 0 <= args.slice <= 100:
    parser.error('Use 8–24 cells, a finite positive amplitude, and a slice between 0 and 100 percent')

@dataclass(frozen=True)
class Permittivity:
    unit = 'F/m'
    def evaluate(self, **state):
        return 1.0

cube = Box(length=1, width=1, height=1)
exact = lambda x, y, z: args.amplitude * np.sin(np.pi*x) * np.sin(np.pi*y) * np.sin(np.pi*z)
field = PoissonEquation(domain=cube.volume, permittivity=Permittivity(),
                        charge_density=lambda x, y, z: 3*np.pi**2*exact(x,y,z))
problem = Problem(name='Three-dimensional manufactured potential', geometry=cube, physics=(field,),
                  boundary_conditions=(FixedPotential(physics=field, boundary=cube.boundaries.all, value=0.0),))
mesh = StructuredHexahedralMesher(cells=(args.cells,)*3).generate(cube)
simulation = Simulation(problem=problem, mesh=mesh, numerics=Numerics(
    spatial=FiniteDifference(gradient=CentralDifference(), diffusion=CentralLaplacian()),
    linear_solver=SparseDirect()))
simulation.validate().require_valid()
result = simulation.solve_stationary()
potential = result.field(field.potential)
centres = mesh.coordinates[mesh.cells].mean(axis=1)
computed = potential.evaluate(centres)
reference = exact(*centres.T)
error = np.sqrt(np.mean((computed-reference)**2))
z = round(args.cells*args.slice/100)/args.cells
print(f'{args.cells}³ cells; source amplitude {args.amplitude:g} V; slice z={z:.3f} m')
print(f'Cell-centre RMS error against the exact 3D solution: {error:.6e} V')

x = np.linspace(0,1,41)
X,Y = np.meshgrid(x,x)
points = np.column_stack([X.ravel(),Y.ravel(),np.full(X.size,z)])
V = potential.evaluate(points).reshape(X.shape)
line = np.column_stack([x,np.full_like(x,.5),np.full_like(x,z)])
fig = plt.figure(figsize=(10,4),layout='constrained')
ax = fig.add_subplot(121,projection='3d')
surface = ax.plot_surface(X,Y,V,cmap='viridis',linewidth=0)
ax.set(xlabel='x (m)',ylabel='y (m)',zlabel='Potential (V)',title=f'Computed slice at z={z:g} m')
ax = fig.add_subplot(122)
ax.plot(x,potential.evaluate(line),'o',markevery=2,label='OneSimulation FDM')
ax.plot(x,exact(x,.5,z),'--',label='Exact 3D solution')
ax.set(xlabel='x at y=0.5 m (m)',ylabel='Potential (V)')
ax.grid(alpha=.2); ax.legend()
fig.savefig('poisson-cube-3d.png',dpi=170)
assert np.isfinite(error) and error/args.amplitude < .02

Measured output at the default settings:

16³ cells; source amplitude 1 V; slice z=0.500 m
Cell-centre RMS error against the exact 3D solution: 1.138076e-03 V
OneSimulation potential on the midplane of a grounded three-dimensional cube, with a centreline comparison to the exact solution
Actual OneSimulation output. Here the left panel plots potential as height above the selected x–y plane; the right panel compares the same field along y=0.5 m.

Tutorial

A colleague sets \(g=-0.4\) and reports quarter-point voltages 1.107 V and 0.307 V on a very fine grid. Which change in the recorded setup would explain the observation?

Work through the solution

For the stated sign, the expected pair in increasing \(x\) is 0.3071 V then 1.1071 V. Reversing the \(x\) axis interchanges the pair while preserving the centre and the symmetric mode. Reversing the sign of the second source mode produces the same pair. A field measurement with a labelled coordinate direction distinguishes these possibilities.

You prescribe the discrete eigenvalue as the source amplitude during every refinement. The returned solution agrees with your analytic curve at all nodes to machine precision. Which part of the verification has disappeared?

Work through the solution

This tests the algebra of the discrete eigenmode and the linear solve. It changes the continuum source on every grid and cancels exactly the spatial discretisation error you intended to measure. Rerun with a wavelength and source amplitude specified in physical units independently of the grid.

A second probe has independent voltage noise of standard deviation 5 mV. Estimate the standard deviation of \(g\) inferred from the difference of the two quarter-point readings, if both probes have the same independent noise.

Work through the solution

The difference has variance \(2(0.005)^2\) V² and equals \(2g\) volts. Dividing by two gives standard deviation \(0.005/\sqrt2\simeq0.00354\) in the dimensionless amplitude. A shared additive offset cancels; a gain error common to both readings does not.

Measure the capacitance of a continuously graded dielectric

Find the exact solution of a variable-coefficient field equation, then estimate the same capacitance from charge, voltage drop and electrostatic energy.

Build the problem from what is continuous

Two very large parallel plates are separated by \(L=1\) m. Set their potentials to 0 and 1 V. Edge effects are negligible in the observation region. The relative permittivity of the material varies as \(\epsilon_r(x)=1+g x/L\), where \(g\ge0\). There is no free volume charge. A common first guess is a linear potential between the plates, because the boundary voltages impose an average field. Test that guess using the local field law.

For a thin pillbox whose faces are perpendicular to \(x\), zero enclosed free charge means equal normal displacement at both faces. Let \(D_*>0\) denote the magnitude of the constant displacement. Since potential increases with \(x\), the electric field points towards negative \(x\) and \(D_x=-D_*\). Hence \(V'=D_*/[\epsilon_0(1+g x/L)]\). Regions of low permittivity must sustain a larger electric field and account for a larger voltage drop per metre. We have a local constraint before solving a single matrix equation.

Obtain the voltage and both expressions for capacitance

Integrate \(V'\) from left to right and impose \(V(L)-V(0)=\Delta V\). For \(g>0\) this gives

\[\frac{C}{A}=\frac{D_*}{\Delta V}=\frac{\epsilon_0}{L}\frac{g}{\log(1+g)},\]
\[\frac{V(x)}{\Delta V}=\frac{\log(1+gx/L)}{\log(1+g)}.\]

As \(g\) approaches zero, both expressions have removable singularities. Since \(\log(1+g)=g-g^2/2+O(g^3)\), the effective relative permittivity approaches \(1+g/2+O(g^2)\). An arithmetic average can therefore look convincing at very small gradients despite having the wrong general derivation. For computation near zero, use a logarithm specifically evaluated as \(\log(1+g)\) with a small-argument routine such as log1p.

Check the result through stored energy. Each volume element contributes \(\epsilon E^2/2\), so

\[U/A=(D_*^2/2)\int_0^L dx/\epsilon(x).\]

Substituting the voltage relation gives

\[U/A=D_*\Delta V/2.\]

The same capacitance follows from \(C/A=2U/(A\Delta V^2)\). This equality requires a linear, lossless dielectric and a reversible charging path. A material whose permittivity changes with field needs the corresponding integral over the constitutive curve.

Work one case numerically before assembling the grid

At \(g=3\), the material goes from relative permittivity 1 to 4. The effective value is \(3/\log4\simeq2.1640\), smaller than the arithmetic mean 2.5. The midplane voltage is \(\log2.5/\log4\simeq0.6610\) V, not 0.5 V. The electric field at the left is four times as large as at the right. A measurement of the midpoint voltage alone is enough to reject a uniform-field model if the plates and material are well characterised.

As a dimensional check, \(C/A\simeq19.16\) pF/m² for \(L=1\) m. For a geometrically similar layer one millimetre thick the same effective permittivity gives \(19.16\) nF/m². The voltage profile versus \(x/L\) stays fixed when \(g\) and the plate voltages stay fixed, while the field and free surface charge increase in inverse proportion to separation.

Assemble by balancing fluxes before dividing by a coefficient

Divide the gap into \(n\) cells. Across cell \(i\) approximate the displacement magnitude by \(D_i=\epsilon_{i+1/2}(V_{i+1}-V_i)/h\). Enforcing \(D_i=D_{i-1}\) at each internal node gives a tridiagonal linear system. An independent route views each cell as a capacitor with inverse capacitance per area \(h/\epsilon_{i+1/2}\). These series contributions add, giving \(D_*^{(h)}=\Delta V/\sum h/\epsilon_{i+1/2}\). Cumulative sums of the same drops then recover the entire grid potential. Both routes implement identical physics and the same discrete constitutive assumption.

The browser uses this cumulative series construction. The OneSimulation input instead supplies the spatial coefficient \(1+gx/L\), zero source and the two exterior potential values to the coefficient-form PDE solver. Their agreement checks assembly against a distinct algorithm. In this example the integral of inverse permittivity also tells us what the midpoint discretisation approximates. Since \(1/(1+gx/L)\) is convex, midpoint quadrature underestimates its integral and therefore overestimates capacitance. This predicts the bias before looking at a convergence table.

Compare a local field measurement with an integral quantity

In the experiment, plot \(V\) across the dielectric and record the effective relative permittivity. At \(g=2\), \(n=16\), the computed potential at \(x=0.1875\) m is about 0.28974 V; the analytical reference is about 0.28987 V. The potential there is low while the computed capacitance is high. A voltage error at an arbitrary coordinate need not share the sign of the error in an integral quantity.

Now estimate the left electric field from the first-cell drop and from the analytical derivative at \(x=0\). The first-cell drop divided by \(h\) is an average across that cell, representing its midpoint to second order for a smooth field. Interpreting it as a value exactly at the wall introduces an \(O(h)\) offset. Label sample positions when comparing a derivative against an analytic curve. The grid solution can converge quadratically in voltage while a carelessly placed flux diagnostic appears first order.

Tutorial

The gradient is reversed so \(\epsilon_r=1+g(1-x/L)\), but the plates remain at the same voltages. Which earlier observations change?

Work through the solution

The integral of inverse permittivity is invariant under \(x\mapsto L-x\), so the capacitance and stored energy stay the same. The new potential obeys \(V_{\rm rev}(x)=\Delta V-V(L-x)\). The largest field is now at the right wall, and the midpoint voltage at \(g=3\) falls from about 0.661 to 0.339 V.

A sensor measures an apparently linear voltage profile and \(C/A\) greater than the vacuum value. Is the inferred dielectric necessarily uniform?

Work through the solution

Under the one-dimensional, source-free and linear assumptions, exactly constant nonzero field and constant normal displacement require constant permittivity. A sparse set of voltage probes may simply undersample a graded profile. Lateral variation, free volume charge or uncertain boundary voltages would break the inference.

Derive bounds on the effective permittivity if only its material range \(\epsilon_{\min}\) to \(\epsilon_{\max}\) is trusted.

Work through the solution

Integrate \(1/\epsilon_{\max}\le1/\epsilon(x)\le1/\epsilon_{\min}\), multiply by \(1/L\), and invert the positive quantities. The effective value lies between these two limits. A simulation reporting an effective permittivity outside that interval in this passive one-dimensional model fails this check regardless of mesh resolution.

Is a computed screening layer resolved?

Use a measured decay length to select a mesh, derive the exact discrete penetration constant and decide whether a discrepancy belongs to the physical screening law or the numerical grid.

Derive the screened field and state its range

A dilute sample adjacent to an electrode can often be approximated, for small applied potentials, by a relation \(\rho(x)=-\epsilon V(x)/\lambda^2\). It says that an excess positive potential attracts net negative charge. The parameter \(\lambda\) is independently calibrated for the ambient material. Combining this relation with Poisson's equation yields

\[V''=V/\lambda^2.\]

A plus sign is essential: the physical disturbance decays into the sample. Changing the sign would turn a decaying layer into an oscillatory boundary-value problem.

Set \(V(0)=V_s\) and \(V(L)=0\). Scale the voltage by \(V_s\), position by \(L\), and write \(g=L/\lambda\). The dimensionless problem is

\[-u''+g^2u=0,\ u(0)=1,\ u(1)=0.\]

The program solves for unit boundary voltage as a normalisation. For a dilute monovalent electrolyte at room temperature the linearised microscopic model requires the physical \(|V_s|\) to be small compared with \(k_BT/e\), roughly 26 mV. A computed unit-amplitude solution can represent a small physical voltage by multiplication. Applying 1 physical volt to the linearised electrolyte would generally exceed this assumption.

Solve the finite slab before taking the half-space limit

The general solution contains \(e^{gx}\) and \(e^{-gx}\). Impose the right voltage first, using \(\sinh[g(1-x)]\), then divide by \(\sinh g\) to set the left voltage. Thus \(u=\sinh[g(1-x)]/\sinh g\). For \(g=0\) take the limit to get \(u=1-x\). For a thick slab and fixed physical distance from the left, use \(e^{-gx}(1-e^{-2g(1-x)})/(1-e^{-2g})\). Close to the right wall the subtracted exponential is needed to satisfy grounding. In the interior many screening lengths away, even a big relative error can correspond to a negligible physical voltage.

At \(g=4\), the midpoint voltage fraction is \(1/(2\cosh 2)\simeq0.1329\). The half-space estimate is

\[e^{-2}=0.1353.\]

A sample only four screening lengths across is already close to the half-space answer at its middle, though its right edge still has exactly zero voltage rather than \(e^{-4}\). Determine where your instrument can distinguish the profiles before treating one as a better physical model.

Obtain the grid behaviour without running a solver

With grid spacing \(h=1/n\), the interior stencil is

\[-u_{i-1}+(2+g^2h^2)u_i-u_{i+1}=0.\]

Try a geometric progression \(u_i=e^{-\gamma_h i h}\). Divide through by the trial value. The sum of its neighbours gives

\[2\cosh(\gamma_h h)=2+(gh)^2.\]

Since \(\cosh(2z)=1+2\sinh^2z\), the effective decay constant is

\[\gamma_h=\frac{2}{h}\operatorname{asinh}(gh/2)=g-\frac{g^3h^2}{24}+O(g^5h^4).\]

Thus the numerical layer is slightly too broad for a coarse mesh. The relevant resolution is \(gh=h/\lambda\) in consistent units, not the cell count alone. Keeping \(n\) fixed while increasing \(g\) makes a visually unchanged mesh physically coarser. The finite-slab grid reference follows by replacing \(g\) with \(\gamma_h\) in the hyperbolic-sine ratio at the nodes.

Separate the physical and computational experiments

The browser solves the tridiagonal boundary equations by forward elimination and backward substitution. The downloadable OneSimulation model supplies an absorption term \(g^2u\) and the same two Dirichlet values. For \(g=2,\ n=16\), the potential fraction at \(x=0.1875\) is about 0.67311 on the grid and 0.67297 in the continuum. Reverse the grid spacing in the analytical expression for \(\gamma_h\) and independently predict whether doubling the number of cells raises or lowers the estimate there.

A typical measurement infers a length from the logarithmic slope,

\[1/\lambda_{\rm fit}=-d\log V/dx.\]

For two nearby positive voltages use the difference of their logarithms divided by probe separation. As \(V\) approaches the instrument floor, small absolute noise has a large effect on this ratio. At the grounded right wall the logarithm does not exist. Exclude that point and justify the usable region using both boundary physics and noise. Refining the field mesh cannot improve a voltage measurement below its resolution.

Tutorial

A grid has 16 cells and \(g=16\). Predict the fractional error in the effective decay rate, using the exact discrete expression rather than only the expansion.

Work through the solution

Here \(gh=1\), so

\[\gamma_h/g=2\operatorname{asinh}(0.5)\simeq0.9624.\]

The numerical decay is slow by about 3.76%. The quadratic estimate gives 4.17%, reasonable but visibly imperfect at one cell per screening length.

For a desired relative decay-rate error below 0.1%, estimate the largest acceptable \(gh\) in the small-step regime.

Work through the solution

The leading relative error is \((gh)^2/24\). Requiring it below 0.001 gives \(gh<0.155\), approximately 6.5 cells per screening length. This condition concerns the exponential rate. The derivative at the electrode may need a separate boundary stencil and its own check.

A calibration reports a longer decay length as electrode voltage increases, even after mesh refinement. Can the numerical dispersion formula alone explain this trend?

Work through the solution

In the linear model the normalised profile is independent of the voltage amplitude. The discretisation error depends on \(g\) and the mesh. At fixed \(g,n\) it cannot create an amplitude-dependent normalised length. Recheck the linear-response regime, electrode boundary condition and instrument response before fitting a new \(\lambda\).

What can a mesh measure about a point charge?

Distinguish conserved charge and measurable exterior fields from a numerical peak that diverges as the source becomes more localised.

Ask three detectors different questions

Imagine three instruments looking at a small charged body in vacuum. One measures the voltage on a spherical probe outside it, one measures the integrated electric flux through a closed surface, and one estimates the largest electric field somewhere near the source. If the body is idealised as a point, which readings have finite limits? The distinction matters when a calculation displays a dramatic change in maximum field after a perfectly reasonable mesh refinement.

For a positive point charge \(q\), the exterior potential \(V=kq/r\) tends to infinity as the observation point approaches the source. Its radial field magnitude \(kq/r^2\) also diverges. Gauss's law gives a different answer for the flux through any sphere of positive radius:

\[4\pi r^2E=q/\epsilon_0.\]

A finite integral and an unbounded maximum are compatible. Knowing what the instrument measures determines which numerical output should be expected to converge.

Use a smooth source with a known answer

Replace the potential by \(V_a=kq/\sqrt{r^2+a^2}\), with \(a>0\) a distance. This is a particular physical regularisation. Differentiating before sampling gives

\[E_a=kq r/(r^2+a^2)^{3/2}.\]

Divide the flux by \(q/\epsilon_0\). The putative enclosed-charge fraction becomes

\[F_a(r)=\frac{r^3}{(r^2+a^2)^{3/2}}.\]

To recover the corresponding density, differentiate \(qF_a(r)\) with respect to radius and divide by shell area. The terms involving \(r^4\) cancel, leaving \(\rho_a(r)=3qa^2/[4\pi(r^2+a^2)^{5/2}]\). This density is smooth, nonnegative and integrates over all space to \(q\), since \(F_a(0)=0\) and \(F_a(\infty)=1\). It has an extended tail. The parameter \(a\) is a smoothing scale rather than an outer radius where charge abruptly stops.

At \(r=a\) only \(1/(2\sqrt2)\), about 35.36%, of the charge is enclosed. At \(r=2a\) the fraction is about 71.55%. A common intuition that two smoothing distances already contain essentially everything fails for this distribution. Measure the probe radius in units of the source size before blaming the flux calculation.

Hold the observable fixed while refining

The exterior-field ratio relative to the true point charge is \([1+(a/r)^2]^{-3/2}\). At fixed physical \(r\), expanding the bracket gives \(1-\tfrac32(a/r)^2+O((a/r)^4)\). Thus a probe far enough away sees a second-order regularisation error. Locating the maximum of \(E_a\), however, requires setting \(a^2-2r^2=0\), giving \(r=a/\sqrt2\) and a peak proportional to \(1/a^2\). Refine \(a\) and move the observer with the maximum: the reported peak grows even as a fixed exterior probe reading converges.

Keep the probe at 6 mm and reduce \(a\) from 3 to 1.5 mm. The flux rises from about 71.55% to 91.31% of the point-charge value. Now instead halve both the probe radius and \(a\). The measured fraction stays the same. The two procedures have distinct limiting observations; writing “halve the mesh” without recording the source representation and probe definition would make the experiment irreproducible.

Use continuity as a numerical diagnostic

Suppose a code deposits a prescribed charge into nearby cells and then solves for a nodal potential. Summing deposited cell charges tests normalisation of the source. Summing outward face fluxes over a larger box tests a separate constraint on the computed field. A correct finite-volume implementation cancels interior face pairs. Interpolating a nodal field to a smooth plotting surface with an unrelated quadrature need not conserve the same discrete quantity. A box-flux test using the solver's own numerical face fluxes and a smooth-surface test using the reconstructed field answer complementary questions.

A second check concerns energy. For a true point charge the field-energy integral near the origin scales as \(\int_0 r^2(r^{-2})^2dr\), which diverges. For a body of radius \(a\) this short-distance contribution typically scales like \(1/a\). Comparing two source regularisations through their total self-energy without specifying a physical charge radius is therefore an ill-defined validation exercise. Interaction energy with a smooth distant field, in contrast, can have a well-defined point-particle limit.

Tutorial

How far from this smooth charge should a flux probe be placed to enclose 99%?

Work through the solution

Solve \([1+(a/r)^2]^{-3/2}=0.99\). This gives

\[r/a=[0.99^{-2/3}-1]^{-1/2}\simeq12.2.\]

The answer depends on the chosen source shape. A uniform finite ball would have a different exterior behaviour.

A code uses \(a=2h\) and reports the field one cell away, \(r=h\), on every refined mesh. What do you expect for its flux fraction and pointwise field?

Work through the solution

The fixed ratio \(a/r=2\) gives \(F=5^{-3/2}\simeq0.0894\) at every resolution. The field still scales as \(r^{-2}\) times that factor and grows like \(h^{-2}\). The observer is moving towards the singular source.

If total deposited charge differs from \(q\) by 2% independently of mesh size, can adjusting \(a\) cure the exterior result?

Work through the solution

At large radius the flux follows the total charge that was actually deposited. Changing width cannot repair an incorrect integral. Fix the source normalisation and cell-volume weights before interpreting a convergence slope.

Heat, momentum and wave transport

Test the same spatial method on diffusion, a propagating pulse and an elastic mode. Compare dissipation, dispersion and boundary residuals on a common footing.

  1. How a moving wall sends momentum into a liquid
  2. Critical depth and the hydraulic jump
  3. Thermal diffusion and transient surface cooling
  4. A moving boundary in a freezing layer
  5. How a longitudinal pulse reflects from a change in rod section
  6. Why the frequencies of a bending beam are not equally spaced
  7. How a magnetic field relaxes into a finite conductor
  8. Posing an electromagnetic evolution problem
  9. Measure the phase speed of a numerical electromagnetic wave
  10. Action density, stress waves and the boundary that reflects them
  11. From binary collisions to the Boltzmann equation
  12. Transport coefficients from equilibrium fluctuations

How a moving wall sends momentum into a liquid

A plate oscillating horizontally in a deep bath has no average velocity. It nevertheless dissipates energy continuously. A velocity measurement at two heights can reveal the fluid’s viscosity.

Keep the unsteady term in a parallel flow

Let \(y\) increase upward from a very broad, horizontal plate. The liquid is Newtonian and incompressible with constant kinematic viscosity \(\nu\); the plate moves parallel to itself with speed \(U\cos\omega t\). Ignore edges, any pressure gradient along the plate and transients left from starting the motion. By symmetry the velocity has a single component \(u(y,t)\). A parcel has no vertical speed and meets no streamwise velocity variation, so convective acceleration vanishes even though the motion is time dependent. Horizontal momentum balance on a slice of thickness \(dy\) compares its acceleration with the shear-stress difference on its two faces.

\[\rho\,dy\,\partial_t u=\tau(y+dy)-\tau(y),\]
\[\tau=\mu\,\partial_yu,\]
\[\partial_tu=\nu\partial_y^2u .\]

Velocity is prescribed at the plate by no slip and tends to zero far away. The same equation describes thermal diffusion with temperature in place of velocity. Here the quantity transferred is horizontal momentum, and a velocity gradient sets its transfer rate.

Read decay and phase from one complex root

Represent periodic velocity by the real part of \(\widehat u(y)e^{i\omega t}\). Inserting it into the equation gives

\[\widehat u''=(i\omega/\nu)\widehat u.\]

Since \((1+i)^2=2i\), the decaying branch of the solution has an exponent with equal real and imaginary parts.

\[\delta=\sqrt{2\nu/\omega},\]
\[u(y,t)=Ue^{-y/\delta}\cos(\omega t-y/\delta).\]

Every increase in height by \(\delta\) divides the amplitude by \(e\) and delays the phase by one radian. This \(\delta\) is a scale rather than a physical edge. The unbounded solution requires the top and sidewalls to be far enough away for the amplitude there to be negligible. At five penetration depths it is less than one percent of its value at the plate.

Worked example · interpret a submerged velocity probe

In an oil with \(\nu=5.0\times10^{-5}\) m²/s, set \(f=2.00\) Hz and \(U=0.080\) m/s. Using \(\omega=2\pi f\) gives \(\delta=2.82\) mm. At 3.00 mm the predicted amplitude is

\[0.080e^{-3/2.82}=0.0276\,\mathrm{m/s}.\]

The phase lag is 1.06 rad or 0.0846 s. A synchronized velocity snapshot can therefore show nearly stationary liquid while the wall speed is large. A single instantaneous ratio generally differs from the ratio of fitted amplitudes.

Worked example · power delivered to the wall layer

The wall exerts on the fluid a tangential traction \(-\mu u_y(0,t)\). Its complex amplitude is \(\mu U(1+i)/\delta\). Only the in-phase part contributes to power averaged over a cycle, since averaging a product of two cosines gives one half of the cosine of their phase difference. Thus

\[\overline P/A=\mu U^2/(2\delta).\]

For the same oil at density 900 kg/m³, \(\mu=0.045\) Pa s and the mean power is 0.0510 W/m². The positive value is consistent with viscous dissipation even though mean shear and mean speed separately vanish.

Freeze the phase at a quarter cycle and find the depth at which the velocity first changes sign away from the wall. Sweep the phase to distinguish that moving zero from the stationary amplitude envelope, then double the frequency and predict the new penetration depth.

A related OneSimulation calculation

The course flat-plate calculation provides a second momentum-diffusion example. Predict what doubling viscosity does to the measured layer thickness at a fixed downstream station, then compare the square-root scaling across the two geometries.

Measure boundary-layer thickness in OneSimulation

Tutorial · estimate a material property without a force sensor

At 1.00 Hz two probes spaced 2.00 mm vertically report fitted amplitudes in the ratio upper/lower = 0.500. Estimate \(\delta,\nu\), and the phase difference. Identify a measurement that would falsify this model even if the amplitude ratio agreed.

Use both the magnitude and phase predictions

The spacing divided by \(\delta\) is \(\ln2\), giving \(\delta=2.89\) mm. Then \(\nu=\omega\delta^2/2=2.62\times10^{-5}\) m²/s. The upper signal must lag by 0.693 rad, equivalent to 0.110 s. A substantial phase discrepancy suggests confinement, an unremoved transient or motion beyond a one-dimensional shear layer. Fitting both observables is a stronger test than assigning a viscosity to every amplitude pair.

Further reading · MIT 2.25, Stokes’ second problem (PDF)

Critical depth and the hydraulic jump

In a wide shallow channel the same discharge can pass as a shallow fast stream or as a deeper slow stream. A gradual hump and an abrupt jump connect depths through different conservation laws.

Minimise the energy needed to carry a discharge

Use a broad rectangular channel and let \(q=Q/b\) be its volume flow per unit width. At a section with approximately uniform speed \(u\) and water depth \(h\), mass conservation gives \(u=q/h\). Take pressure to be hydrostatic over the depth and neglect losses between adjacent smooth sections. Measured relative to the local channel bottom, specific energy in metres of head is

\[E(h)=h+\frac{q^2}{2gh^2},\]
\[\frac{dE}{dh}=1-\frac{q^2}{gh^3}=1-\mathrm{Fr}^2 .\]

The derivative vanishes at \(h_c=(q^2/g)^{1/3}\), where \(\mathrm{Fr}=u/\sqrt{gh}=1\). The second derivative \(3q^2/(gh^4)\) is positive. Critical depth is the unique minimum, with \(E_c=3h_c/2\). The speed \(\sqrt{gh}\) is the speed of small long gravity waves relative to shallow water. When \(u\) exceeds it, even a disturbance travelling upstream relative to the liquid is carried downstream relative to the bed.

Background · Froude number
\[\mathrm{Fr}=U/\sqrt{gh}\]

For shallow rectangular flow with gravity waves this compares material speed to wave speed. Critical depth occurs when the two are equal.

Worked example · decide if a smooth rise can pass the flow

A channel carries \(q=0.40\) m²/s at depth 0.50 m. Speed is 0.80 m/s and specific energy is

\[0.50+0.80^2/(2g)=0.5326\,\mathrm{m}.\]

Critical depth is 0.2536 m and the minimum specific energy is 0.3804 m. Since total head includes bed elevation, a local rise of up to about 0.152 m can be accommodated in the ideal fixed-upstream-state model. A higher rise requires the upstream water level or discharge to adjust. For a small rise on the subcritical branch the available specific energy decreases and depth decreases toward the critical value.

Keep momentum across a short rapid transition

A hydraulic jump is turbulent and strongly dissipative. Place control surfaces far enough upstream and downstream for pressure to be hydrostatic again. Across a short horizontal reach, neglect net bed shear compared with the momentum and end-pressure forces. The hydrostatic force on an end section is \(\rho g h^2/2\) per unit width, obtained by integrating a triangular pressure profile. Momentum flux is \(\rho q^2/h\). Requiring equal momentum functions gives

\[\frac{h_1^2}{2}+\frac{q^2}{g h_1}=\frac{h_2^2}{2}+\frac{q^2}{g h_2}.\]

Factor out \(h_2-h_1\) and take the distinct-depth root. With \(r=h_2/h_1\), the remaining relation is

\[r(r+1)=2\mathrm{Fr}_1^2.\]

The positive solution and associated energy drop are

\[r=\frac{\sqrt{1+8\mathrm{Fr}_1^2}-1}{2},\]
\[E_1-E_2=\frac{(h_2-h_1)^3}{4h_1h_2}.\]

The loss is positive for a jump from shallow to deep flow. Reversing the depths would require a gain in mechanical energy without a source, which excludes that continuation of the same algebraic equation.

Worked example · locate the conjugate depth

At a flume section let \(h_1=0.100\) m and \(u_1=2.00\) m/s. Then \(q=0.200\) m²/s and \(\mathrm{Fr}_1=2.02\). The depth ratio is 2.40, giving \(h_2\simeq0.240\) m and \(u_2\simeq0.835\) m/s. Upstream energy is 0.304 m and downstream energy about 0.275 m. Momentum balance predicts a head drop near 0.0285 m. Its location along the channel also depends on the imposed tailwater level; the two-section balance itself contains no position variable.

Follow the head over the bump until its horizontal line just touches the energy curve. Estimate the maximum admissible bed rise from the two vertical readings. Predict how changing discharge moves that tangency before changing the input.

Tutorial · infer discharge from two depth gauges

Two gauges straddle a stationary jump and report 0.12 and 0.30 m. Use the momentum relation to recover the discharge per unit width, determine which side is upstream and calculate the specific mechanical-energy loss.

Recover the flow and check its direction

Factoring the momentum equality gives \(q^2=g h_1 h_2(h_1+h_2)/2\), hence \(q=0.2724\) m²/s. The shallow side has speed 2.27 m/s and Froude number 2.09. The deeper side has speed 0.908 m/s and Froude number 0.529. Taking the shallow side upstream yields energy loss \(0.18^3/[4(0.12)(0.30)]=0.0405\) m. Both discharge and the sign of dissipation support this ordering.

Further reading · W. Smyth, All Things Flow, §9.3, hydraulic jumps and bores

Thermal diffusion and transient surface cooling

Use diffusion time, Biot number and penetration depth to choose between a uniform-body model and a spatial temperature field.

From first principles

Derive thermal diffusion from stored energy and conductive flux

Let a stationary homogeneous solid have density \(\rho\), specific heat \(c\) and thermal conductivity \(k\). Assume no heat generation and consider one-dimensional temperature variation. A slice of area \(A\) and thickness \(dx\) stores energy at rate \(\rho c A\,dx\,\partial_tT\). The difference between the conductive flux entering and leaving gives

\[\rho c A\,dx\,\partial_tT=A[q''(x)-q''(x+dx)]\quad\Longrightarrow\quad \rho c\,\partial_tT=-\partial_xq'' .\]

Fourier's law \(q''=-k\partial_xT\) closes this balance. For constant properties the diffusion equation and its characteristic time over distance \(L\) follow:

\[\partial_tT=\alpha\,\partial_{xx}T,\]
\[\alpha=\frac{k}{\rho c},\qquad t_{\rm diff}\sim L^2/\alpha .\]

Initial temperatures and boundary heat-flux or temperature conditions are needed to select a specific solution. If conduction inside the solid is sufficiently rapid relative to transfer at its surface, one can integrate the balance using an almost uniform interior temperature. Comparing the internal and external resistance scales yields the Biot number \(hL_c/k\) used for that simplification.

Background · Biot number
\[\mathrm{Bi}=hL_c/k\]

Here h is a surface heat-transfer coefficient and k is conductivity. A small Biot number supports a nearly uniform specimen temperature for the specified boundary condition.

Derivation and applications

Predict how a thermal probe follows a changing fluid temperature

A sensor calibrated by an abrupt temperature step can lag behind a fluid that is itself heating steadily. Take a body of mass \(m\), heat capacity \(c\), exposed area \(A\) and film coefficient \(h\) with negligible internal temperature gradients. This lumped description requires internal conduction to be fast compared with surface heat transfer. Treat properties and \(h\) as constant and neglect self-heating, radiation and lead conduction. Denote the body temperature by \(T\), fluid temperature by \(T_f\), and set \(\tau=mc/(hA)\).

An instantaneous energy balance gives a first-order differential equation. For a linearly increasing fluid temperature \(T_f=T_0+\beta t\), define the lag \(D=T_f-T\):

\[mc\,\dot T=hA(T_f-T),\]
\[\dot D + D/\tau=\beta .\]

Suppose the probe and fluid start in equilibrium at \(T_0\). Multiply the lag equation by \(e^{t/\tau}\) and integrate from zero. The integrating factor converts the left side to a single derivative:

\[e^{t/\tau}D(t)=\beta\int_0^t e^{s/\tau}\,ds=\beta\tau(e^{t/\tau}-1).\]

Subtract the resulting lag from the prescribed fluid history to obtain the reading:

\[T(t)=T_0+\beta[t-\tau(1-e^{-t/\tau})] .\]

For \(t\ll\tau\) the rise begins quadratically, since the initial film temperature difference was zero. For \(t\gg\tau\) the probe warms at the same rate as the fluid but reads low by \(\beta\tau\). Cooling ramps reverse the sign. A measured constant lag is therefore evidence for this model only after the startup transient has decayed.

Worked example

Evaluate the reading during a ramp calibration

A probe has \(mc=0.800\) J/K and \(hA=0.100\) W/K, hence \(\tau=8.00\) s. Start at \(20.0^\circ\)C and heat the fluid by \(0.500\) K/s. At \(t=16.0\) s the fluid is at \(28.0^\circ\)C and the lag is \(4.00(1-e^{-2})=3.46\) K, so the probe reads \(24.5^\circ\)C. Simply subtracting the eventual \(4.00\) K would overcorrect during startup.

Second application

Estimate a time constant without an abrupt temperature step

During a long calibration ramp of \(0.200\) K/s, a second probe remains \(1.20\) K below an independent fluid reference. Its inferred time constant is

\[\tau=1.20/0.200=6.00\,\mathrm{s}.\]

If the fluid is then held fixed, the remaining lag decays exponentially. Waiting \(6.00\ln(1.20/0.100)=14.9\) s brings the error below \(0.100\) K. The hold and the ramp test two different responses using the same fitted parameter.

Try it · Probe ramp

Set the inputs to the values in the worked example, then vary one quantity while holding the others fixed. Compare the curve and numerical balance with the second application. The calculation uses the assumptions derived above; its readout identifies bounds such as choking, phase-region changes and inconsistent measurements.

Allow energy to accumulate in the material

A surface thermocouple responds rapidly to a cold wash, while the interior of a thick part can remain hot. To predict the time needed to cool the centre, steady thermal resistance alone is insufficient. Enclose a differential slice of material. Incoming conductive heat minus outgoing heat plus local generation equals the rate of change of its stored energy. Substituting Fourier’s law in a homogeneous stationary solid gives

\[\rho c_p\frac{\partial T}{\partial t}=k\nabla^2T+\dot q_v,\]
\[\alpha=\frac{k}{\rho c_p}.\]

Thermal diffusivity \(\alpha\) in m²/s compares a material’s ability to spread heat with its ability to store it. A large conductivity does not alone guarantee fast adjustment if volumetric heat capacity is also large. Without heat generation, a length \(L\) gives a characteristic diffusion time \(t_d=L^2/\alpha\). The dimensionless Fourier number \(Fo=\alpha t/L^2\) measures how long diffusion has acted relative to that scale.

Decide whether the interior stays nearly uniform

At a convecting boundary \(-k\partial T/\partial n=h(T_s-T_\infty)\). Comparing the resistance of the interior with a fluid film leads to \(Bi=hL_c/k\), often using \(L_c=V/A_s\) for a lumped model. If this ratio is small, commonly below about 0.1 as a first engineering check, the internal temperature difference is small compared with that across the film. Integrating energy over a uniform body then gives

\[\rho c_p V\,dT/dt=-hA_s(T-T_\infty),\]
\[(T-T_\infty)/(T_0-T_\infty)=e^{-t/\tau},\]

with \(\tau=\rho c_pV/(hA_s)\).

The Biot and Fourier numbers answer different questions. A small Fourier number says a disturbance has penetrated only a short distance compared with \(L\). A small Biot number says the boundary transfers heat slowly enough for internal gradients to remain small. Choose the length for each comparison explicitly, especially for a slab cooled on one side rather than both.

Cooling from a fixed surface temperature reaches farther into the solid as the dimensionless time rises.
Semi-infinite cooling profiles plotted against a fixed reference length L. Increasing time by a factor of ten increases the depth of a given temperature ratio by the square root of ten.

Solve a sudden prescribed-temperature change

Consider initially uniform material occupying \(x>0\) whose surface is suddenly held at \(T_s\), with its far interior still at \(T_i\). Neglect internal generation and use constant properties. The initial and boundary conditions have no geometric length scale. Try the similarity coordinate \(\eta=x/(2\sqrt{\alpha t})\) and set \(\Theta=(T-T_s)/(T_i-T_s)\). Differentiating and substituting into the diffusion equation yields \(\Theta''+2\eta\Theta'=0\), with derivatives in \(\eta\). Integrating once gives

\[\Theta'=C e^{-\eta^2}.\]

The limits \(\Theta(0)=0,\ \Theta(\infty)=1\) give

\[\Theta=\operatorname{erf}(\eta).\]

At \(x=0\) the imposed surface temperature holds exactly. At a fixed depth and very early time \(\eta\) is large, so the temperature tends to its initial value. The distance of any fixed fractional temperature change grows as \(\sqrt{t}\). Quadrupling exposure time doubles that distance, a scaling quite different from a body travelling at a constant speed.

Predict depth and validate the time window

A thick solid initially at 373 K is held at 293 K at its surface. With \(\alpha=1.0\times10^{-5}\) m²/s and \(t=10\) s, \(2\sqrt{\alpha t}=0.020\) m. At depth 10 mm, \(\eta=0.50\) and \(\operatorname{erf}(0.50)=0.5205\), giving \(T=293+80(0.5205)=334.6\) K. At 20 mm, \(\operatorname{erf}(1)=0.8427\) gives 360.4 K. The surface has cooled by 80 K while the deeper sensor has cooled by only 12.6 K.

At 40 s the 20 mm sensor reaches the same fraction previously measured at 10 mm. This prediction assumes the remote boundary has not begun to influence the measurement and that the surface temperature is actually prescribed. A finite slab or a convective wash may require a finite-domain diffusion solution instead. Record surface and interior histories to distinguish uncertain boundary conditions from uncertain diffusivity.

Interpret a penetration depth

If two embedded sensors are at 2 and 6 mm in the same semi-infinite specimen, the deeper sensor reaches the same normalised temperature at nine times the shallow sensor’s time because \(x/\sqrt{\alpha t}\) must match. An observed factor much smaller than nine can indicate a heat leak along a probe or a far boundary that has begun to influence the temperature field.

Resolve a slab with a finite surface film

A prescribed surface temperature and a uniformly cooling lump are two useful limits. A finite slab exchanging heat through a finite film generally satisfies neither. Let \(L\) be half-thickness, \(x=0\) the midplane, and \(T_i\) the initial uniform temperature. Both sides suddenly see fluid at \(T_\infty\) with constant \(h\). Using \(X=x/L,\ Fo=\alpha t/L^2\) and \(\Theta=(T-T_\infty)/(T_i-T_\infty)\), the diffusion equation becomes

\[\Theta_{Fo}=\Theta_{XX},\]

with symmetry \(\Theta_X(0)=0\) and film condition \(-\Theta_X(1)=Bi\,\Theta(1)\), where \(Bi=hL/k\).

Seek a separated mode \(\Theta=\cos(\lambda X)e^{-\lambda^2Fo}\). Its derivative vanishes at the midplane. Imposing the convective surface condition gives

\[\lambda\tan\lambda=Bi.\]

The uniform initial condition fixes modal amplitudes by cosine orthogonality on \(0<X<1\):

\[\Theta=\sum_n A_n\cos(\lambda_n X)e^{-\lambda_n^2Fo},\]
\[A_n=\frac{4\sin\lambda_n}{2\lambda_n+\sin(2\lambda_n)}.\]

For \(Bi\ll1\), the smallest root has \(\lambda_1^2\simeq Bi\), its shape approaches a constant, and \(A_1\simeq1\). The decay becomes \(e^{-Bi\,Fo}\), exactly the lumped time scale because \(Bi\,Fo=h t/(\rho cL)\). For a large film coefficient the first root tends towards \(\pi/2\), corresponding to a prescribed surface temperature. The same boundary-value model thus recovers both limiting behaviours.

Predict when the core and surface meet different targets

A 40 mm thick flat slab with \(k=2.0\,\mathrm{W/(m\,K)}\) and \(\alpha=1.0\times10^{-6}\,\mathrm{m^2/s}\) is cooled on both sides by \(h=50\,\mathrm{W/(m^2K)}\). It starts at 100 °C in fluid at 20 °C. Here \(L=0.020\) m and \(Bi=0.50\). The first root of \(\lambda\tan\lambda=0.5\) is 0.6533 and \(A_1=1.070\). After 600 s, \(Fo=1.50\). The first term gives centre excess ratio \(1.070\exp[-(0.6533)^2(1.50)]=0.564\), hence \(T_c=65.1^\circ\mathrm C\). At the surface multiply by \(\cos(0.6533)=0.794\), giving about 55.9 °C. Higher roots are strongly attenuated at this Fourier number.

A process requiring the centre to fall below 50 °C needs centre ratio \((50-20)/(100-20)=0.375\). Solve \(Fo=\ln(1.070/0.375)/0.6533^2=2.46\), or approximately 984 s. By contrast a lumped estimate gives \(Fo=-\ln(0.375)/0.5=1.96\), about 785 s. It underestimates the core cooling time by over three minutes because the film and internal gradients both matter. An early-time surface prediction requires more modes than this late-time centre criterion. In particular the first term alone gives a centre ratio above unity at time zero, signalling that the remaining terms are necessary to reconstruct the original uniform state.

If product quality depends on average energy content rather than the hottest spot, average the first-mode shape over half the thickness. Its factor \(\int_0^1\cos(\lambda_1 X)dX=\sin\lambda_1/\lambda_1=0.930\) gives mean excess ratio \(0.564(0.930)=0.525\) after 600 s. The predicted bulk temperature is therefore about 62.0 °C, between centre and surface as expected. A calorimetric measurement made after removing and mixing the material is closer to the mean than to either point thermometer. A decision to stop cooling based on such a reading can therefore satisfy an average enthalpy requirement while leaving the centre several kelvins above a local temperature limit.

The surface flux can be checked against the rate of thermal energy loss. At 600 seconds each face transfers \(50(55.9-20)=1795\,\mathrm{W/m^2}\) to the air. Per square metre of plan area the slab therefore loses approximately 3590 W. The volumetric heat capacity obtained independently from \(k/\alpha\) is \(2.0\times10^6\,\mathrm{J/(m^3K)}\). Multiplying by total 0.040 m thickness gives an areal capacity of 80000 J/(m² K), and a predicted instantaneous mean cooling rate \(3590/80000=0.0449\,\mathrm{K/s}\). Differentiating the one-term mean temperature gives the same decay rate to within rounding.

This independent balance is especially useful if measurements suggest two different film coefficients on opposite sides. An unequal pair of measured fluxes cannot be fitted by a strictly symmetric half-slab model even if it reproduces one centre temperature. The full-thickness conduction problem then requires both surface boundary conditions; simply replacing them by their arithmetic mean may match total heat over one interval while shifting the hottest location away from the midplane.

Interactive calculation · Change the inputs of this example

Change the parameters of this reference plot and compare its limiting cases. The fixed illustration remains beside the derivation; the adjustable calculation exposes the same dependence on geometry, material properties or loading.

A moving boundary in a freezing layer

A flat cold surface grows a layer of ice from water initially at its melting temperature. Estimate when it will reach a specified thickness, then discover how a finite heat-transfer resistance changes its early growth.

Write a balance at a boundary whose position is unknown

Let the solid occupy \(0<x<s(t)\). The boundary at x=0 is held at \(T_w<T_m\), the liquid remains at \(T_m\), and the solid-liquid interface is at its equilibrium melting temperature. Treat density, latent heat of fusion \(L_f\) and solid conductivity k as constants. Ignore volume change and fluid convection. When the front moves by ds, each unit area releases latent energy \(\rho L_f\,ds\). In this one-phase problem conduction into the cold side removes that energy. Taking the magnitude of heat extracted, the interface condition reads

\[\rho L_f\,{ds\over dt}=k\,{\partial T\over\partial x}\bigg|_{s^-}.\]

The derivative is positive because temperature increases towards the liquid. Solving the full problem requires time-dependent conduction in a domain with a moving outer end. A useful approximation emerges when the sensible heat needed to cool the new solid is small beside its latent heat. Measure that ratio with the Stefan number \({\rm Ste}=c_p(T_m-T_w)/L_f\).

Derive the square-root law and check the approximation

For small Ste the temperature profile in the solid adjusts quickly compared with front growth. Approximate the gradient by \((T_m-T_w)/s\). Multiplying the interface balance by s separates the variables. Integrating from an initial layer \(s_0\) gives

\[s\,ds={k(T_m-T_w)\over\rho L_f}\,dt,\]
\[s^2=s_0^2+{2k(T_m-T_w)\over\rho L_f}t .\]

With zero initial thickness the predicted speed starts unbounded because the model inserts a finite temperature difference across zero resistance. A finite surface heat-transfer coefficient removes this singularity. If coolant at \(T_c\) reaches the wall through a film \(1/h\), the heat flux is \((T_m-T_c)/(1/h+s/k)\). For a layer growing from zero, integration gives

\[t={\rho L_f\over T_m-T_c}\left({s\over h}+{s^2\over2k}\right).\]

The linear term dominates while the film presents the larger resistance. Once the solid is thick, the quadratic term recovers diffusion-controlled growth. These two regimes can be distinguished by recording thickness at equal time intervals.

An ideal wall and a finite film

For water freezing at 0 °C take \(k=2.2\) W/(m K), \(\rho=917\) kg/m³, \(L_f=334\) kJ/kg and \(c_p=2.1\) kJ/(kg K). With a wall at −5 °C the Stefan number is 0.0314. The ideal-wall time to form 10 mm is \(917(334000)(0.01)^2/[2(2.2)(5)]=1392\) s, about 23 minutes. Reaching 20 mm requires four times that duration. The increasing conduction distance accounts for the slowing front.

With coolant at −5 °C and \(h=200\) W/(m² K), the added time for 10 mm is 3063 s. The resulting total is about 74.2 minutes. At that point the film resistance is 0.005 m² K/W and the ice contributes 0.00455 m² K/W. Both terms are of the same order. Vary h and find when a second thickness measurement would provide more information about ice conductivity than a first one.

At a fixed coolant temperature compare the early and late parts of the thickness histories. Increase the film coefficient strongly. Predict where the finite-film curve should approach the fixed-wall result first in relative terms, then read the completion time.

Tutorial · recover the coolant coefficient from one observation

A 15 mm layer is observed after 8000 s with the same properties and coolant temperature. Estimate h from the integrated equation. Would a time below the ideal-wall value be compatible with a positive h in this model?

Show the resistance fit

The ideal-wall contribution is about 3132 s. The remaining 4868 s equals \(\rho L_f s/[h(T_m-T_c)]\), giving \(h\simeq189\) W/(m² K). Both resistances are positive. A shorter time than the ideal-wall prediction would require checking the temperature, initial ice thickness, geometry or material data before assigning a heat-transfer coefficient.

Further reading · RWTH Aachen · Computational Modeling of Multiphysics, chapter 12 on the Stefan problem

How a longitudinal pulse reflects from a change in rod section

A tap on one end of a rod reaches a receiver after a finite delay. Two rods joined end to end can even return a pulse before the receiver sees a far-end reflection. Derive propagation speed and distinguish the displacement amplitude from the energy carried by a pulse.

From the cut force to a travelling disturbance

Measure the small axial displacement \(u(x,t)\) from a stress-free reference. In a slender homogeneous rod of area A, tensile force is

\[N=EA u_x.\]

A slice of length dx and mass \(\rho A\,dx\) accelerates because its right and left forces differ by \(N_x dx\). For constant properties, cancelling A gives

\[\rho A u_{tt}=(EAu_x)_x,\]
\[u_{tt}=c^2u_{xx},\]
\[c=\sqrt{E/\rho}.\]

Either \(u=f(x-ct)\) or \(u=g(x+ct)\) satisfies this equation by differentiation. Curves of constant phase move right or left with speed c. Long-wavelength assumptions suppress lateral inertia and radial modes. Rod area cancels from wave speed but remains in the force carried at given particle velocity. For a right-moving pulse \(v=u_t=-cu_x\), so tensile force \(N=-Zv\), with mechanical impedance \(Z=\rho Ac=EA/c\). The sign reverses for a left-moving wave.

Match velocity and force at a bonded junction

Let amplitudes I, R and T denote incident, reflected and transmitted particle velocity at the junction. A massless, perfectly bonded interface requires equal velocities and transmitted force. Apply the preceding sign convention separately to each travelling direction. The two equations determine two unknowns.

\[I+R=T,\]
\[-Z_1 I+Z_1 R=-Z_2 T,\]
\[{R\over I}={Z_1-Z_2\over Z_1+Z_2},\]
\[{T\over I}={2Z_1\over Z_1+Z_2}.\]

The instantaneous power transported to the right is \(-Nv=Zv^2\) for a single right-moving wave. For the same pulse shape the reflected energy fraction is \((R/I)^2\) and the transmitted fraction is \((Z_2/Z_1)(T/I)^2\). They sum to one. A transmitted velocity amplitude exceeding the incident amplitude can thus be compatible with conservation of energy.

A stepped rod and a pulse-echo observation

Join two aluminium rods of areas 80 and 160 mm², \(E=70\) GPa and \(\rho=2700\) kg/m³. Both have \(c=5092\) m/s, but the second impedance is twice the first. An incident velocity of 0.30 m/s produces a reflected −0.10 m/s and a transmitted 0.20 m/s. The reflected pulse carries one ninth of the energy. Reversing the experiment makes the reflection positive and the transmitted velocity 0.40 m/s for the same incident amplitude. The two energy fractions are unchanged on reversal.

A receiver at the tap detects a reflected pulse 0.40 ms after launch, before any far-end reflection contaminates it. The return path covers the distance twice, so the inferred junction is \(c(0.00040)/2=1.02\) m away. Measure pulse velocity rather than strain when comparing the signs to the plot. Incident tensile force has sign opposite incident velocity with the convention used here.

Keep the incoming pulse fixed and change the area ratio from 2 to 0.5. Determine which velocity component reverses sign and compare reflected energy fractions. Explain the difference by writing power balance for the two experiments.

Tutorial · infer a second cross-section

On a uniform material an isolated junction returns 25% of the incident velocity amplitude with the same sign. Infer the area ratio and transmitted energy fraction. How could an energy-only measurement leave the geometry ambiguous?

Show the inverse relation

Let \(z=Z_2/Z_1=A_2/A_1\). Then \(0.25=(1-z)/(1+z)\), so \(z=0.60\). The transmitted velocity is \(1.25 I\). Its energy fraction is

\[0.60(1.25)^2=0.9375.\]

Measuring only the reflected energy gives 0.0625 and loses the sign of the amplitude. A thickening by a factor \(1/0.60\) would give the same energy reflection and the opposite sign in the velocity trace.

Further reading · Bower, Applied Mechanics of Solids · solutions to problems involving vibrations and wave propagation

Why the frequencies of a bending beam are not equally spaced

A distributed beam can bend into infinitely many shapes. Derive the relation between wavelength and oscillation frequency, then compare the measured response of a beam with the mode family predicted by its supports.

Combine transverse force, moment and curvature

Take a straight uniform beam with small transverse deflection \(w(x,t)\), density \(\rho\), area A and second moment of area I about the bending axis. Euler–Bernoulli kinematics keeps cross-sections perpendicular to the centreline. The bending resistance is proportional to curvature \(EI w_{xx}\). For a load-free part of the beam the gradient of moment supplies shear and the gradient of shear accelerates the mass. With restoring forces opposing deflection, the resulting equation is

\[\rho A\,w_{tt}+EI\,w_{xxxx}=0 .\]

The fourth spatial derivative calls for four boundary conditions. At a simple support the displacement vanishes and the bending moment is zero, hence

\[w=w_{xx}=0.\]

A clamp instead fixes displacement and slope. Interchanging a pin and a clamp changes the allowed shape family even if the span and material remain fixed.

Obtain the simply supported series

Try \(w=W\sin(kx)\cos(\omega t)\). Two spatial derivatives bring down \(-k^2\), and four give \(+k^4\). Substitution balances the inertia and stiffness terms. The conditions at x=0 hold for every k in this sine family. At x=L the sine must vanish, yielding

\[\omega^2={EI\over\rho A}k^4,\]
\[k_n={n\pi\over L},\]
\[f_n={n^2\pi\over 2L^2}\sqrt{EI\over\rho A}.\]

A long travelling sinusoid has phase velocity \(\omega/k=k\sqrt{EI/(\rho A)}\). The group velocity \(d\omega/dk\) is twice that value in this model. A localized pulse contains many wavelengths, which can therefore separate as it propagates. Predictions at wavelengths near the thickness require accounting for rotary inertia and shear deformation.

Choose sensor positions as carefully as the frequency range

Use a 1 m steel strip 20 mm wide and 4 mm thick with \(E=200\) GPa and \(\rho=7800\) kg/m³. For bending about the thin direction \(I=bh^3/12\) and \(I/A=h^2/12\). The first three simply supported frequencies are roughly 9.18, 36.7 and 82.7 Hz. Doubling the width alone doubles stiffness and mass together and leaves these frequencies unchanged. Doubling thickness doubles each frequency. Shortening the span by 20% increases all three by \(1/0.8^2=1.56\).

At the centre a displacement pickup sees \(\sin(n\pi/2)\). It sees the first mode at its antinode and misses the second mode entirely. At the quarter point it sees that second mode strongly. An absent spectral peak can therefore result from excitation or sensing at a node. Move the measuring point before adjusting a fitted damping value to explain its absence.

Find a common node of the first and third modes and a location that suppresses the second mode alone. Change the thickness and then the span. Use the resulting frequencies to test whether each scaling is linear or quadratic.

A related OneSimulation calculation

For a frame whose geometry and end payload preclude the simply supported sine family, compare the first three computed modes after changing the tip mass. Test whether all frequencies scale by the same factor.

Compare frame modes with OneSimulation

Tutorial · distinguish distributed bending from a tensioned string

A simply supported specimen has prominent peaks at 12 Hz and 108 Hz with the receiver at midspan. Infer which bending modes these could be and predict the frequency and receiver location for the missing mode. What would the third-to-first frequency ratio be for an ideal string?

Show the mode test

The ratio \(108/12=9\) agrees with \(n^2\) for \(n=3\). The second bending mode should lie near \(4(12)=48\) Hz. Measure at one quarter span and excite away from its nodes. An ideal uniform string has \(\omega=ck\) and a third-to-first ratio of 3. Checking both the midspan node and the shifted pickup spectrum distinguishes these models more effectively than a single peak.

Further reading · MIT 2.003SC · lecture 27 on vibration of continuous structures

How a magnetic field relaxes into a finite conductor

A conducting sheet initially shields its interior from an applied magnetic step. Given time, a normal resistive metal admits a static tangential magnetic field. The same equations give a finite slab a discrete relaxation spectrum and a periodic drive a complex penetration depth. These are different initial and boundary conditions for one diffusion operator.

Identify the time derivative lost in the approximation

Let the conductor be stationary, Ohmic, uniform and isotropic with conductivity \(\sigma\), permeability \(\mu\) and permittivity \(\epsilon\). In the full Maxwell equations both \(\sigma\boldsymbol E\) and \(\epsilon\partial_t\boldsymbol E\) contribute to the curl of \(\boldsymbol H\). At a characteristic angular frequency \(\omega\), the ratio of the latter to the former is \(\omega\epsilon/\sigma\). For a good conductor at low frequencies this is very small. Neglect displacement current only in that constitutive region; a vacuum gap or a capacitor elsewhere can still carry significant displacement current. Ampère then gives

\[\boldsymbol E=(\nabla\times\boldsymbol B)/(\mu\sigma).\]

Substitution into Faraday and use of \(\nabla\cdot\boldsymbol B=0\) yield

\[\partial_t\boldsymbol B=D\nabla^2\boldsymbol B,\]
\[D=1/(\mu\sigma).\]

The diffusion time for scale \(a\) is of order \(a^2/D\). Increasing conductivity reduces \(D\), because smaller electric fields can sustain stronger opposing currents. In an ideal mathematical conductor with \(\sigma\to\infty\), an initial flux can be frozen in this model. That is a different preparation from a superconductor expelling a field in equilibrium. Magnetic diffusion alone contains neither a thermodynamic superconducting transition nor London screening. At sufficiently short times the dropped displacement current also matters: an ideal step is an approximation to a finite-risetime drive, and the diffusion equation's nonzero Gaussian tails at arbitrarily large distances should not be used to infer a superluminal signal.

Obtain a transient similarity profile

Take a half-space \(x>0\) with field \(\boldsymbol B=B_z(x,t)\hat{\boldsymbol z}\); the surface is driven to \(B_s\) at \(t=0^+\), while initially the interior has zero field. Scaling \(x\) by \(\sqrt{Dt}\) suggests \(B_z/B_s=F(\eta)\), \(\eta=x/(2\sqrt{Dt})\). Compute \(\partial_tF=-\eta F'/(2t)\) and \(D\partial_x^2F=F''/(4t)\); hence

\[F''+2\eta F'=0.\]

Its first integral is

\[F'=Ce^{-\eta^2}.\]

Set \(F(0)=1,F(\infty)=0\) and use the Gaussian integral to obtain

\[F(\eta)=\operatorname{erfc}\eta.\]

The associated current \(J_y=-(1/\mu)\partial_xB_z\) is positive for this sign of surface field and has a Gaussian depth profile.

\[J_y(x,t)=\frac{B_s}{\mu\sqrt{\pi Dt}}e^{-x^2/(4Dt)},\]
\[\int_0^\infty J_y\,dx=\frac{B_s}{\mu}.\]

The current integral remains fixed as the profile spreads, even though the surface current density falls as \(t^{-1/2}\). A finite conductivity does not imply uniform current at every instant. For \(\sigma=5.8\times10^7\,\mathrm{S/m}\) and \(\mu=\mu_0\), \(D=0.01372\,\mathrm{m^2/s}\). The point reaching half the surface field is

\[x=2\operatorname{erfc}^{-1}(1/2)\sqrt{Dt}=0.9539\sqrt{Dt}.\]

At \(0.10\,\mathrm{ms}\) it is \(1.12\,\mathrm{mm}\) deep. At \(0.40\,\mathrm{ms}\), four times the time, it is twice as deep. Measuring several half-amplitude positions against time lets one fit \(D\) without calibrating the absolute magnetic field strength.

Satisfy both faces of a finite slab

Let the conductor occupy \(-a<x<a\). Impose the same sudden tangential field \(B_s\) at both faces. At long time the unique steady solution with these equal boundaries is uniform \(B_s\). Subtract this final value by defining the deficit \(u=1-B_z/B_s\). It satisfies homogeneous boundary values \(u(\pm a,t)=0\) and begins at one inside. Even symmetry permits cosine modes \(\cos(k_mx)\) with \(k_ma=(m+1/2)\pi\). Separating time gives the multiplier \(e^{-Dk_m^2t}\). Orthogonality on \((-a,a)\) gives squared norm \(a\) for each cosine and projection of the constant equal to \(2\sin(k_ma)/(ak_m)\). Thus

\[\frac{B_z(x,t)}{B_s}=1-\frac4\pi\sum_{m=0}^\infty\frac{(-1)^m}{2m+1}\cos\!\frac{(2m+1)\pi x}{2a}\,\exp\!\left[-(2m+1)^2t/\tau_0\right],\]
\[\tau_0=\frac{4a^2}{\pi^2D}.\]

The initial boundary jump is real in the idealisation; the series reproduces the interior initial value in the usual Fourier sense, while the imposed boundary value applies for \(t>0\). Later times damp the higher spatial harmonics most rapidly. At the centre and \(t=\tau_0\), the first term predicts

\[B/B_s=1-(4/\pi)e^{-1}=0.5316.\]

The next correction is \(4e^{-9}/(3\pi)=0.0000524\), so this is already accurate to within \(6\times10^{-5}\). At very early times many terms are needed because their cancellations encode a nearly field-free interior. A half-space similarity expression near each face can be more efficient there.

For a \(4.0\,\mathrm{mm}\)-thick copper slab \(a=2.0\,\mathrm{mm}\), giving \(\tau_0=0.118\,\mathrm{ms}\). At late times the centre deficit \(1-B/B_s\) approaches a single exponential with log slope \(-1/\tau_0\). Reaching 90 percent at the centre requires

\[t\simeq\tau_0\ln(4/(0.1\pi))=2.54\tau_0=0.300\,\mathrm{ms}.\]

The initial square-root penetration law cannot simply be extrapolated into this final regime, since the penetration fronts from both sides interact. Doubling full thickness at constant material quadruples the long relaxation time.

Compare a periodic solution and a surface impedance

Instead drive the half-space sinusoidally and adopt \(e^{i\omega t}\) peak phasors. Solving \(i\omega\widetilde B=D\,d^2\widetilde B/dx^2\) gives \(\widetilde B=B_se^{-(1+i)x/\delta}\) with the root \(\delta=\sqrt{2D/\omega}\) that decays towards infinity. The envelope falls as \(e^{-x/\delta}\), while phase lags the boundary by \(x/\delta\). The electrical surface field follows by differentiating, yielding \(\widetilde E_y=(1+i)\widetilde H_z/(\sigma\delta)\). The surface impedance in these orientations is \(Z_s=(1+i)/(\sigma\delta)\). Its positive real part measures dissipation, and the equal quadrature term records energy storage with this convention.

At \(f=1.0\,\mathrm{kHz}\) in the copper model, \(\delta=2.09\,\mathrm{mm}\) and \(\operatorname{Re}Z_s=8.25\,\mu\Omega\). A tangential surface peak field \(H_s=1000\,\mathrm{A/m}\) gives mean incoming power density \(\operatorname{Re}Z_s|H_s|^2/2=4.13\,\mathrm{W/m^2}\). The same number follows from volume Joule heating. Integrate \(\sigma|\widetilde E_y|^2/2\) over depth; the squared envelope \(e^{-2x/\delta}\) integrates to \(\delta/2\). An experiment monitoring just the in-phase field can find a zero at \(x=\pi\delta/2\) while the full harmonic magnitude is still \(e^{-\pi/2}=0.208\) of the surface amplitude.

Compare a half-space step and a sinusoidal depth profile using the same material

Use the solution to design a convergence test

A mesh across the finite slab can step \(B_j^{n+1}=B_j^n+r(B_{j+1}^n-2B_j^n+B_{j-1}^n)\), with \(r=D\Delta t/h^2\). A Fourier mode \(e^{ikjh}\) is multiplied by \(1-4r\sin^2(kh/2)\), so forward Euler is stable for \(0\le r\le1/2\). Above that bound a high-frequency grid mode can grow despite the physical diffusion being dissipative. For \(h=0.20\,\mathrm{mm}\) in the copper model, \(\Delta t\le1.46\,\mu\mathrm s\). Halving the mesh spacing demands quartering this explicit time step. An implicit scheme can overcome the same stability restriction but still needs small enough steps to resolve the measured transient.

Set both face values, initialise the interior once and record the centre at \(t=\tau_0\). Compare first against the series, then against a second mesh and time step. A mistaken use of full thickness in \(\tau_0\) would shift the inferred time by a factor four even if the code has converged perfectly. Independent checks include reflection symmetry about the slab centre, zero gradient at that centre, a bounded response between zero and \(B_s\) for the continuous problem, and ohmic heating that is nonnegative at every point. The latter can catch sign mistakes in an energy budget even though squaring \(J\) hides the sign of a local measured current.

Compare surface and centre in a periodically driven finite slab

At a fixed angular frequency a finite slab with equal tangential field on both faces has a different profile from a half-space. Write the phasor equation \(d^2\widetilde B/dx^2=k^2\widetilde B\), \(k=(1+i)/\delta\) for temporal dependence \(e^{i\omega t}\), and impose \(\widetilde B(\pm a)=B_s\). Even symmetry eliminates \(\sinh kx\), giving \(\widetilde B(x)=B_s\cosh(kx)/\cosh(ka)\). The centre amplitude is \(1/|\cosh[(1+i)a/\delta]|\) of the applied field, and its phase lag is the argument of that denominator. Both incoming penetration profiles must be combined as complex amplitudes satisfying boundary conditions; adding two decaying real envelopes is not a valid phasor solution.

The low-frequency limit has \(ka\ll1\), yielding \(B(0)/B_s\simeq1-(ka)^2/2=1-i(a/\delta)^2\). The leading correction is a phase lag, while the magnitude change starts at higher order. Thus a sensitive phase detector can pick up eddy-current effects before a large change of amplitude is visible. At \(a/\delta=1\), \(\cosh(1+i)=\cosh1\cos1+i\sinh1\sin1\simeq0.834+0.989i\), giving centre amplitude 0.773 and lag \(0.870\) radians. An isolated half-space viewed one skin depth in from a single face would have amplitude 0.368 and lag 1.00 radian. These are genuinely different field boundary conditions, not two definitions of skin depth.

The phasor of the current varies as \(\sinh(kx)\) and is odd. Current on one half of the slab runs opposite to that on the other; the net integrated current across both halves vanishes for equal exterior fields. That cancellation does not suppress losses, because local Joule heating is proportional to \(|J|^2\). In the thin-slab limit expand Faraday directly. If \(B_z(t)\) is nearly uniform,

\[\partial_x E_y=-\dot B_z.\]

Symmetry about the centre gives

\[E_y\simeq-x\dot B_z.\]

For a sinusoidal peak field \(B_s\), the mean volumetric loss averaged across thickness is \(\sigma\omega^2 B_s^2 a^2/6\). The \(a^2\) scaling at fixed total magnetic volume explains why dividing a core into electrically insulated thin laminations can reduce classical eddy losses when the applied field lies along the lamination faces. The thin-slab approximation, isolation between laminae and field orientation are essential parts of that conclusion.

For a material with \(\sigma=2.0\times10^6\,\mathrm{S/m}\), half-thickness \(0.10\,\mathrm{mm}\), sinusoidal peak field 0.10 T and frequency 50 Hz, the formula gives \(3.29\,\mathrm{W/m^3}\). If effective permeability were \(100\mu_0\), the skin depth at that frequency would be about \(5.03\,\mathrm{mm}\), so the thin-slab ordering is internally consistent for these model numbers. Hysteresis or anomalous dynamic losses can still dominate a measured sample. Halving full lamination thickness at fixed material volume should quarter only this classical contribution, not every loss mechanism in the test fixture.

A thin conducting cylindrical shell gives a single time constant

A different finite system exposes how geometry changes a diffusion transient. Consider a long cylindrical shell of radius \(a\) and wall thickness \(w\ll a\) surrounding vacuum. Assume the skin depth in the wall exceeds \(w\) on the important time scales, so current is approximately uniform across the wall, and the solenoid producing an approximately uniform external axial field is sufficiently long. An azimuthal sheet current \(K_\varphi\) produces an additional axial field inside and negligible external field in the long-cylinder approximation. The boundary condition is

\[B_{\rm in}=B_{\rm ext}+\mu_0K_\varphi.\]

Faraday's law around the shell gives

\[2\pi a E_\varphi=-\pi a^2\dot B_{\rm in}.\]

The sheet obeys \(K_\varphi=\sigma w E_\varphi\). Combining the three relations gives

\[B_{\rm in}+\tau_s\dot B_{\rm in}=B_{\rm ext},\]
\[\tau_s=\mu_0\sigma w a/2 .\]

For a step from zero to \(B_s\) the field inside grows as \(B_s(1-e^{-t/\tau_s})\). For a sinusoid the interior phasor transfer is \(1/(1+i\omega\tau_s)\). This model has a single time constant instead of a slab's infinite relaxation spectrum because the wall thickness has been collapsed into one azimuthal sheet-current degree of freedom; magnetic energy is stored mainly throughout the bore. Take copper with \(a=0.030\,\mathrm m,w=0.10\,\mathrm{mm}\) to obtain \(\tau_s=0.109\,\mathrm{ms}\). At its half-power frequency \(f=1/(2\pi\tau_s)\simeq1.46\,\mathrm{kHz}\), the copper skin depth is about 1.73 mm, comfortably larger than the specified wall. At 100 times this frequency the uniform-wall assumption is much weaker.

This result also suggests a discriminating experiment. Compare shells made of the same material with fixed wall thickness and different bore radius. The leading screening time grows linearly with radius. Compare solid sheets of different normal penetration thickness in the earlier slab experiment and their time grows with thickness squared. Either system can display a late exponential, so an observed straight tail in a semilog trace does not alone reveal which diffusion path limits the response. The thickness and radius dependences, together with the phase response and the known current paths, provide independent evidence. A longitudinal insulating slit in the cylindrical shell interrupts its closed eddy-current path, substantially altering the ideal shielding despite leaving most of the metal present.

Distinguish propagation from diffusion

Change conductivity or drive frequency and inspect how the field attenuates with depth. Compare its amplitude decay and phase lag.

Account for every joule admitted by a magnetic step

A conducting half-space initially has zero internal field. At \(t=0\) a source clamps the surface induction to \(B_s\hat z\). Let \(x>0\) measure inward distance and \(D=1/(\mu\sigma)\). The previously derived field profile is \(B_z=B_s\,{\rm erfc}[x/(2\sqrt{Dt})]\). An observer sees an ever-deepening field front even though the surface induction subsequently remains constant. Someone must provide both the magnetic field energy and the Joule heat generated by the induced current. The appropriate bookkeeping is Poynting's theorem, with positive surface power defined into the conductor.

In this geometry Ampère's law gives

\[J_y=-(1/\mu)\partial_x B_z.\]

Differentiating the error function produces a Gaussian current density \(J_y=B_s[\mu\sqrt{\pi Dt}]^{-1}\exp[-x^2/(4Dt)]\). Ohm's law sets \(E_y=J_y/\sigma\). At the surface the Poynting vector \(E_yH_z\hat x\) points into the material and has magnitude

\[\frac{P_{\rm in}}{A}=\frac{B_s^2}{\mu}\sqrt{\frac{D}{\pi t}}.\]

The initial mathematical step creates an integrable square-root singularity in the surface power. Holding \(B_s\) fixed still requires the source to deliver power for \(t>0\). Faraday's law relates the surface electric field to the changing flux below the surface. Its value falls with time because the depth derivative of the induction spreads and weakens. A physical source with a finite rise time smooths the initial singularity and sets the earliest time for which the ideal step is a useful approximation.

To calculate heat production, square the full depth-dependent current and integrate \(J_y^2/\sigma\) from zero to infinity. The squared Gaussian has exponent \(-x^2/(2Dt)\), and its integral on the half-line is \(\sqrt{\pi Dt/2}\). The result is

\[P_{\rm heat}/A=(B_s^2/\mu)\sqrt{D/(2\pi t)}.\]

Consequently the heat fraction of instantaneous input is \(1/\sqrt{2}\), about \(70.7\%\). The rest, \(1-1/\sqrt{2}\), supplies an increasing store of magnetic field energy. Both powers decay as \(t^{-1/2}\); their integrals up to a finite time increase as \(\sqrt t\). These fractions belong to the step-driven semi-infinite problem. They do not describe steady sinusoidal loss or a finite specimen after the diffusion front traverses it.

With \(B_s=10\,{\rm mT}\), copper conductivity \(5.8\times10^7\,{\rm S/m}\), and permeability close to \(\mu_0\), the diffusion coefficient is \(0.0137\,{\rm m^2/s}\). At \(100\,\mu{\rm s}\), the incoming power is about \(526\,{\rm W/m^2}\). Joule heating accounts for \(372\,{\rm W/m^2}\), and field energy is increasing at about \(154\,{\rm W/m^2}\). Integration from the ideal step to this time gives \(2tP_{\rm in}(t)/A=0.105\,{\rm J/m^2}\), split into approximately \(0.0744\,{\rm J/m^2}\) of heat and \(0.0308\,{\rm J/m^2}\) of stored field energy. At that time \(2\sqrt{Dt}\) is about \(2.34\,{\rm mm}\). Applying these numbers to a foil much thinner than a millimetre would use the half-space solution beyond its range.

A finite slab of thickness \(d\) is driven from both faces by the same step. How much magnetic energy is eventually stored, and why must a decaying input replace the half-space power law?

Work through the solution

At long times, Ampère's law allows a uniform induction \(B_s\) with zero current and the prescribed values on both faces. Its stored magnetic energy is \(dB_s^2/(2\mu)\) per unit footprint, independent of conductivity. With \(d=5.0\,{\rm mm}\) and the parameters above this is about \(0.199\,{\rm J/m^2}\). At early times each face behaves approximately as an independent half-space. Once their diffusion profiles overlap, extended use of that approximation would predict unlimited energy accumulation in a finite volume with bounded field magnitude. The finite-slab modes replace the late algebraic law by exponential decay of the current and the surface electric field.

What is the total heat in a finite linear slab after full penetration if both surface inductions are clamped to the same ideal step?

Work through the solution

Integrate the inward surface Poynting power over all time. With symmetry about the midplane, Faraday's law on the upper half relates the magnitude of the surface electric field to \(d[\int_0^{d/2}B\,dx]/dt\). The surface magnetic field after the step is the constant \(B_s/\mu\). Including both faces gives total input energy per area \(B_s^2d/\mu\). Half remains stored, so half has been dissipated as heat, or about \(0.199\,{\rm J/m^2}\) in the example. The integrated fraction one half over the complete finite transient differs from the early-time half-space fraction. This energy identity provides a stringent check of a discretised slab calculation because it tests the surface flux, the volume heating and their time integration together.

Hermann Haus and James Melcher, Magnetoquasistatic Relaxation and Diffusion, including experimental demonstrations.

Tutorial on extracting material parameters

The late centre deficit of a slab of full thickness 6.0 mm falls by a factor \(e\) in \(0.60\,\mathrm{ms}\). Find \(D\), and estimate \(\sigma\) if \(\mu=2\mu_0\).

Work through the solution

Using \(a=3.0\,\mathrm{mm}\) gives

\[D=4a^2/(\pi^2\tau_0)=0.00608\,\mathrm{m^2/s}.\]

Then

\[\sigma=1/(\mu D)=6.55\times10^7\,\mathrm{S/m}.\]

A transient alone determines \(\mu\sigma\); the independent permeability assumption is essential.

At fixed frequency the signal amplitude at one depth is 10 percent of the surface amplitude in a periodic half-space experiment. Find the phase lag there and predict the new amplitude when frequency drops to one quarter.

Work through the solution

The depth is \(x=\delta\ln10\), so the lag is 2.303 radians. Quartering frequency doubles the skin depth; the ratio becomes

\[e^{-(\ln10)/2}=0.3162.\]

Treating the original 10 percent as an intensity ratio instead of a field ratio would produce a different inferred depth.

A step field applied at \(t=0\) is removed again at \(t=T\). Obtain the field after removal and explain why it need not vanish immediately in the interior.

Work through the solution

By linearity superpose a positive step and a delayed negative step. For \(t>T\) the normalised half-space profile is \(\operatorname{erfc}[x/(2\sqrt{Dt})]-\operatorname{erfc}[x/(2\sqrt{D(t-T)})]\). It vanishes at the driven boundary but remains positive at interior points where the later disturbance has not substantially diffused. The induced currents subsequently relax and dissipate energy.

Posing an electromagnetic evolution problem

A solver cannot evolve 'a pulse in a box' from geometry and a time step alone. It needs material laws, compatible initial fields, a charge-conserving source, and enough boundary data to specify what enters the domain. The same bookkeeping is required when interpreting a real transient measurement.

Separate the evolution equations from the constraints

In vacuum with prescribed sources the evolution system can be written \(\partial_t\boldsymbol B=-\nabla\times\boldsymbol E\) and \(\partial_t\boldsymbol E=c^2\nabla\times\boldsymbol B-\boldsymbol J/\epsilon_0\). The divergence conditions \(\nabla\cdot\boldsymbol B=0\) and \(\nabla\cdot\boldsymbol E=\rho/\epsilon_0\) constrain the initial data. Differentiating the first in time gives zero from the divergence of a curl. Differentiating the second constraint residual gives \(-[\nabla\cdot\boldsymbol J+\partial_t\rho]/\epsilon_0\). Compatible charge evolution therefore preserves an initially satisfied Gauss constraint. An arbitrarily chosen charge movie and unrelated current movie can violate it before a single boundary reflection occurs.

A numerical solver based only on the two curl equations does not automatically repair bad initial data. In an initial periodic vacuum box a uniform charge density of one sign is inadmissible because the integral of a periodic divergence is zero. One can prescribe a neutralising background as part of a separately justified model, choose net-neutral initial sources, or choose open boundaries that permit net electric flux. Silently discarding the zero Fourier mode of the charge would solve a different problem. Similarly, preserving a constant divergence error exactly during time integration shows consistency of the discrete curls with the chosen derivative, not correctness of the initial physical state.

Construct a right-running pulse from two initial fields

In one-dimensional vacuum choose \(\boldsymbol E=E_y(x,t)\hat{\boldsymbol y},\ \boldsymbol B=B_z(x,t)\hat{\boldsymbol z}\). Then

\[\partial_tE_y=-c^2\partial_x B_z,\ \partial_tB_z=-\partial_xE_y.\]

Define \(w_+=E_y+cB_z,\ w_-=E_y-cB_z\). Addition and subtraction give

\[\partial_tw_++c\partial_xw_+=0,\]
\[\partial_tw_- -c\partial_xw_-=0 .\]

Thus \(w_+\) travels towards \(+x\) and \(w_-\) towards \(-x\). The initial conditions \(E_y=E_0e^{-(x-x_0)^2/(2s^2)}\), \(B_z=E_y/c\) specify a right-running packet. Prescribing the same electric shape but \(B_z=0\) launches two oppositely directed electric pulses each of half the original height. Measuring only the initial electric waveform would fail to distinguish the two preparations. At \(E_0=60\,\mathrm{V/m}\), the peak magnetic field for the first preparation is \(0.200\,\mu\mathrm T\). An observer \(0.90\) m farther right sees its peak \(3.00\) ns later in vacuum.

The component energies provide another independent comparison. Initialising only \(E_y\) contains half as much total energy as initialising \(E_y\) and its matched \(B_z\). At late times when the two pulses no longer overlap, each half-amplitude pulse has one quarter of the energy of the full matched pulse; the sum is half, as required. In the overlap region it is better to use the characteristic combinations themselves. In these units \(u=\epsilon_0(w_+^2+w_-^2)/4\) and \(S_x=\epsilon_0c(w_+^2-w_-^2)/4\) for the transverse fields. Equal oppositely running amplitudes can store energy with zero net flux.

Specify only incoming characteristic information at an open end

In \(0<x<L\), \(w_+\) enters at the left end and \(w_-\) at the right. Values travelling out are determined by the interior solution. For a pure outgoing plane wave at the right boundary prescribe \(w_-=0\), equivalently \(E_y-cB_z=0\), while allowing \(w_+\) to exit. At a perfectly conducting fixed wall the tangential electric field vanishes, so there \(w_-=-w_+\), reflecting the electric amplitude with a sign reversal. A boundary with a real voltage-like reflection coefficient \(r\) gives \(w_-=r w_+\) in this one-dimensional equal-medium case. The time-integrated returned energy fraction is \(r^2\). Specifying both \(E_y\) and \(B_z\) independently at all times generally overdetermines a wave boundary and can amount to fixing both incident and reflected waves inconsistently.

Suppose \(L=1.20\,\mathrm m,\ x_0=0.30\,\mathrm m\). The centre of a right-running pulse reaches the conducting end at \(3.00\,\mathrm{ns}\). A detector at \(x=0.60\,\mathrm m\) first sees the incident centre after \(1.00\,\mathrm{ns}\), then the reflected centre after \((0.90+0.60)\mathrm m/c=5.00\,\mathrm{ns}\). The two electric traces have opposite signs, while their magnetic contributions at the wall add. Swapping the conducting end for a matched boundary removes the reflected peak within this exact one-dimensional model. A local planar absorbing condition on a curved three-dimensional boundary may still reflect oblique waves; the exact statement depended on one normal mode and its wave impedance.

Derive uniqueness from energy

Take two solutions with the same sources, initial data and perfectly conducting closed boundaries in vacuum. Their difference satisfies homogeneous Maxwell equations with zero initial fields and zero tangential electric field at the wall. Poynting's theorem for the difference says \(dU_\Delta/dt=-\oint(\boldsymbol E_\Delta\times\boldsymbol H_\Delta)\cdot\boldsymbol n\,dA=0\) because the flux normal to a conducting wall vanishes. Since \(U_\Delta\) is a sum of nonnegative squared fields and initially zero, it stays zero. Thus the interior fields agree. A passive outgoing boundary can only remove this difference energy, so the same conclusion holds given no incoming difference signal. This proof shows why specifying incoming boundary data and initial fields correctly is more fundamental than choosing a particular potential gauge.

The argument also supplies a stability target for computation. With no drive and a perfectly reflecting cavity the discrete total energy should remain bounded, and with an absorbing passive end the loss of field energy should match outgoing flux. An unphysical sign in the wall update can inject energy, producing a growing solution even when the interior scheme is stable. Fixing the numerical grid spacing alone cannot cure an active boundary condition. At a material interface Maxwell jump conditions must be applied to the appropriate tangential or normal fields, since setting all Cartesian components continuous would generally violate flux or polarisation physics.

Discretise space and time without destroying wave kinematics

For the one-dimensional system use \(E_j^n\) at integer time and integer position, with \(B_{j+1/2}^{n+1/2}\) at half steps in both. Integrating Faraday on a small rectangular loop gives

\[B_{j+1/2}^{n+1/2}=B_{j+1/2}^{n-1/2}-(\Delta t/h)(E_{j+1}^{n}-E_j^n).\]

Ampère then gives \(E_j^{n+1}=E_j^n-c^2(\Delta t/h)(B_{j+1/2}^{n+1/2}-B_{j-1/2}^{n+1/2})\) without current. For material sources include the appropriate time-centred current. The staggered layout places discrete curls where the updated component lives. In several dimensions a compatible divergence of the curl vanishes by cancellation of oriented face-edge contributions.

Substitution of waves \(e^{i(kjh-\omega n\Delta t)}\) with the matching half-step phases yields \(\sin(\omega\Delta t/2)=(c\Delta t/h)\sin(kh/2)\) on the positive-frequency branch. Stability on a one-dimensional uniform grid requires \(c\Delta t/h\le1\). For \(h=5.0\,\mathrm{mm}\), the upper vacuum time step is \(16.7\,\mathrm{ps}\). A cubic three-dimensional mesh imposes the more restrictive \(c\Delta t/h\le1/\sqrt3\), about \(9.63\,\mathrm{ps}\). In one dimension the equality case transports compatible resolved plane waves at the correct speed on this grid. Numerical dispersion generally returns at smaller Courant number or for diagonal propagation in multiple dimensions. Sample a pulse across enough sites that phase and dispersion errors lie below the intended time-delay uncertainty.

A careful initialisation also respects the half time step. Assign \(B^{1/2}\) from the analytic field at that shifted time or use a consistent half-step update. Assigning \(B^0\) directly where \(B^{1/2}\) is required can create a spurious left-running component in what should have been a one-way pulse. Examine \(w_-\) reconstructed at common space and time before attributing a tiny backward peak to the material. For a real calculation, refine both space and time, compare detector arrival times as well as peak amplitudes, and integrate energy flux over complete transit windows. Solver convergence, charge compatibility, and a pulse moving in the intended direction are independent tests.

Compare a matched return and a reflected pulse on a line

Match a travelling pulse at a material boundary

A single homogeneous characteristic impedance was built into the one-dimensional end conditions. Replace the boundary by an interface between lossless homogeneous nondispersive media with positive real impedances \(Z_1,Z_2\). At normal incidence from the left, write electric amplitudes \(E_i,E_r,E_t\) and choose the magnetic sign so a right-running wave has \(H=E/Z\) and a left-running one \(H=-E/Z\). With no free sheet current and no singular electric field at the interface, tangential continuity gives

\[E_i+E_r=E_t,\]
\[(E_i-E_r)/Z_1=E_t/Z_2.\]

Solving these two equations yields

\[r=\frac{Z_2-Z_1}{Z_2+Z_1},\]
\[t=\frac{2Z_2}{Z_2+Z_1},\]
\[\mathcal R=|r|^2,\]
\[\mathcal T=\frac{Z_1}{Z_2}|t|^2 .\]

The impedance factor in transmitted power is required even when electric continuity makes \(t=1+r\). With \(Z_1=300\,\Omega,Z_2=100\,\Omega\), the electric reflection is \(-1/2\) and transmission \(+1/2\). The reflected energy is one quarter, while transmitted energy is three quarters. Mistaking both energy fractions for one quarter merely because the two electric amplitudes have equal magnitudes leaves half the input pulse energy unexplained. At \(Z_2\to0\) the coefficients approach an electric short: the tangential electric field vanishes, even though the magnetic field doubles in the incident medium. Matching the impedances gives zero reflection even if material wave speeds differ, since those speeds depend on the product \(\mu\epsilon\) whereas impedance depends on their ratio.

Inject a short pulse with known area and width a sufficient distance to the left that it initially lies entirely in medium one. If the media are nondispersive and impedance independent of frequency across the pulse band, each electric waveform copies the incident temporal shape multiplied by its amplitude coefficient. A transmitted wave travelling at a different speed has a different spatial width for the same temporal width, so comparing stored energy by squaring peak fields and comparing equal geometrical intervals can easily mislead. A fixed detector measuring \(\int(E H)\,dt\) across a complete pulse directly measures transmitted energy per area. In a simulation integrate forward and backward flux at separate planes, include any energy still between the planes, and check that the field boundary gives the same answer when the detector positions are changed.

Manufacture a source that obeys charge continuity exactly

A verification case with prescribed charge and current can test different components from a source-free travelling wave. Consider a one-dimensional periodic interval with period \(2\pi/k\). Choose a longitudinal electric field \(E_x(x,t)=E_a \sin(kx)\cos(\omega t)\) and zero magnetic field. Gauss's law fixes \(\rho=\epsilon_0 kE_a\cos(kx)\cos(\omega t)\). Ampère–Maxwell requires

\[J_x=-\epsilon_0\partial_tE_x=\epsilon_0\omega E_a\sin(kx)\sin(\omega t).\]

Faraday gives no magnetic-field change because a purely \(x\)-directed function of \(x\) has zero curl. Differentiating the two source expressions verifies \(\partial_t\rho+\partial_xJ_x=0\), and the periodic spatial mean of the charge vanishes. This is a prescribed-source test of the equations, not a claim that an unspecified material spontaneously supplies those currents.

For period \(0.20\,\mathrm m\), \(E_a=100\,\mathrm{V/m}\), and \(f=2.0\,\mathrm{MHz}\),

\[k=31.42\,\mathrm{m^{-1}}.\]

The charge-density amplitude is \(27.8\,\mathrm{nC/m^3}\) and the free-current-density amplitude \(0.0111\,\mathrm{A/m^2}\). At \(t=0\) the longitudinal electric energy is maximal and current vanishes. One quarter period later the electric field and charge are zero while the source current is maximal at the spatial electric-field antinodes. At every point where \(E,J\) are nonzero their product is \(-\partial_t(\epsilon_0E^2/2)\); the prescribed external charges exchange energy with the field without a magnetic Poynting flux. A discrete divergence residual and an independently measured field-energy change can therefore check the signs and amplitudes of the source implementation.

Prescribing those continuous formulas sampled separately on a staggered mesh does not necessarily produce exact *discrete* continuity. If the numerical current is sampled at half time and half space, integrate the cell continuity equation to update \(\rho\) from numerical boundary currents. Alternatively use the corresponding discrete sinusoidal differentiation factors \(2\sin(kh/2)/h\) and \(2\sin(\omega\Delta t/2)/\Delta t\) when manufacturing exact discrete data. Comparing the continuous and discrete constructions separates a model truncation error that converges with mesh refinement from a genuinely nonconserving source injection. A code can look excellent on transverse vacuum pulses and still fail this test because those pulses never challenge its charge handling.

Decide what a late echo means

A narrow pulse incident on a material slab can return signals from both interfaces. Separate the two in time when possible. If the slab thickness is \(d\) and its propagation speed \(v_2\), the round-trip delay inside it is \(2d/v_2\). Later echoes spaced by that delay suggest repeated internal reflections. Changing the outer computational boundary location while keeping the material and detector fixed provides a different test: an artificial wall echo moves in time by twice the boundary displacement divided by exterior speed. A genuine material echo keeps its material-defined delay. A calibrated single detector trace and these two perturbations can thus identify which part of the model causes a late pulse.

For \(d=0.30\,\mathrm m\) and \(v_2=1.5\times10^8\,\mathrm{m/s}\) the material echo spacing is \(4.0\,\mathrm{ns}\). Moving an external vacuum boundary outward by \(0.45\,\mathrm m\) would delay a returning boundary echo by \(3.0\,\mathrm{ns}\). If the incident pulse lasts 8 ns the echoes overlap strongly and individual peaks are difficult to assign. Broadening the bandwidth with a shorter source or fitting the full complex frequency response is then more informative than selecting the largest local maximum. Any comparison must include the source bandwidth and detector response because a perfectly converged field solution can still predict a different voltage from a finite-bandwidth probe.

Check a discretised field evolution against its phase

Keep the equations and initial mode fixed while refining the grid. Examine numerical phase delay alongside the physical propagation law.

Set a cavity ringing from specified initial fields

A one-dimensional lossless cavity consists of perfectly conducting parallel planes at \(x=0\) and \(x=L\). Use a polarisation \(E_y,B_z\) and ignore lateral edges. With no sources inside, the incoming characteristic at each wall is set by the condition \(E_y=0\). Instead of injecting a pulse during the calculation, prescribe an initial field \(E_y(x,0)=E_0\sin(\pi x/L)\) and \(B_z(x,0)=0\). These data obey the tangential electric wall condition. They also obey the divergence constraints because the spatial variation is along \(x\) while the fields are transverse. Initial data that satisfy a wave equation but violate either of these checks would model a different physical preparation.

Let \(k=\pi/L\) and try \(E_y(x,t)=E_0\sin(kx)F(t)\). The wave equation gives

\[F''+c^2k^2F=0.\]

The initial magnetic field has no spatial gradient and the source-free Maxwell–Ampère law therefore sets \(F'(0)=0\). It follows that \(F=\cos\omega t\), with \(\omega=ck\). Use Faraday's first-order equation to find the sign and phase of \(B_z\), obtaining

\[E_y=E_0\sin(kx)\cos\omega t,\]
\[B_z=-\frac{E_0}{c}\cos(kx)\sin\omega t.\]

For a first-order time solver this pair gives a stronger check than the electric standing-wave frequency alone. A code with an incorrect sign in one curl can reproduce an electric snapshot but will transfer energy incorrectly on the next advance. The signs of the magnetic fields at the two ends are opposite. Their amplitudes peak one quarter period after the initial electric maximum. Perfectly conducting walls carry the necessary surface currents. The standing solution has no Poynting flux through them because the tangential electric field at each wall vanishes.

Per unit transverse area the total initial energy is \(\epsilon_0E_0^2L/4\), since the integral of \(\sin^2(kx)\) over the cavity is \(L/2\). At a general time the electric share is that total multiplied by \(\cos^2\omega t\), and the magnetic share is the same total multiplied by \(\sin^2\omega t\). The integral of their sum is constant, although energy continually flows within the cavity. For \(L=0.30\,{\rm m}\) the fundamental frequency is \(c/(2L)=499.65\,{\rm MHz}\) and its quarter period is about \(0.500\,{\rm ns}\). If \(E_0=100\,{\rm V/m}\), the stored energy is \(6.64\,{\rm nJ/m^2}\) and the peak induction is \(0.334\,\mu{\rm T}\).

The experiment can also reveal the discrete wave speed. A staggered one-dimensional mesh with spacing \(h=L/10\) and Courant number \(C=c\Delta t/h=0.5\) obeys \(\sin(\omega_{\rm num}\Delta t/2)=C\sin(kh/2)\). The predicted frequency ratio is \(2\arcsin[C\sin(kh/2)]/(Ckh)\), approximately \(0.9969\) here. Measuring too short a time interval to distinguish this phase lag from sampling uncertainty would give little information about spatial accuracy. Track many periods, use consistent time-centred field estimates, and halve \(h\) at fixed \(C\). At these small \(kh\), the leading phase error should decrease by roughly a factor of four.

A student prepares a mixture \(E_y(x,0)=E_0[\sin(\pi x/L)+0.30\sin(3\pi x/L)]\), still with initial \(B_z=0\). What should a midplane electric probe observe, and what fraction of the initial total energy is in the third mode?

Work through the solution

At the midplane the fundamental sine equals \(+1\), while the third sine equals \(-1\). The probe therefore reads \(E_0[\cos(\omega t)-0.30\cos(3\omega t)]\). Integrated over the full cavity, cross terms vanish because sine modes of different integer index are orthogonal. The third mode's energy fraction is

\[0.30^2/(1+0.30^2)=0.0826.\]

A single spatial probe samples mode amplitudes times their local shape and cannot identify an energy fraction directly. At the midplane all even modes have a node and would escape detection even if they contained substantial energy.

A solver allows an arbitrary spatially uniform constant to be added to \(B_z\) while leaving the computed oscillating electric field unchanged. Is this necessarily a bug?

Work through the solution

A constant transverse magnetic induction has zero curl and divergence in the ideal interior. It can be added as a static bias if the physical initial magnetic field and the exterior wall-current preparation permit it. In the test posed above the initial magnetic field was explicitly specified as zero, so a later spontaneously generated offset would be a numerical error. Monitoring the spatial mean of \(B_z\) provides a direct test: integrating Faraday's law over the interval gives its rate of change proportional to the difference of the wall electric fields, which is zero. This check tracks an initial-data constraint invisible to a comparison of electric oscillation frequencies alone.

Hermann Haus and James Melcher, Electrodynamic Fields, on wave propagation and standing waves.

Tutorial on initial and boundary compatibility

A vacuum pulse has at its centre \(E_y=100\,\mathrm{V/m}\) and \(cB_z=60\,\mathrm{V/m}\). If both fields have the same spatial shape, infer the two travelling electric amplitudes and the ratio of the energies associated with the two directions.

Work through the solution

The characteristics are \(w_+=160\) and \(w_-=40\,\mathrm{V/m}\). Since \(E=(w_++w_-)/2\), the component electric amplitudes are 80 and 20 V/m. Their separate directional energy ratio is \(160^2/40^2=16\), assuming identical envelopes. The total local flux initially points right although neither characteristic is zero.

A numerical field in a periodic box starts with \(\nabla\cdot\boldsymbol B=10^{-4}\) in some cells. The code uses a discrete divergence of its discrete curl that is identically zero and carries that pattern unchanged. Does reaching a small time-step tolerance guarantee physically acceptable initial conditions?

Work through the solution

No. The curl evolution preserves its initially supplied divergence. A compatible projection or constrained initialisation must remove the error in the correct discrete divergence norm, subject to boundary conditions and any physical mean field. Refining the time integration of inconsistent initial data leaves inconsistency.

A detector sees an amplitude echo 0.15 of an incident Gaussian pulse after reflection at a passive boundary. What is the reflected energy fraction and how much of the input energy remains unaccounted for if measured transmitted energy is 92 percent?

Work through the solution

Same-medium, same-shape electric amplitudes give \(0.15^2=0.0225\) reflected energy. With 0.92 transmitted, the remainder is \(1-0.0225-0.92=0.0575\) or 5.75 percent. It may include absorption, energy still in the structure, lateral flux or measurement error. A completed energy audit distinguishes these possibilities.

Measure the phase speed of a numerical electromagnetic wave

Start with a lossless Maxwell wave, build a second-order time update and compare its actual travel time with what the continuum wave equation predicts.

A pulse can arrive late without losing energy

In a uniform lossless one-dimensional material take electric field along \(y\), magnetic field along \(z\) and propagation along \(x\). Maxwell's curl laws reduce to

\[\epsilon E_t=-H_x,\]
\[\mu H_t=-E_x.\]

Differentiate the first in time and substitute the second to obtain

\[E_{tt}=c^2 E_{xx},\]
\[c=1/\sqrt{\mu\epsilon}.\]

A real laboratory signal is a combination of spatial frequencies. Different errors in travel time for different components can distort its shape even when the scheme does not attenuate any resolved Fourier mode.

Use periodic boundaries so that reflection from an end cannot be confused with this effect. Scale distance by one wavelength and time by one exact period. The periodic field \(E(x,t)=\sin[2\pi(x-t)]\) has unit amplitude and returns to its initial shape after every integer period. A probe comparing just its envelope would miss a discrepancy in phase.

Derive the discrete dispersion relation

Take points separated by \(h\) and times separated by \(\Delta t\). Centred second differences give

\[u_j^{n+1}=2u_j^n-u_j^{n-1}+C^2(u_{j+1}^n-2u_j^n+u_{j-1}^n),\]

with \(C=c\Delta t/h\). Insert the complex trial field \(e^{i(j\theta-n\Omega)}\). The time pair contributes \(2\cos\Omega-2\), the spatial pair \(2\cos\theta-2\). The physical positive-frequency branch obeys

\[\sin(\Omega/2)=C\sin(\theta/2),\]
\[\frac{c_\mathrm{phase,grid}}{c}=\frac{\Omega}{C\theta}.\]

If \(0<C\le1\) a real \(\Omega\) exists for every grid phase, and each Fourier mode has constant discrete amplitude in exact arithmetic when started on one travelling branch. For \(C>1\) sufficiently rapid spatial oscillations have no real frequency. One time factor then grows. Testing stability on a single very smooth wave can miss this unstable part of the supported spectrum.

For long waves expand \(\sin\) and \(\arcsin\):

\[\Omega=C\theta+C(C^2-1)\theta^3/24+O(\theta^5).\]

The relative phase-speed error is \((C^2-1)\theta^2/24\) at leading order. Here increasing \(C\) towards one improves wave propagation. This special cancellation depends on a uniform one-dimensional grid, constant wave speed and the selected difference operators.

Initialise a clean numerical experiment

A second-order recurrence needs two time levels. Taking \(u_j^0=\sin(j\theta)\) and \(u_j^{-1}=\sin(j\theta+\Omega)\) excites a single right-going numerical mode. Using the exact continuum phase \(C\theta\) at the second level instead introduces a small mixture of right- and left-travelling grid modes. That is a valid test of initialisation, but it mixes errors if the quantity of interest is solely the numerical dispersion relation. State in your notes how the second level was produced.

The browser actually advances the nodal difference equations. It then reports the dispersion prediction as an independent check. The time is chosen as an integer number of numerical steps close to five exact periods and is stated with the result. At twelve points per wavelength and \(C=0.8\) there are fifteen steps per period. Both exact and discrete solutions have the same amplitude to roundoff. At the end of five periods examine how far their zero crossings have separated.

From a phase test to a pulse test

For a narrow packet, envelope motion is set by group velocity \(d\omega/dk\). Differentiate the discrete relation at fixed \(h,\Delta t\). The result is \(v_g/c=\cos(\theta/2)/\sqrt{1-C^2\sin^2(\theta/2)}\) on the positive branch for resolved nonendpoint modes. At \(C=0.8\) a mode close to the grid Nyquist limit has small group speed. A wave carrier and its envelope can show different speed errors. In a real dielectric wavelength dependence may also come from the material itself; a grid-refinement test with unchanged material law separates these contributions.

As an independent benchmark, set \(C=1\). Then \(\Omega=\theta\) for \(0\le\theta\le\pi\), and the right-going recurrence translates the samples exactly by one grid cell at each time step. The lab should align both curves even on a surprisingly coarse grid for this particular smooth periodic mode. This checks the sign and indexing of propagation without implying exact accuracy for arbitrary geometry and material interfaces.

Tutorial

A signal must accumulate less than 1 degree of phase error over ten periods. Estimate a required points-per-wavelength count for \(C=0.5\) using the leading error.

Work through the solution

The total continuum phase advance is \(20\pi\) rad. Requiring \(20\pi(1-C^2)(2\pi/N)^2/24<\pi/180\) gives \(N^2>450\pi^2\), or \(N\gtrsim67\). Evaluate the exact dispersion relation to check the chosen integer.

Why is measuring only the field at its crest a poor detector of small phase lag?

Work through the solution

The derivative of a sinusoid vanishes at its crest. A small phase shift changes that value only quadratically; at a zero crossing the change is linear. A phase fit using the entire ring is more robust than either single sample.

The numerical envelope changes after a wall is introduced. What additional tests would separate dispersion from reflection errors?

Work through the solution

First validate travel time on a uniform periodic domain. Next use a single known interface with an analytical reflection coefficient. Move the observation plane and refine the mesh separately. Compare reflected phase and amplitude with an energy-flux balance so a boundary error cannot masquerade as bulk dispersion.

Action density, stress waves and the boundary that reflects them

A chain of coupled masses becomes an elastic field when the wavelength is long compared with the spacing. Derive the field equation and its boundary traction from the same variation, follow energy and stress across a junction, and decide whether a measured pulse is limited by material waves or by numerical dispersion.

Pass from a discrete rod to an action density

Let equal masses of spacing \(a\) move longitudinally by \(u_j(t)\), with nearest-neighbour spring constant \(k_s\) and mass \(m_s\) per site. Their Lagrangian is \(\sum_j[m_s\dot u_j^2/2-k_s(u_{j+1}-u_j)^2/2]\). For variations smooth on the spacing, \((u_{j+1}-u_j)/a\to u_x\) and \(\sum_j a\,f_j\to\int f(x)\,dx\). Hold the line density \(\rho A=m_s/a\) and axial rigidity \(EA=k_s a\) fixed. The continuum Lagrangian density per unit reference length is

\[{\cal L}=\rho A\,u_t^2/2-EA\,u_x^2/2,\]

with \(A\) area, \(\rho\) volume density and \(E\) Young modulus. Both terms have units of joules per metre. This is a slender-rod model with small strain, primarily uniaxial stress and wavelengths long compared with the cross-sectional dimensions.

Vary the field in the action over \([0,L]\times[t_1,t_2]\). Integration of \(\rho A\,u_t\delta u_t\) by parts in time, with fixed endpoint fields, produces \(-\rho A\,u_{tt}\delta u\). Integration of \(-EAu_x\delta u_x\) by parts in space produces \(+\partial_x(EAu_x)\delta u\) and a remaining term \(-[EAu_x\delta u]_0^L\). Thus the interior equation is \(\rho A u_{tt}=\partial_x(EAu_x)\), and the end force conjugate to displacement is axial force \(N=EAu_x\). Adding external work \(F_L(t)\delta u(L)\) at the right face yields

\[N(L)=F_L.\]

A prescribed displacement instead imposes \(\delta u(L)=0\), leaving its reaction as an output. Keeping this boundary term prevents prescribing displacement and independent traction simultaneously at the same end of a second-order rod.

Determine the energy flux and characteristic impedance

Assume time-independent coefficients. Multiply the field equation by \(u_t\) and rearrange to obtain

\[\partial_t[\rho A u_t^2/2+EAu_x^2/2]+\partial_x[-EAu_xu_t]=0.\]

The energy flux is \(-Nu_t\), with positive sign denoting energy moving towards increasing \(x\). The minus sign follows the convention of positive tensile \(N\): positive mechanical power entering through a right face is \(Nu_t\), which is inward with respect to the rod on its left. This identity controls energy transport across both smooth material changes and sharp joints.

For a homogeneous right-moving wave \(u=F(x-ct)\), \(c=\sqrt{E/\rho}\), particle velocity \(v=u_t=-cF'\) and axial force \(N=EAF'=-Zv\), where \(Z=\rho A c=EA/c\). A left-moving wave has \(N=+Zv\). The impedance is force divided by particle velocity and has units \({\rm kg/s}\). If one instead uses stress, impedance is \(\rho c\) per unit area. Doubling the area of the same material keeps wave speed unchanged but doubles the force–velocity impedance. A transit-time measurement and a reflection measurement therefore provide independent material or geometry information.

For a rod with \(E=70\,{\rm GPa}\), \(\rho=2700\,{\rm kg/m^3}\) and \(A=1.0\times10^{-4}\,{\rm m^2}\), \(c\approx5092\,{\rm m/s}\) and \(Z\approx1375\,{\rm kg/s}\). A right-going compressive pulse with particle speed \(0.020\,{\rm m/s}\) carries axial force \(-27.5\,{\rm N}\), compressive stress \(0.275\,{\rm MPa}\), and instantaneous power \(Zv^2=0.550\,{\rm W}\) across a section. A rectangular approximation lasting \(100\,\mu{\rm s}\) carries about \(55\,\mu{\rm J}\) and occupies \(0.509\,{\rm m}\). The pulse speed is kilometres per second; the material particles move only millimetres per second. Treating these as the same velocity would spoil force, impulse and energy estimates.

Match a bonded interface and distinguish amplitude from power

At a perfect massless bond displacement and axial force are continuous. For an incident right-going velocity amplitude \(v_i\) in rod 1, let \(v_r\) be reflected left-going velocity and \(v_t\) transmitted right-going velocity. Velocity continuity gives

\[v_i+v_r=v_t.\]

Force continuity gives

\[-Z_1v_i+Z_1v_r=-Z_2v_t.\]

Thus

\[r_v=\frac{Z_1-Z_2}{Z_1+Z_2},\]
\[t_v=\frac{2Z_1}{Z_1+Z_2},\]
\[{\cal R}=r_v^2,\]
\[{\cal T}=\frac{Z_2}{Z_1}t_v^2=\frac{4Z_1Z_2}{(Z_1+Z_2)^2}.\]

The power fractions add to one for real positive impedances. The reflected force coefficient has opposite sign to the reflected velocity coefficient because the wave direction reverses. At a free end \(Z_2\to0\), reflected velocity equals incident velocity, so end velocity doubles while total force vanishes. At a rigid end \(Z_2\to\infty\), velocity reverses and force doubles. The sign a strain gauge reports can therefore differ from that of a velocity-sensitive optical measurement at the same reflection.

A step from the worked rod into one of the same material with twice the cross-sectional area gives \(Z_2=2Z_1\), \(r_v=-1/3\), \(t_v=2/3\), and power fractions \(1/9\) and \(8/9\). A reduced transmitted velocity amplitude does not imply that most energy is reflected. If the interface includes a concentrated mass \(M_b\), force jumps instead obey \(N_2-N_1=M_b\dot v_b\) with signs determined by forces exerted on that mass from either side. At high frequency the reaction of that mass can mimic a much stiffer termination. Frequency-dependent reflection is then an expected boundary effect, rather than evidence that the bulk modulus varies with frequency.

Connect continuum modes to their lattice predecessor

For a periodic chain the exact discrete equation is

\[m_s\ddot u_j=k_s(u_{j+1}-2u_j+u_{j-1}).\]

Substitute \(u_j=U e^{i(kja-\omega t)}\) to obtain

\[\omega=2\sqrt{k_s/m_s}\,|\sin(ka/2)|.\]

In the first positive Brillouin zone, \(\omega/(ck)=\sin(ka/2)/(ka/2)\) and group velocity \(d\omega/dk=c\cos(ka/2)\), where \(c=a\sqrt{k_s/m_s}\). The continuum rod retains only the leading low-\(ka\) term. A wave with eight sites per wavelength has phase speed about \(0.9745c\) and group speed \(0.9239c\). A narrowband packet's peak can arrive later than the continuum prediction even when a single crest is timed fairly accurately.

A finite-difference code approximating the continuum rod can produce the same spatial dispersion with its mesh spacing in place of a physical lattice spacing. Distinguish them experimentally or numerically by changing the computational mesh while holding the physical structure fixed. Lattice effects persist as the numerical grid is refined; artificial spatial dispersion diminishes. A separate time-step study is needed if a time integrator also disperses the wave. Comparing both peak arrival and phase at two frequencies tests more of the dynamics than fitting a single transit time.

Derive transverse beam waves from curvature energy

A slender beam bending laterally is governed by a different elastic energy from the axial rod. Let \(w(x,t)\) denote small transverse deflection of its neutral axis. Under the Euler–Bernoulli assumption that cross sections remain plane and normal to that axis, the axial strain a distance \(z\) from the neutral axis is approximately \(-z w_{xx}\). Integrating the local elastic energy \(E\epsilon_{xx}^2/2\) across the section gives \(EI_Aw_{xx}^2/2\) per unit length, where \(I_A=\int z^2\,dA\) is a geometrical second moment of area, with units \({\rm m^4}\). It is distinct from a mass moment of inertia. The kinetic contribution uses line density \(\rho A\) as before.

Varying \({\cal L}=\rho A w_t^2/2-EI_Aw_{xx}^2/2\) requires integrating twice by parts in space. With constant coefficients the interior variation gives

\[\rho A w_{tt}+EI_A w_{xxxx}=0.\]

The boundary terms are \(-[EI_Aw_{xx}\delta w_x]+[(EI_Aw_{xx})_x\delta w]\). Thus slope variations pair with bending moments and displacement variations with shear forces, with signs set by the chosen face orientation. A clamped end prescribes both deflection and slope; a free end sets moment and shear to zero. A simply supported end prescribes deflection and zero bending moment. Using only one boundary condition per end, as for the axial rod, leaves the fourth-order beam problem underdetermined.

A sinusoid \(e^{i(kx-\omega t)}\) gives

\[\omega=\sqrt{EI_A/(\rho A)}\,k^2.\]

Phase speed grows proportionally to wavenumber and group speed is twice phase speed in this model. A narrow transverse pulse in a long beam consequently spreads even in a perfectly homogeneous non-dissipative continuum. By contrast the axial rod was nondispersive in its long-wavelength continuum approximation. At high enough frequency the simple bending model omits rotary inertia, shear deformation and eventually three-dimensional elastic behaviour. Extrapolating its unbounded speed to arbitrary \(k\) would use the slender, low-frequency approximation far beyond its derivation.

For a simply supported beam with length \(L\), the sine modes satisfy both end conditions and give

\[\omega_n=(n\pi/L)^2\sqrt{EI_A/(\rho A)}.\]

For a rectangular section of width \(w_b\) and thickness \(d\) in the bending direction, \(I_A=w_bd^3/12\) and \(A=w_bd\). Doubling thickness doubles all the natural angular frequencies at fixed \(L,E,\rho\), whereas doubling width alone leaves the ideal frequencies unchanged. The stiffness increases and so does the inertia. A beam with \(L=0.50\,{\rm m}\), \(d=5.0\,{\rm mm}\) and the earlier aluminium properties has \(\sqrt{EI_A/(\rho A)}\approx7.35\,{\rm m^2/s}\), giving fundamental \(46.2\,{\rm Hz}\). The second bending mode is near four times that frequency, a clear difference from the approximately harmonic axial mode sequence.

Match a force pulse to a support spring and dashpot

A right termination exerts force on the rod through a dashpot with mechanical impedance \(Z_L\). For a real positive dashpot impedance the reflected velocity fraction is \(r=(Z-Z_L)/(Z+Z_L)\). Taking \(Z_L=Z\) gives zero reflection at the termination even though energy leaves a finite rod: the dashpot dissipates the arriving power. With \(Z_L=3Z\) one obtains a reflected velocity of \(-1/2\) of the incident value, a reflected energy fraction one quarter and absorbed power fraction three quarters. A free or rigid end also reflects energy, but it absorbs no net power in the ideal limit. A measured weak reflection alone is therefore not proof of weak damping inside the rod.

For a pure end spring of stiffness \(k_L\) attached to a rigid support, the velocity impedance is \(Z_L=k_L/(i\omega)\) under \(e^{i\omega t}\). It is imaginary, so the reflection coefficient has unit magnitude at every frequency and a frequency-dependent phase. At low frequency the spring impedance is large and the end looks nearly fixed. At high frequency its impedance is small and the end looks nearly free within the lumped approximation. An impulsive signal contains many frequencies and can return with a changed waveform even without any transmitted or dissipated energy. A support combining a resistor-like dashpot and a spring gives both amplitude loss and phase variation.

A measurement with strain gauges at two positions can separate forward and backward waves if their path delays are resolved. In a narrow frequency band the two records are linear combinations of advancing and returning phase factors. If the gauge spacing corresponds to an integer number of half wavelengths, these combinations become linearly dependent and the separation is ill-conditioned. Change the spacing, use a broadband pulse, or combine a velocity measurement with a strain measurement at one station so that the two characteristic directions enter with opposite signs. The relation \(v=(v_++v_-)\), \(N=Z(-v_++v_-)\) then gives a direct local decomposition.

Derive sound propagation from mass and momentum conservation

The displacement-action argument has a fluid analogue. Take an initially uniform fluid of density \(\rho_0\) and pressure \(p_0\), moving little from equilibrium in one spatial dimension. Write small perturbations \(\rho',p',v\). Linearised mass conservation is

\[\partial_t\rho'+\rho_0\partial_x v=0.\]

Momentum balance for a short fluid parcel is \(\rho_0\partial_tv=-\partial_xp'\). If compression over an acoustic cycle is approximately isentropic, \(p'=c_s^2\rho'\) with \(c_s^2=(\partial p/\partial\rho)_s\). Differentiate the first equation in time, eliminate the velocity derivative with momentum balance, and obtain \(\partial_t^2p'=c_s^2\partial_x^2p'\).

The thermodynamic derivative matters because pressure can respond differently when compression is slow enough for heat exchange. For a perfect gas with ratio of specific heats \(\gamma\), isentropic perturbations give

\[c_s^2=\gamma p_0/\rho_0.\]

Taking an isothermal derivative would give \(p_0/\rho_0\) instead. For \(p_0=101\,{\rm kPa}\), \(\rho_0=1.20\,{\rm kg/m^3}\), and \(\gamma=1.40\), the isentropic speed is about \(343\,{\rm m/s}\), while the isothermal calculation gives \(290\,{\rm m/s}\). A measured transit time can discriminate between these constitutive conditions. Wall heat exchange in a very narrow tube can alter which approximation is appropriate over a chosen frequency band.

For a right-moving sound wave \(p'=\rho_0c_s v\), with the pressure positive in compression. This differs in sign from the tensile-positive axial force used for the rod, so match physical force conventions before borrowing formulas across the two examples. The acoustic power per area is \(p'v\). For sinusoidal pressure with rms amplitude \(1.0\,{\rm Pa}\) in the stated gas, the mean intensity is

\[p_{\rm rms}^2/(\rho_0 c_s)=2.43\times10^{-3}\,{\rm W/m^2}.\]

A peak amplitude of \(1.0\,{\rm Pa}\) would yield half this number. Writing rms or peak explicitly prevents a routine factor-of-two error when comparing a microphone measurement with an energy flux.

Determine whether a measured transit reveals a modulus or a geometry

Suppose two axially loaded slender rods have measured wave speeds agreeing within their uncertainties. That alone determines only the ratio \(E/\rho\) under the slender-rod assumptions. Measuring force–velocity impedance \(Z=\rho A c\) and cross section as well gives \(\rho=Z/(Ac)\) and \(E=Zc/A\). With \(Z=1375\,{\rm kg/s}\), \(c=5092\,{\rm m/s}\) and \(A=1.0\times10^{-4}\,{\rm m^2}\), the inversion gives

\[\rho=2700\,{\rm kg/m^3},\]
\[E=70.0\,{\rm GPa}.\]

If area were overestimated by five percent, both inferred quantities would be underestimated by almost five percent while their ratio remained correct.

Now examine a thick elastic solid under a narrow compressional disturbance with wavelengths short compared with its transverse dimensions. Lateral deformation can be constrained by surrounding material. In an isotropic three-dimensional continuum the longitudinal plane-wave modulus is \(\lambda+2\mu_s\), where \(\lambda,\mu_s\) are Lamé coefficients, rather than the uniaxial-stress Young modulus of a slender rod. The shear-wave speed satisfies \(c_T^2=\mu_s/\rho\) and longitudinal speed \(c_L^2=(\lambda+2\mu_s)/\rho\). Measuring both, together with density, can recover the two independent elastic moduli. Using only one longitudinal speed to infer Young modulus without specifying the deformation geometry can give a physically incorrect value.

For \(\rho=2500\,{\rm kg/m^3}\), \(c_L=5000\,{\rm m/s}\) and \(c_T=3000\,{\rm m/s}\), these relations give

\[\mu_s=22.5\,{\rm GPa},\]
\[\lambda=17.5\,{\rm GPa}.\]

The implied Young modulus \(E=\mu_s(3\lambda+2\mu_s)/(\lambda+\mu_s)=54.8\,{\rm GPa}\), while \(\rho c_L^2=62.5\,{\rm GPa}\). Both numbers represent material stiffness, but they enter different mechanical boundary conditions. A long thin specimen of the same material should have an axial speed closer to \(\sqrt{E/\rho}=4680\,{\rm m/s}\). Comparing the bulk and rod experiments tests the constitutive and geometrical assumptions behind the measured speed.

Derive orthogonality when a rod changes material along its length

For a rod with positive varying density \(\rho(x)\), area \(A(x)\) and modulus \(E(x)\), a separated free oscillation \(u(x,t)=\phi(x)\cos\omega t\) satisfies

\[-[EA\phi']'=\omega^2\rho A\phi.\]

Suppose two modes \(\phi_n,\phi_m\) satisfy the same homogeneous fixed or free boundary conditions and the correct continuity of displacement and axial force across every perfectly bonded interface. Multiply the first equation by \(\phi_m\), the second by \(\phi_n\), subtract and integrate. Interior terms produced by integration by parts cancel pairwise, including the interface flux terms, and the endpoint terms vanish. Thus

\[(\omega_n^2-\omega_m^2)\int\rho A\phi_n\phi_m\,dx=0.\]

Mode shapes with distinct frequencies are orthogonal under the mass-weighted inner product, not generally under a simple average of displacements measured at uniformly spaced stations. An initial velocity distribution \(v_0(x)\) projects onto mode \(n\) with coefficient \(\int\rho A v_0\phi_n\,dx/\int\rho A\phi_n^2\,dx\). In a rod with a heavy section, the same imposed velocity there stores more energy and carries more modal weight. An experiment interpreting raw camera amplitudes without line-density weighting can misassign energy among modes. Normalising each measured mode shape to unit maximum does not fix the mass weighting needed for energies.

Multiplying one eigenvalue equation by its own shape gives

\[\omega_n^2=\int EA(\phi_n')^2dx/\int\rho A\phi_n^2dx.\]

For an admissible trial function satisfying prescribed displacement conditions, the same quotient bounds the fundamental squared frequency from above when rigid translations are excluded. Consider a uniform fixed–free rod and trial \(\phi=x/L\). The numerator is \(EA/L\) and denominator \(\rho A L/3\), giving \(\omega_{\rm trial}=\sqrt3\,c/L\). The exact fundamental is \(\pi c/(2L)\), so this one-parameter shape overestimates frequency by about \(10.3\%\). It need not satisfy the free-end traction condition itself because that is a natural condition of the variational minimiser; it does need to satisfy the essential fixed-end displacement.

For a free–free rod the constant displacement mode has zero frequency. Using an arbitrary positive trial function without removing its mass-weighted mean can drive a quotient towards zero by adding a large constant. To estimate the first deforming mode impose orthogonality to the rigid translation, \(\int\rho A\phi\,dx=0\). This has an immediate mechanical interpretation: the deformation mode should not translate the centre of mass of an isolated rod. The null mode and its mass-weighted constraint reappear in numerical eigenproblems built from discretised stiffness and mass matrices.

Find where a discrete elastic chain ceases to look continuous

Shorten the wavelength relative to the lattice spacing. Compare the phase and group velocities with those inferred from a continuum action.

Track work and impulse in a one-dimensional pulse experiment

A finite displacement pulse provides a useful warning about integrating strain and velocity records. A right-going strain pulse of one sign can carry net momentum \(\int\rho A v\,dx\). Because \(v=-cu_x\), its integrated material momentum is \(-\rho Ac[u(+\infty)-u(-\infty)]\) at a fixed time. A localised displacement bump that returns to the same displacement on both sides has zero net ordinary material momentum, even though its energy is positive and travels to the right. Its strain and particle-velocity records contain positive and negative parts. A unipolar velocity pulse leaves behind a displacement step, produced by a source that has supplied net impulse.

For a right-moving rectangular velocity pulse of amplitude \(0.020\,{\rm m/s}\), duration \(100\,\mu{\rm s}\) in the worked rod, the local displacement jump measured in time is \(2.0\,\mu{\rm m}\). Its impulse magnitude across a section is \(Z v\Delta t=2.75\times10^{-3}\,{\rm N\,s}\), while its transmitted energy is

\[Zv^2\Delta t=55.0\,\mu{\rm J}.\]

A second equal pulse of opposite velocity sign launched later cancels the net displacement and material momentum but doubles the transmitted energy. Thus integrating a signed velocity signal and integrating its square distinguish different properties of the same experimental record.

A displacement sensor has a small linear drift during a burst. Which inferred observables are particularly sensitive?

Work through the solution

Differentiating adds a constant offset to particle velocity. Integrating that apparent velocity over a long window produces a growing spurious displacement jump and momentum estimate. Squaring it adds both a cross term with the physical velocity and a positive baseline energy. Measure a pre-pulse baseline, choose an integration interval covering the physical pulse, and test that the result is stable when the window is moderately extended. An independent strain gauge gives another characteristic combination; comparison with \(N=-Zv\) can expose drift or an overlapping reflection.

Can a finite-element rod model with a plausible first eigenfrequency still fail an impulse test?

Work through the solution

The first frequency mostly probes a long-wavelength weighted stiffness-to-mass ratio. A brief pulse contains higher modes and is sensitive to temporal resolution, dispersion, boundary tractions and the way discrete source work enters. Verify modal frequencies at several wavelengths, check the pulse's positive energy and signed impulse separately, and compare the measured incoming and reflected characteristic fluxes. A single standing-wave eigenvalue cannot validate all of those physically independent balances.

Recover a jump condition at an interface with a point mass

For a concentrated mass \(M_b\) joining two rods include \(M_bu_t(x_b)^2/2\) as a separate contribution to the Lagrangian. Its time variation contributes \(-M_bu_{tt}\delta u\) at the joint. The left and right rod boundary terms contribute respectively \(-N_1\delta u\) and \(+N_2\delta u\). Requiring stationarity for an independently varying shared displacement gives exactly \(N_2-N_1=M_bu_{tt}\). This derivation identifies both the sign and the constitutive assumption of a perfectly bonded, nonslipping joint.

For identical rods and a sinusoidal drive at angular frequency \(\omega\), the reflected velocity coefficient becomes \(r=-i\omega M_b/(2Z+i\omega M_b)\) under the stated phasor convention. At \(\omega M_b=2Z\) it reflects half the power and transmits half. The mass itself absorbs no cycle-averaged energy, though it stores kinetic energy during a cycle. For \(Z=100\,{\rm kg/s}\) and \(M_b=0.10\,{\rm kg}\), the equal-power frequency is about \(318\,{\rm Hz}\). A real joint that loses appreciable power at that frequency needs a damping or radiation term in addition to its measured mass.

Tutorial on stress waves

A gauge \(0.80\,{\rm m}\) from a free end records the echo of a sharp disturbance in the worked rod. What echo delay and strain sign should it expect?

Work through the solution

The extra path from gauge to end and back is \(1.60\,{\rm m}\), giving \(1.60/5092=0.314\,{\rm ms}\). A free end has zero net axial force, so the reflected force and strain have opposite signs to the incident ones. The velocity reflection keeps its sign. Finite pulse width and any change of material between gauge and end can obscure that simple result.

A bonded step has measured reflected velocity coefficient \(-0.20\) and no detectable dissipation. Infer its impedance ratio and transmitted energy fraction.

Work through the solution

Rearranging \(r_v=(1-r)/(1+r)\) gives

\[r=Z_2/Z_1=(1-r_v)/(1+r_v)=1.50.\]

The energy reflection is \(0.04\) and transmission \(0.96\). The velocity transmission is \(0.80\), whose square alone is only \(0.64\). Multiplying by the transmitted-to-incident impedance ratio recovers the correct energy fraction.

A rod model with a prescribed displacement at its right end reports nonzero work there, even though the variational boundary term vanished in deriving its equation. Is there a contradiction?

Work through the solution

Vanishing of \(N\delta u\) follows because the allowed virtual displacement at a prescribed boundary is zero. Actual boundary velocity can be nonzero when the prescribed displacement varies in time. The actuator supplies power \(Nu_t\) at the right boundary. Compare the time-integrated input with the change of stored energy plus any losses or outgoing energy rather than identifying an admissible variation with actual displacement.

Compare a finite chain with its long-wavelength continuum.

Fließbach includes string vibrations, beam bending and sound in his continuum mechanics treatment.

From binary collisions to the Boltzmann equation

An initially anisotropic velocity distribution can relax even though every individual collision conserves energy and momentum. Describe a dilute gas with a phase-space density, derive the structure of its collision term and prove which distribution can stop producing entropy. Then examine the assumptions behind that proof and the measurements most likely to reveal their failure.

What the one-particle function counts

Let \(f(\mathbf r,\mathbf v,t)d^3r\,d^3v\) be the expected number of particles in a small phase-space cell. Integrating over velocities gives number density \(n\), and the mean velocity is \(\mathbf u=n^{-1}\int\mathbf v f\,d^3v\). Define the peculiar velocity \(\mathbf c=\mathbf v-\mathbf u\); its second moment sets local kinetic energy after removing the organised flow. A gas can have large bulk speed but low temperature.

Follow a particle ballistically over a short interval under acceleration \(\mathbf a=\mathbf F/m\). With no collisions, phase-space probability is advected along its trajectories. For a standard position-dependent force, phase-space flow has zero divergence, giving the streaming operator \(\partial_t f+\mathbf v\cdot\nabla_r f+\mathbf a\cdot\nabla_v f\). Magnetic Lorentz acceleration also has zero velocity-space divergence. A dissipative velocity-dependent drag generally requires the divergence form \(\nabla_v\cdot(\mathbf a f)\) instead. It should not silently be inserted into the Hamiltonian streaming expression.

We now assume a dilute classical gas of identical particles with short-ranged binary elastic collisions, approximated as local on the spatial scale resolved by \(f\). Different particles approaching collision are assumed uncorrelated apart from their individual one-particle distributions at that position. This molecular-chaos approximation is an assumption about incoming pairs, not a claim that the outgoing particles remain uncorrelated. It is the step that allows the evolution to close on a one-particle function.

Count pairs crossing a scattering area

Consider a tagged incident velocity \(\mathbf v\) and a possible partner \(\mathbf v_1\). Their relative speed \(g=|\mathbf v-\mathbf v_1|\) converts a differential scattering cross section \(d\sigma/d\Omega\) into the swept interaction volume per unit time. A binary collision rotates the relative velocity in the centre-of-mass frame while preserving its magnitude. With equal masses, set \(\mathbf V=(\mathbf v+\mathbf v_1)/2\) and \(\mathbf g=\mathbf v-\mathbf v_1\). The partner and tagged postcollision velocities are \(\mathbf V\pm\mathbf g'/2\), where \(|\mathbf g'|=|\mathbf g|\). This parametrisation enforces momentum and kinetic energy conservation before choosing a scattering direction.

The loss term counts incoming pairs with velocities \(\mathbf v,\mathbf v_1\). The gain counts inverse collisions that produce the specified velocity. Microreversibility of elastic scattering and invariance of the integration measure allow the compact expression

\[C[f](\mathbf v)=\int d^3v_1\,d\Omega\,g\frac{d\sigma}{d\Omega}\left[f(\mathbf v')f(\mathbf v_1')-f(\mathbf v)f(\mathbf v_1)\right].\]

Both products refer to the same position and time. A change in which pair is called primed merely swaps gain and loss if one reverses the parametrisation consistently. This formula uses a consistent distinct-partner convention for the full scattering measure. When counting the total number of collision events per volume rather than the loss of tagged particles, divide the sum over all ordered pairs by two. Confusing those two observables gives an erroneous collision frequency.

For hard spheres of molecular diameter \(d\), the total geometric cross section is \(\pi d^2\). In an equilibrium Maxwellian the mean relative speed is \(\sqrt2\) times the mean single speed for identical masses. The mean free path under the usual hard-sphere convention is \(\ell=1/(\sqrt2 n\pi d^2)\). For \(d=0.36\) nm, \(n=2.4\times10^{25}\) per cubic metre and molecular mass 28 unified atomic units at 300 K, \(\ell=72.4\) nm and \(\bar v=476\) m/s. Their ratio gives a characteristic flight time 0.152 ns.

Take a weak moment of the collision operator

For a test function \(\psi(\mathbf v)\), multiply the collision term by \(\psi\) and integrate over tagged velocity. Exchange the identities of both particles and then exchange incoming and outgoing velocities in the gain integral. The result expresses the change of the pair's total test-function value:

\[\int\psi C[f]\,d^3v=\frac12\int d^3v\,d^3v_1\,d\Omega\,g\frac{d\sigma}{d\Omega}ff_1[\psi'+\psi_1'-\psi-\psi_1] .\]

For \(\psi=1\), \(m\mathbf v\) and \(mv^2/2\) the square bracket vanishes collision by collision. Integrating the kinetic equation gives exact local conservation of mass, momentum and energy with appropriate streaming fluxes, regardless of how close the distribution is to Maxwellian. Conservation alone leaves a hierarchy: the momentum flux depends on the pressure tensor and the energy flux on a heat flux, both higher velocity moments.

A numerical collision solver should check all these invariants separately. Equal masses allow a direct test with velocities \((300,100,0)\) and \((-100,100,0)\) m/s. Their centre velocity is \((100,100,0)\) and relative velocity has magnitude 400 m/s. Rotating it from \(x\) to \(y\) gives outgoing velocities \((100,300,0)\) and \((100,-100,0)\). Total velocity and total squared speed agree before and after, but the directional kinetic energy has changed. A field of such collisions can isotropise the pressure tensor while leaving total energy fixed.

Derive a sign-definite entropy production

Define the local kinetic \(H\) density as \(\int f\log(f/f_\star)d^3v\) with a constant reference of matching units. The reference only changes a conserved number contribution. For a homogeneous isolated gas the collision contribution to its time derivative follows by applying the weak form with \(\psi=\log f\). Average the result with its incoming–outgoing interchange. Setting \(A=ff_1\), \(B=f'f_1'\), one obtains

\[\frac{dH}{dt}=-\frac14\int d^3v\,d^3v_1\,d\Omega\,g\frac{d\sigma}{d\Omega}(A-B)\log(A/B)\le0 .\]

For positive \(A,B\), logarithm and difference have the same sign; appropriate limits handle zero occupation. Thus the Boltzmann entropy \(-k_BH\) does not decrease from these local binary collisions. In an inhomogeneous region, advection additionally transports entropy through the boundaries. A local cell's kinetic entropy can drop because entropy leaves the cell, while collision production remains nonnegative.

Equality requires \(ff_1=f'f_1'\) for collisions connected by the scattering kernel. Equivalently \(\log f+\log f_1\) is a collision invariant. For sufficiently rich elastic scattering in three dimensions the smooth additive collision invariants are linear combinations of particle number, momentum and energy. Therefore \(\log f=a+\mathbf b\cdot\mathbf v+c v^2\), with \(c<0\) for normalisation. Completing the square and matching moments yields the local Maxwellian:

\[f_M=n\left(\frac{m}{2\pi k_BT}\right)^{3/2}\exp[-m|\mathbf v-\mathbf u|^2/(2k_BT)] .\]

A Maxwellian at each location makes the collision term zero locally, but spatial gradients usually leave a nonzero streaming term. Such a distribution can evolve because neighbouring cells exchange particles. Conversely, a truly global equilibrium in an external conservative potential includes the appropriate spatial Boltzmann factor. In one-dimensional equal-mass elastic collisions particles merely exchange velocities, so the assumed richness of three-dimensional scattering fails; an arbitrary velocity histogram need not thermalise through those collisions.

Assess the kinetic and hydrodynamic descriptions separately

Define Knudsen number \(Kn=\ell/L\) using the length over which the distribution or boundary condition changes. In the earlier gas \(Kn=7.2\times10^{-5}\) for a 1 mm chamber feature but 0.072 for a 1 micrometre channel gap. The same binary collision model can remain dilute in both, yet a no-slip bulk hydrodynamic closure may be much less accurate in the microchannel. A mean free path small relative to the overall device length is insufficient if a sharp boundary layer develops on a much shorter scale.

A useful relaxation-time collision approximation is \(C_{\rm BGK}=-(f-f_M)/\tau\), with \(f_M\) computed from the local conserved moments of \(f\). This enforces their conservation and models return to local Maxwellian without evaluating an angular integral. If an externally fixed Maxwellian is used irrespective of actual local density, momentum and energy, the approximation can remove these quantities spuriously. A single fitted relaxation time also need not reproduce both stress and heat transport for a real gas.

A particle simulation resolving binary encounters must choose spatial cells small enough to represent local variation, and event or collision timesteps short against relevant flight or collision times. Statistical noise decreases with independent sampled pairs; refining cells while keeping total simulated particle count fixed can make local collision estimates noisier. Compare conservation, relaxation of anisotropic moments and a transport observable under separate refinements of geometry and sample count. A correct mean pressure alone is a weak test of a collision operator.

Compare the flux-weighted velocities of escaping particles with the bulk velocity distribution

Take the next moment and exhibit the source of viscosity

Write momentum density as \(\rho u_i=m\int v_i f\,d^3v\). The flux of \(i\)-momentum through a surface with normal in direction \(j\) is \(m\int v_iv_j f\,d^3v=\rho u_i u_j+P_{ij}\), where \(P_{ij}=m\int c_i c_j f\,d^3v\). The scalar pressure is one third of its trace in three dimensions. Multiplying the kinetic equation by \(mv_i\) and using collision invariance yields the momentum balance with \(\partial_j P_{ij}\) explicitly. No constitutive assumption has yet set the off-diagonal components to zero or made them proportional to strain rate.

For a local Maxwellian, the odd moments of peculiar velocity vanish and \(P_{ij}=nk_BT\delta_{ij}\). Now consider slow shear with mean velocity \(u_x(y)\), and approximate collisions by a relaxation time \(\tau\). In a local coordinate frame moving with the fluid write \(f\simeq f_M-\tau v_y\partial_y f_M\) to first order in gradient. At constant density and temperature,

\[\partial_y f_M=(m c_x/k_BT)f_M\partial_y u_x.\]

The off-diagonal momentum flux correction is therefore a fourth Gaussian velocity moment:

\[P_{xy}=-\tau\frac{m^2}{k_BT}\partial_yu_x\int c_x^2c_y^2 f_Md^3v=-nk_BT\tau\,\partial_yu_x .\]

The integral factorises into variances \(k_BT/m\) in the two directions. Under the kinetic pressure-tensor convention the result has a minus sign, because random motion transports high \(x\)-momentum toward lower mean velocity. The viscous part of the Cauchy stress is commonly written with the opposite sign convention. State which tensor enters the balance before declaring a predicted shear stress negative. The dynamic viscosity of this simple model is \(\eta=p\tau\).

If \(p=1.0\times10^5\) Pa and the fitted stress relaxation time is \(1.8\times10^{-10}\) s, this gives \(1.8\times10^{-5}\) Pa s. At a shear rate of \(10^3\) per second the dissipative stress magnitude is 0.018 Pa, tiny compared with equilibrium pressure and with dimensionless shear rate \(\tau|\partial_yu_x|=1.8\times10^{-7}\). A stress measurement must resolve a small anisotropic contribution on top of a large isotropic pressure. A pressure gauge alone cannot test this kinetic viscosity relation.

In a dilute hard-sphere gas the mean collision time scales inversely with density. The simultaneous pressure factor then makes dynamic viscosity approximately independent of density at fixed temperature in the dilute continuum regime. The kinematic viscosity, \(\eta/\rho\), still changes strongly. A gas made sufficiently rarefied no longer supports ordinary no-slip continuum flow through a fixed channel, so an apparent pressure-dependent flow resistance can coexist with an essentially density-independent bulk dynamic viscosity.

Infer accommodation from a wall momentum measurement

The interior collision operator does not prescribe the boundary condition at a solid wall. Specular reflection reverses normal velocity while preserving tangential velocity in the wall frame. Diffuse thermal re-emission from a fully accommodating stationary wall instead draws outgoing velocities from a wall-temperature distribution appropriate to the outward flux and erases incident tangential drift. A real clean or rough surface may lie between these limits. The boundary scattering model matters particularly when particles encounter the wall as often as other particles.

For a simple moving plate in a dilute gas at the same temperature, suppose a fraction \(\alpha\) of incident particles accommodates tangentially to plate speed \(U\), and the rest reflects specularly. To leading order in small tangential drift, accommodated particles carry away an average tangential momentum increment \(mU\) if incident gas has zero mean tangential speed. The incident number flux on one plate face is \(n\bar v/4\). Thus the leading tangential drag magnitude on the plate is \(\alpha mUn\bar v/4\) per area in this ideal free-molecular geometry.

Take \(n=10^{21}\) per cubic metre, molecular mass \(4.65\times10^{-26}\) kg, \(\bar v=480\) m/s, \(U=2.0\) m/s and \(\alpha=0.80\). The predicted shear is about \(8.93\times10^{-3}\) Pa per exposed face. The effect scales linearly with density here, unlike the dilute continuum viscosity at a fixed macroscopic velocity gradient. Both results derive from momentum transport, but the first describes particles crossing a wall-bounded collisionless region and the second local shear sustained by many intermolecular collisions. Compare them only after specifying the Knudsen number and wall geometry.

To test the accommodation model, reverse the plate motion to remove static force offsets, vary density across a regime that remains free molecular and change the exposed surface while keeping area fixed. A single measurement gives the combination of accommodation fraction, incident number flux and velocity difference. It cannot separate a changing incident gas drift from a changing material accommodation coefficient. Measuring the upstream velocity distribution or using opposed plates with known relative motion supplies additional constraints.

A discrete collision quartet demonstrates the H theorem numerically

A single allowed reversible collision connects two incoming velocity cells to two outgoing cells. Suppose cell-volume and scattering factors have been normalised so that its net flux is \(K(A-B)\), with \(A=f_1f_2\), \(B=f_3f_4\). It removes particles from cells one and two and adds them to three and four when \(A>B\). Conservation requires the representative cell velocities to satisfy the same pair momentum and energy constraints used for a physical collision. Assigning arbitrary four velocities may conserve the number of particles but will generally create energy.

Choose the velocities from the earlier rotated-pair example and occupancies \(f_1=4,f_2=1,f_3=2,f_4=1\) in a common dimensionless reference. Then \(A=4\), \(B=2\) and the forward flux is \(2K\). Its contribution to \(dH/dt\) is \(-2K\log2\), negative. The exact continuous rate tends to zero as the products equalise. A forward Euler step larger than \(f_2/(2K)\) would make the second occupancy negative and destroy the logarithm's meaning. Nonnegative entropy production for the continuum collision model does not guarantee it for an arbitrary numerical time step.

An implicit or positivity-preserving update can avoid this failure, but still requires independent tests of conserved moments and of the correct equilibrium. For this isolated quartet the condition \(f_1f_2=f_3f_4\) alone leaves many possible stationary cell distributions. A network of collision quartets sufficiently connecting the velocity space is needed to enforce a Maxwellian-like equilibrium. On a coarse discrete velocity lattice too few permitted momentum- and energy-conserving quartets may leave artificial invariants. A code can display exactly conserved energy and monotonically decreasing \(H\) while relaxing to the wrong distribution because its collision graph is incomplete.

A velocity-selective aperture tests collision equilibration

A thin aperture feeding a vacuum produces a flux-weighted distribution from a local Maxwellian reservoir. A detector placed downstream generally selects a finite angular cone and may respond differently to fast and slow particles. Consider two narrow speed bins with the same width in speed and the same angular acceptance. For an effusive Maxwellian their flux ratio contains a cube of speed multiplied by a Boltzmann exponential. A bulk sampler instead has a square of speed. Confusing these prefactors shifts a temperature inferred from ratios even if the gas truly is locally equilibrated.

For bins at speeds \(v\) and \(2v\), and choosing \(mv^2/(2k_BT)=1\), the effusive high-to-low ratio is

\[8e^{-3}=0.398.\]

The bulk number-density ratio at those speeds would be \(4e^{-3}=0.199\). A downstream detector measuring particles present in a fixed optical observation volume may weight by travel time, introducing an additional approximate inverse speed that moves the response closer to density weighting. Distinguish arrivals counted per time from particles counted during an exposure.

Changing aperture diameter is an independent control. A broad opening or high upstream density can produce collisional expansion and a directed jet, altering both angular and speed distributions. Measure pressure and beam shape across aperture sizes and compare the small-aperture limit before attributing a non-Maxwellian downstream spectrum to a failure of local thermal equilibrium throughout the reservoir.

A flight-time measurement tests free paths and speed selection separately

Imagine a dilute molecular tracer introduced into a uniform bath. For a deliberately simplified constant collision-rate model with rate \(r\), probability of no collision by time \(t\) is \(e^{-rt}\). For tracers conditioned to have one speed \(v\), the distribution of collision-free distance is then exponential with mean \(v/r\). If the collision rate itself depends on speed through the average relative velocity against the bath, the conditional mean free path is \(v/r(v)\). Mixing all initial speeds need not produce a single exponential in distance, even if every conditional waiting time is exponential.

Place a detector a distance \(L\) downstream that accepts only trajectories maintaining their initial direction. For a narrow injected speed class, the unscattered fraction is approximately \(e^{-r(v)L/v}\) if any collision removes it from the acceptance. For a class at 500 m/s and mean free path 0.20 m, a detector at 0.10 m receives an unscattered fraction 0.607; at 0.30 m it receives 0.223. A ratio of the two readings removes the unknown injection strength and recovers the attenuation coefficient if detector acceptances and geometric factors match.

If forward-scattered trajectories remain inside the acceptance, the apparent attenuation is smaller than the total collision rate. Angularly narrowing the receiver should approach the total-removal model for suitable scattering. A finite source pulse and finite time-of-flight bin also select velocities even if the source initially emitted a Maxwellian. Fit survival separately in narrow speed bins first. A nonexponential whole-beam attenuation then need not imply that the microscopic collision process has memory; it can arise purely from an unresolved distribution of rates.

A simulation can distinguish these alternatives by logging every collision event and comparing the full collision count with the detector-defined removed count. First test conditional survival for a prepared monochromatic beam, then add a known distribution of incident speeds and calculate the mixture prediction explicitly. Finally include a finite angular acceptance and integrate the differential cross section over the appropriate retained directions. These steps separate the kinetic collision operator, the initial distribution and the observation rule.

The same logic applies to a relaxation experiment reporting a single characteristic mean free time. The decay time of a directional flux depends on how much momentum is deflected per collision, not simply on how often particles meet. Strongly forward-peaked scattering can have a large total cross section and a much smaller momentum-transfer cross section weighted by \(1-\cos\theta\). A measured attenuation and a measured viscosity may consequently constrain different moments of precisely the same differential scattering process.

For example, if every collision deflects a test particle through a small fixed angle of ten degrees in the relevant frame, the momentum-transfer weighting is

\[1-\cos10^\circ=0.0152.\]

The corresponding transport cross section can then be far smaller than the total cross section even when collisions are frequent. A velocity-randomising approximation that uses the total collision time as its stress-relaxation time would predict much faster momentum relaxation than this angular picture supports. Actual stress and energy transport involve additional angular weights and velocity averages, so this numerical comparison is a scale diagnostic rather than an exact viscosity formula. Measure several angular moments of the differential scattering kernel or compare at least two independently sensitive transport observables before assigning a universal relaxation time to a real collisional gas.

Follow an H functional during a reversible elementary collision

Prepare unequal populations in two velocity pairs. Count forward and reverse collision rates and compare the sign of entropy change with the population imbalance.

Tutorial · Find the equilibrium temperature of an anisotropic preparation

A homogeneous gas has zero mean flow and component kinetic temperatures 600, 300 and 150 K, defined by \(m\langle v_i^2\rangle=k_BT_i\). In an isolated elastic gas, predict its equilibrium temperature and pressure tensor change. Could a thermostat holding the velocity variance in one direction at its original value permit the same inference?

Retain all three conserved energy contributions

Conservation of total kinetic energy implies \(T_f=(600+300+150)/3=350\) K. Initially the diagonal kinetic pressure components are \(nk_BT_i\); ultimately each becomes \(nk_B(350\,{\rm K})\). Their sum is unchanged. A component singled out by a thermostat can exchange work or heat with its environment. Its final common temperature, if one exists, must be obtained from the full energy balance including that exchange. Isotropisation cannot simply be assumed to retain the initial isolated mean.

Tutorial · Estimate the error in a collision-frequency inference

A detector reports a mean speed of 480 m/s and a geometric collision cross section \(4.0\times10^{-19}\) square metres at \(n=2.0\times10^{25}\) per cubic metre. Estimate the collision rate per tagged particle and total events per unit volume per second for an equilibrium identical-particle gas. What changes in a molecular beam with almost parallel velocities?

Use the relative rather than the single-particle speed

The equilibrium mean relative speed is \(\sqrt2(480)=679\) m/s. The rate per tagged particle is \(ng\sigma\simeq5.43\times10^9\) per second. Multiplying by \(n/2\) gives event rate \(5.43\times10^{34}\) per cubic metre per second. In a nearly monoenergetic collimated beam the relative speed can be much less than the mean laboratory speed. Evaluate its pair-distribution average explicitly; translating every velocity by a common vector leaves all collision rates unchanged at fixed distribution of relative velocities.

Tutorial · Does reversing all velocities contradict the H theorem?

In a dilute-gas simulation, reverse all particle velocities at a chosen instant with exact precision. An ideal reversible microscopic integrator would retrace the prior trajectory. Explain how this outcome can coexist with a kinetic equation predicting nondecreasing entropy, and propose a comparison that isolates the missing information.

State which distributions are controlled by the reversal

The reversed incoming pairs carry precise correlations inherited from earlier outgoing collisions. Their two-particle distribution generally does not factor into the product of their one-particle distributions just before future collisions. The molecular-chaos step used to derive the collision operator therefore fails for this deliberately prepared history. Microscopic Hamiltonian evolution and the coarse one-particle closure make different state specifications.

Prepare a second gas with the same reversed one-particle velocity histogram but with spatial and partner correlations randomised while conserving total momentum and energy. Compare the two subsequent anisotropy histories. The kinetic equation has the same initial one-particle input for both, while a microscopic simulation can distinguish them through higher-order correlations. Imperfect numerical reversal introduces a separate error; test exactness and time-step dependence before interpreting a failure to retrace as a fundamental thermodynamic observation.

Cambridge Kinetic Theory · the Boltzmann equation, collision invariants and hydrodynamics

Transport coefficients from equilibrium fluctuations

How can a fluid in equilibrium reveal the diffusion constant that would govern a spreading drop, or the viscosity that would resist an applied shear? Derive an exact connection between displacements and velocity correlations, generalise it to stress and heat currents and test how a finite record can bias each number. The assumptions behind convergence matter as much as the prefactor.

Integrate the velocity correlation before taking a long-time limit

Observe one Cartesian coordinate of a tagged particle in a homogeneous equilibrium fluid with zero mean drift. The displacement over time \(t\) is the integral of its velocity. Square that integral, average over the equilibrium ensemble and use stationarity to replace the two-time expectation by \(C_v(t_1-t_2)\). For a scalar component in a time-reversal-symmetric equilibrium state this correlation is even. Integrate over the two triangles of the time square:

\[\langle[x(t)-x(0)]^2\rangle=2\int_0^t(t-s)C_v(s)\,ds,\]
\[\frac12\frac{d}{dt}\langle\Delta x^2(t)\rangle=\int_0^t C_v(s)\,ds .\]

If the correlation is integrable and boundary effects remain absent, the long-time slope yields a diffusion coefficient \(D=\int_0^\infty C_v(s)ds\). In \(d\) isotropic dimensions one may use \(D=(1/d)\int\langle\mathbf v(s)\cdot\mathbf v(0)\rangle ds\) or the mean-square-displacement slope divided by \(2d\). Using the full vector dot product without division by dimension gives an overestimate. Directional diffusion in an anisotropic material requires tensor components rather than a forced scalar average.

The derivation is kinematic and does not assume a Markovian motion. A fluid with velocity memory or an oscillating solid still obeys the finite-time relation. Those systems need not exhibit the same long-time proportionality to time. A bound oscillator can have persistent or alternating velocity correlations and a bounded displacement. An observation window in which the mean square grows over a fraction of an oscillation is insufficient to claim diffusion.

A solvable benchmark from ballistic to diffusive motion

For one coordinate take the underdamped Langevin equation \(m\dot v=-\zeta v+\xi\), with zero-mean white noise satisfying \(\langle\xi(t)\xi(t')\rangle=2k_BT\zeta\,\delta(t-t')\). In equilibrium \(\langle v^2\rangle=k_BT/m\). Condition on \(v(0)\) and integrate for positive time. The later random force has no correlation with the initial velocity, giving \(C_v=(k_BT/m)e^{-t/\tau_v}\), where \(\tau_v=m/\zeta\). Its area and the resulting displacement are

\[D=\frac{k_BT}{\zeta},\]
\[\langle\Delta x^2(t)\rangle=2D[t-\tau_v(1-e^{-t/\tau_v})].\]

At \(t\ll\tau_v\), the constant and linear terms inside the brackets cancel and displacement is ballistic:

\[\langle\Delta x^2\rangle\simeq(k_BT/m)t^2.\]

At \(t\gg\tau_v\) the slope approaches \(2D\). Fitting a line through the origin at times only a few relaxation times overestimates the influence of the negative intercept in this long-time expression and underestimates \(D\). Comparisons at multiple lags distinguish crossover curvature from a true anomalous power law.

For an inert sphere of radius 0.50 micrometres and density \(2000\) kg per cubic metre in water with \(\eta=1.00\) mPa s at 298 K, its bare mass is \(1.05\times10^{-15}\) kg and Stokes drag \(9.42\times10^{-9}\) kg/s. The estimate \(\tau_v=0.111\) microseconds is far faster than ordinary video tracking. \(D=0.437\) square micrometres per second and the one-coordinate rms displacement over 10 ms is 0.0935 micrometres. Hydrodynamic added mass and memory affect very short-time behaviour; the simple exponential is an analytical reference, not a claim that a water suspension remains Markovian down to arbitrary times.

Relate a weak imposed force to equilibrium motion

In the same soluble model a small constant force \(F\) turns the mean velocity into \(F(1-e^{-t/\tau_v})/\zeta\), so the mobility \(b=\lim\langle v\rangle/F=1/\zeta\). Together with equilibrium diffusion this gives the Einstein relation \(D=k_BTb\). A broader equilibrium argument considers a dilute suspension in a weak conservative potential \(U(x)\). Its current is

\[j=-D\,\partial_x n+bFn,\]

with \(F=-\partial_xU\). The Boltzmann distribution \(n\propto e^{-U/k_BT}\) must carry zero current; substitution gives the same relation without assuming exponential velocity relaxation.

Linear response connects the full weak-force impulse response to an equilibrium correlation. For a perturbation coupled as \(-F(t)x\), classical equilibrium response of velocity has causal kernel \(C_v(t)/(k_BT)\) for \(t>0\) under the usual microreversibility assumptions. Integrating the response kernel for a constant weak force gives

\[b=(1/k_BT)\int_0^\infty C_v(t)dt,\]

which recovers the kinematic diffusion relation. Strong forcing, an active bath or a nonequilibrium steady state need not obey this simple equilibrium identity.

A direct check compares independently measured weak sedimentation or calibrated drift with freely diffusing trajectories. For the previous bead a force 10 fN would produce a mean drift about 1.06 micrometres per second in the ideal Stokes regime. During a 10 ms frame its mean drift is about 0.011 micrometres, much smaller than rms Brownian motion, so many frames or many particles are needed. A single short jagged record can appear to move against the force. Use equal positive and negative applied forces to cancel constant stage drift in the estimated mobility.

Work through diffusion and mobility in the random-walk chapter

Stress and heat current carry their own normalisations

In a homogeneous isotropic laboratory fluid, define \(P_{xy}\) as a spatially averaged off-diagonal microscopic stress, with units Pa. Its equilibrium mean is zero in an isotropic state without imposed shear. A weak velocity gradient couples to momentum transport. The Green–Kubo expression for dynamic shear viscosity is

\[\eta=\frac{V}{k_BT}\int_0^\infty\langle P_{xy}(t)P_{xy}(0)\rangle\,dt .\]

If a program outputs an extensive stress moment \(J_{xy}=V P_{xy}\), the prefactor is \(1/(Vk_BT)\). Multiplying an already extensive current by volume again is a common orders-of-magnitude error. Check dimensions: pressure squared times time times volume divided by energy gives pascal seconds. Kinetic and interaction contributions to microscopic stress must both be included according to the model; a calculation with ideal kinetic flux alone need not reproduce the viscosity of a dense fluid.

Similarly for a component of total heat current \(J_{Q,x}\) with units energy times length per time, the thermal conductivity in an isotropic equilibrium single-component system is

\[\kappa=\frac{1}{Vk_BT^2}\int_0^\infty\langle J_{Q,x}(t)J_{Q,x}(0)\rangle\,dt .\]

Here \(k_BT^2\) means \(k_B\) times \(T^2\). If a heat-flux density is used instead, the volume prefactor moves as for stress. Heat current must exclude energy carried by a net mass flow as appropriate to the chosen thermodynamic constraint. In mixtures several conserved species currents can couple, and the measured conductivity at zero mass flux can differ from one unprojected current coefficient. The meaning of the measured flux and the imposed condition must be specified before comparing coefficients.

For an illustrative volume \(10^{-24}\) cubic metres at 300 K, assume one stress autocorrelation \(C_P(t)=(2.0\times10^6\ {\rm Pa})^2 e^{-t/(2.0\,{\rm ps})}\). Its area is 8.0 square pascal seconds. Multiplication by \(V/(k_BT)\) gives viscosity \(1.93\times10^{-3}\) Pa s. Doubling the simulated volume of an otherwise similar homogeneous fluid generally reduces the variance of its volume-averaged stress, keeping the physical transport coefficient intensive. Holding the same numerical stress variance while merely changing the prefactor would describe a different equilibrium fluctuation model.

Find a correlation integral's useful time window

An estimate at lag \(s\) averages over pairs of samples separated by that lag. In a record of duration \(T_{\rm rec}\), the number of available pairs decreases with lag. Overlapping time origins strongly correlate the estimates, so plotting one error bar per raw pair exaggerates precision. Integrating an estimated correlation to the maximum possible lag frequently accumulates late random noise rather than useful signal. Conversely stopping too early omits a physical tail.

For a positive single-exponential reference, integrating to three correlation times retains \(1-e^{-3}=95.0\) percent of the area. Five times retain 99.3 percent. A correlation containing a small, much slower component can look essentially flat on the main decay scale while contributing appreciably to the area. Divide a long run into blocks, compare running integrals and check several window lengths. Report the variation between independent blocks and any explicit tail model used beyond the measured interval.

At short lags, finite exposure averages correlated positions or velocities. Uncorrelated localisation errors in position increase nonzero-lag displacement variance by a constant \(2s_x^2\) per coordinate. Numerically differentiating those same noisy positions creates large artificial velocity variance and negative correlations between adjacent increments. An apparent negative velocity lobe can therefore be physical backscattering or a measurement artefact. Comparing a raw displacement fit with the velocity integral after independently characterising detector noise is more informative than differentiating first and interpreting every feature as fluid memory.

A forced shear wave gives a second viscosity measurement

An equilibrium stress correlation estimates viscosity without imposing any flow. A separate driven measurement can test that coefficient against a directly observed penetration depth. Take a Newtonian fluid filling \(y>0\), driven by a laterally oscillating plate at \(y=0\) with speed \(U_0\cos\omega t\). Neglect boundaries at large \(y\), compressibility and nonlinear convective effects in this spatially uniform tangential shear. The momentum equation reduces to

\[\partial_tu=\nu\partial_y^2u,\]

with kinematic viscosity \(\nu=\eta/\rho\).

Seek \(u=\operatorname{Re}[U_0e^{-\lambda y-i\omega t}]\) and choose the square root with positive real part. Then \(\lambda=(1-i)/\delta\),

\[\delta=\sqrt{2\nu/\omega}.\]

Both amplitude decay and phase lag carry information: at distance one penetration depth the amplitude is \(e^{-1}\) of the wall speed and the lag magnitude is one radian. A single complex velocity map can determine viscosity from either slope and use their agreement to test the simple model.

For a fluid of density \(1000\) kg per cubic metre and measured penetration depth 0.126 mm at 20 Hz, \(\nu=\omega\delta^2/2\simeq1.00\times10^{-6}\) square metres per second and \(\eta\simeq1.00\) mPa s. A stress-fluctuation integral yielding a value twice as large would predict a penetration depth larger by \(\sqrt2\), approximately 0.178 mm. Such a comparison can discriminate a missing component or volume factor in the equilibrium calculation if density, temperature and fluid composition match.

At high enough frequency the fluid may have a complex frequency-dependent viscosity rather than the zero-frequency coefficient from a Green–Kubo area. In linear response that generalisation is the one-sided Fourier transform of the equilibrium stress correlation with appropriate prefactors. A single-exponential stress memory gives a frequency-dependent response with a characteristic roll-off and phase lag. Comparing a high-frequency penetration measurement directly to a zero-frequency area without checking the timescale can therefore produce a genuine difference, not a statistical failure.

Remove a centre-of-mass mode only when the observable requires it

In a finite periodic particle simulation total momentum may be exactly conserved. If the initial centre of mass has a random velocity and no thermostat removes it, every particle's measured laboratory coordinate includes the common drift \(V_{\rm CM}t\). Its mean-squared displacement gains a ballistic term \(\langle V_{\rm CM}^2\rangle t^2\). In a canonical ensemble the centre-of-mass velocity variance in one direction is \(k_BT/M_{\rm tot}\). Though it falls with system size, at sufficiently long times its quadratic contribution exceeds the linear diffusive part.

For 1000 equal particles of mass \(m\), an equilibrium centre-of-mass mode contributes one thousandth of the single-particle instantaneous velocity variance. In a long-time autocorrelation this small constant never integrates to a finite diffusion coefficient. Subtract centre-of-mass displacement or work in a zero-total-momentum ensemble before taking the long-time integral of an internal tracer's motion. In a real sample with externally imposed drift, decide whether the physical quantity sought is diffusion about that drift or absolute laboratory displacement; the subtraction has a physical meaning rather than merely a cosmetic improvement.

Conversely, indiscriminately subtracting the mean velocity of a tiny observation subregion separately at every time can remove genuine hydrodynamic long-wavelength motion. A strongly applied single-particle thermostat can alter current correlations and suppress transport even while maintaining the correct static temperature histogram. Check the thermostat strength and system size; compare an equilibrium-prepared weakly thermostatted trajectory with an energy-conserving production segment where appropriate. Maintaining the correct one-time distribution is not sufficient to preserve all dynamical correlation functions.

The distinction also matters when removing an estimated mean stress before integrating its fluctuations. The true shear mean may vanish by symmetry, but a short noisy record has a nonzero sample mean. Subtracting a slowly varying trend on the same timescale as a genuine stress tail can erase physical viscosity. Use independent samples, separately measured drifts and explicit sensitivity to the subtraction window. A persistent nonzero off-diagonal stress under nominal isotropic conditions may indicate incomplete equilibration, a deformed box or an unrelaxed solid rather than a fluid transport coefficient.

Heat and particle currents can share fluctuations

Consider two thermodynamic fluxes \(J_1,J_2\) driven weakly by conjugate forces \(X_1,X_2\), chosen so entropy production density is \(J_1X_1+J_2X_2\). Linear response writes \(J_i=\sum_jL_{ij}X_j\). Near time-reversal-symmetric equilibrium, with flux parities chosen appropriately and no magnetic-field reversal complications, reciprocal relations give

\[L_{12}=L_{21}.\]

The symmetric part must be positive semidefinite so that entropy production is nonnegative for every small force. Thus \(L_{11},L_{22}\ge0\) and \(L_{12}^2\le L_{11}L_{22}\).

Suppose a thermal measurement enforces \(J_1=0\) by allowing a compensating force \(X_1\) to develop, as when a concentration or electrochemical gradient cancels a coupled particle flux. Solving the first row gives

\[X_1=-L_{12}X_2/L_{11}.\]

Substitution into the second yields response coefficient \(L_{22}-L_{21}L_{12}/L_{11}\). The measured constrained heat response can therefore be smaller than the coefficient at fixed \(X_1=0\). The difference has a simple operational origin in the boundary condition enforced during the experiment.

Take consistent normalised coefficients \(L_{11}=4,L_{22}=3,L_{12}=L_{21}=2\). At zero first force the heat flux slope is three. At zero first flux it is \(3-4/4=2\). Both are positive and consistent with the same equilibrium correlation matrix. Comparing a simulated heat-current autocorrelation corresponding to the unconstrained coefficient against a zero-particle-flux experiment requires the mixed-current correlation too. Apparent disagreement by a factor of one and a half can arise entirely from this distinction.

Green–Kubo cross-correlations must use properly defined conjugate fluxes and units. Redefining heat current by adding a constant multiple of particle current changes the matrix entries but must leave a physically defined zero-particle-flux heat measurement invariant when the forces are transformed consistently. This reference invariance is analogous to subtracting a per-particle energy reference in grand-canonical covariance. It provides a powerful test of a multicomponent transport implementation without relying on any empirical transport value.

A lattice trajectory provides an exactly known correlation integral

For a one-dimensional nearest-neighbour walk with steps of length \(a\) every interval \(\Delta t\), suppose successive step directions have correlation \(\langle s_{j+k}s_j\rangle=r^k\) with \(|r|<1\), and zero mean. Squaring the sum of \(n\) steps gives

\[a^2[n+2\sum_{k=1}^{n-1}(n-k)r^k].\]

In the large-\(n\) limit divide by \(2n\Delta t\) to obtain

\[D=a^2(1+r)/[2\Delta t(1-r)].\]

The uncorrelated random-walk value is recovered at \(r=0\).

With \(a=1\) micrometre and \(\Delta t=0.10\) s, uncorrelated diffusion is five square micrometres per second. Persistence \(r=0.5\) raises it to fifteen, while anticorrelation \(r=-0.5\) lowers it to \(5/3\). All three walks have the same step-size variance, so an estimate based only on one-frame displacement misses the entire correlation effect. The finite-lag autocorrelation sum and a long-time displacement fit should recover the same value on a long simulated record.

The discrete formula also clarifies the special zero-lag weight in numerical integration. An integral approximated from sampled symmetric correlations gives half weight to the zero lag on a one-sided trapezoidal rule. A careless double count of the instantaneous self term predicts twice the uncorrelated diffusion. Benchmark a numerical estimator with this exact walk before applying it to molecular data with unknown late tails and noisy velocity derivatives.

Measure an off-diagonal diffusion coefficient after rotating the sample

In an anisotropic sheet a tracer's two-dimensional displacement covariance need not align with the camera axes. Let its long-time principal diffusion coefficients be \(D_1,D_2\) and the first principal axis make angle \(\theta\) with laboratory \(x\). In matrix form the laboratory tensor is \(R\,{\rm diag}(D_1,D_2)R^{\mathsf T}\), with \(R\) the planar rotation. At sufficiently large lag in an effectively unbounded drift-free region, the displacement covariance matrix tends to \(2D t\). An off-diagonal covariance is a measurable correlation between displacement components even if the noise is independent in the material principal directions.

Take \(D_1=2.0\) and \(D_2=0.50\) square micrometres per second with \(\theta=30^\circ\). Laboratory components are \(D_{xx}=1.625\), \(D_{yy}=0.875\) and \(D_{xy}=0.650\), in the same units. At 0.10 s the cross covariance is 0.130 square micrometres. Rotating the physical sheet by ninety degrees interchanges the two diagonal values and reverses the sign of the off-diagonal one. An instrument-fixed camera readout artefact would not generally follow this material rotation.

To infer the principal axes from data, fit each covariance component versus lag using a common drift subtraction and independent position calibration. Diagonalise the symmetric fitted diffusion matrix. Positive semidefiniteness requires

\[D_{xy}^2\le D_{xx}D_{yy}.\]

A strong violation indicates incompatible estimates, unit conversion errors or statistical uncertainty, not a physically permissible strongly anisotropic diffusion tensor. Near-degenerate principal values make the orientation poorly determined even when the mean diffusion coefficient is precise. Report uncertainties on eigenvalues and orientation separately.

A finite field of view introduces a further bias. Fast particles along the high-diffusion direction leave the image sooner, and a tracking pipeline retaining only long trajectories can favour slow or fortuitously confined paths. Compare different fields of view and minimum track durations, or fit a measurement model incorporating censoring. A physical material anisotropy should persist after correcting these effects; apparent anisotropy aligned with the short direction of a rectangular observation window demands particular scrutiny.

A weak calibrated force along different axes supplies an independent check through the tensor Einstein relation under equilibrium conditions. If the diffusion tensor predicts off-axis mean drift, the mobility experiment should observe its sign and magnitude after reversing the force. A discrepancy could reveal active forcing, nonstationarity, an incorrect temperature or a mismatch between the mobility and displacement observables. It cannot be diagnosed from a scalar mean square alone.

Another rotational invariant is the trace of the diffusion tensor. In the example its value stays 2.50 square micrometres per second for every sample orientation, while the determinant stays one square micrometre to the fourth per second squared. A comparison of two camera orientations therefore provides numerical checks independent of the fitted angle. A drift mistakenly left in the displacement covariance can violate the expected linear dependence on lag, making the inferred effective eigenvalues grow with the selected fitting window. Subtract the ensemble mean displacement at each lag and record that mean separately as a flow measurement. Conversely do not subtract an individual best-fit line from every short trajectory without modelling the resulting loss of long-time fluctuations; that procedure can bias both diffusion coefficients downward.

Choose an integration window for a transport coefficient

Integrate an oscillatory velocity correlation over a finite record. Compare a short apparent plateau with the independently computed infinite-time result.

Tutorial · Invert diffusion measurements at two lags

In a one-dimensional diffusive window a measured displacement variance is 0.024 square micrometres at 10 ms and 0.064 at 50 ms. Assume long-time Brownian displacements plus independent frame-localisation variance per position measurement. Estimate \(D\) and localisation precision.

Fit slope and intercept separately

The variance slope is \((0.064-0.024)/(0.050-0.010)=1.00\) square micrometre per second, so \(D=0.500\) square micrometres per second. The intercept is 0.014 square micrometres, equal to twice the single-frame localisation variance. The implied rms localisation error is \(\sqrt{0.007}=0.0837\) micrometres. Forcing the fit through the origin at the shortest lag would give \(D=1.20\), more than twice the inferred value.

Acquire more lags to test the linear model. A static drift contributes a term growing as \(t^2\) if its mean displacement is not removed, while finite exposure can lower the physically measured short-lag variance. Two points always define a line and cannot independently validate either noise model.

Tutorial · Estimate a hidden slow tail in viscosity

A stress correlation is modelled as \(A[e^{-t/\tau}+0.02e^{-t/(40\tau)}]\). What fraction of its true area comes from the low-amplitude tail? How much does a cutoff at \(5\tau\) capture?

Weight a correlation by its duration

The fast and slow areas are \(A\tau\) and \(0.80A\tau\). The slow contribution is 44.4 percent of total. Integration to five fast times captures \(A\tau[(1-e^{-5})+0.80(1-e^{-5/40})]\simeq1.087A\tau\), or about 60.4 percent. Visual disappearance of the dominant peak therefore does not establish convergence of the transport coefficient.

The slow contribution must be supported by independent long blocks or a physically motivated model. A fitted tiny constant baseline can generate arbitrarily large apparent area if extrapolated indefinitely. Subtracting a sample mean estimated from the same short record can conversely suppress a genuine slow mode. Compare records much longer than the proposed tail time before trusting the extrapolation.

Tutorial · Is an algebraic tail compatible with ordinary diffusion?

Suppose a measured long-time velocity correlation remains positive and scales as \(t^{-\alpha}\). Determine when its Green–Kubo area exists and infer the displacement growth for \(0<\alpha<1\) and for \(\alpha=1\). Why would a finite periodic simulation require care?

Integrate the time-dependent slope before naming a diffusion coefficient

For \(\alpha>1\) the tail integral converges. For \(0<\alpha<1\), the running area grows as \(t^{1-\alpha}\), so displacement variance grows as \(t^{2-\alpha}\) under the stated persistent positive tail. At \(\alpha=1\), the running area grows logarithmically and the displacement variance is of order \(t\log t\). Sign oscillations, finite-size termination or another late-time crossover can alter these conclusions.

A periodic box admits only discrete long-wavelength modes and may cut off a hydrodynamic tail. Repeating at larger sizes and comparing the range before signals traverse the box helps identify a bulk regime. Unwrap particle coordinates crossing periodic boundaries before calculating a displacement. A wrapped coordinate can falsely saturate and imitate a confined particle even in a freely diffusing periodic fluid.

Cambridge Kinetic Theory · correlations, response and transport