Construct a forward problem that checks its own units
The walls of a square of side \(L=1\) m are held at zero. Along the tube nothing changes. Assume a vacuum and \(\rho=\rho_0\sin(\pi x/L)\sin(\pi y/L)\). Find the potential throughout the cross-section, explain the sign of the voltage and identify the dimensionless shape parameter if \(L\) changes.
Work through the solution
Gauss's law gives
Each second derivative on the sine product returns \(-(\pi/L)^2\) times that product. Thus \(V=\rho_0L^2\sin(\pi x/L)\sin(\pi y/L)/(2\pi^2\epsilon_0)\). The factor \(\rho_0L^2/\epsilon_0\) has units V, and the coordinates are \(x/L,y/L\). Positive charge makes the interior positive relative to the grounded walls. The grounded boundary and Poisson uniqueness fix the solution.
Infer the charge before opening the solver
At the centre an instrument measures \(5.72\pm0.05\) V. Determine the inferred peak charge density with uncertainty, assuming the sine shape is independently known. If a second probe is placed at \((L/4,L/2)\), what should it measure? Which error affects both estimates in the same way?
Work through the solution
Divide the reading by \(L^2/(2\pi^2\epsilon_0)\), or about 5.72165 V per nC/m³, to obtain \(1.000\pm0.009\) nC/m³ after rounding. The second voltage is the first times \(\sin(\pi/4)\), about 4.04 V. A gain error common to both instruments biases the inferred charge while leaving their voltage ratio unchanged.
Verify the mesh and distinguish forward from inverse error
Use the grounded-square experiment at 1 nC/m³. Compare 6, 12 and 24 cells across the tube. Run the same PDE in OneSimulation and check its centre row. Derive the sign of the grid error and the corresponding direction of bias if that grid were used to infer the charge.
Work through the solution
The discrete Laplacian eigenvalue is \(8\sin^2(\pi/(2n))/h^2\), \(h=L/n\). Because \(\sin t<t\) for positive \(t\), it is smaller than the continuum eigenvalue \(2(\pi/L)^2\). The discrete voltage is therefore high for the same density. Centre values for the three grids are about 5.8542, 5.7544 and 5.7298 V. Fitting the observed voltage with this grid would lower the charge estimate. The leading error decreases like \(n^{-2}\).
Show precisely what one probe misses
Add an unknown volume charge proportional to \(\sin(2\pi x/L)\sin(\pi y/L)\). Predict its centre signature and design a measurement to isolate it even in the presence of the original mode.
Work through the solution
The extra potential is proportional to the same shape divided by \(5\pi^2/L^2\). It vanishes at \(x=L/2\). The original centre probe cannot detect it at any amplitude. Place probes at \(x=L/4\) and \(3L/4\), both at \(y=L/2\). Their difference cancels the symmetric first mode and doubles the antisymmetric second. This is an identifiability gain from a change of measurement, independently of mesh refinement.