A Byte of PhysicsLogo

Equipotential surfaces

An equipotential is a set of locations with the same scalar electric potential. It is not a force line or a physical wall. In a two-dimensional display it appears as a contour; in three dimensions it is a surface. The useful programming claim is local: a small move tangent to an exact equipotential changes potential by zero, while the electrostatic field points in the direction of greatest decrease.

Think like a programmer

Keep scalar potential samples separate from contour geometry. The solver or analytic function owns V(x,y); a contour extractor only turns sampled values into line segments for display. Record grid spacing, contour level, interpolation policy, and excluded singular cells. Test the scalar level first, then test the contour/field relation; a smooth plot is not evidence that either is correct.

Model checklist

Inputs
Scalar potential function or grid in volts, domain bounds, cell spacing, contour levels, interpolation method, finite-difference step, singularity mask, and field sampler.
State
Potential samples, cells crossed by each level, interpolated contour vertices, local tangent estimates, field samples, and level residuals.
Rule
Find cells whose corner values bracket a chosen level; interpolate crossings, join compatible segments, and compare a local field sample with the contour tangent.
Output
Contour segments, per-vertex potential residual, field–tangent dot-product residual, and a list of skipped cells.
Check
Every retained vertex evaluates near its requested level; refining a smooth-domain grid reduces level and geometry change; E·tangent is near zero under the declared finite-difference tolerance; adding a constant to V changes no contour shape except level labels.
\[V(\mathbf r)=V_0\quad\Rightarrow\quad dV=\nabla V\cdot d\boldsymbol\ell=0,\qquad \mathbf E=-\nabla V\]

The tangent displacement dℓ lies along the contour. Since dV is zero there, ∇V is perpendicular to the tangent; E = −∇V has the same normal line with opposite sign. In code, normalize only after checking that both vectors have nonzero magnitude. A near-zero sampled gradient means the angle is ill-conditioned, not necessarily that the physics rule failed.

For a positive point charge, V = kq/r gives nested circular contours in an ideal two-dimensional slice. Farther contours correspond to lower potential. A symmetric pair of opposite charges is a stronger test: the perpendicular-bisector line has zero potential under equal-and-opposite source assumptions, while its field is generally not zero. This prevents the mistaken rule “zero potential means zero field.” Potential has an arbitrary additive reference; only differences and gradients carry the usual electrostatic predictions.

Contour extraction is a data pipeline. Each grid cell supplies corner values. A contour level crosses an edge only when the values bracket that level according to a documented equality rule; linear interpolation estimates the crossing location. Ambiguous cells, exactly-on-level vertices, and field singularities need deterministic tie-breaking so equivalent runs produce the same segments. The output should preserve the contour level with every segment rather than infer it later from color.

Try this experiment

Prediction: At a regular contour point, the field has no tangent component; shifting every potential sample by the same constant changes no field direction.

Choose an analytic potential such as V(x,y) = x² + 2y². Extract a level near the point (1, 1), estimate a tangent from nearby vertices, and compute E · tangent. Halve the grid and finite-difference steps separately, then report which residual changes. Finally add +7 V to every sample and check that field samples remain unchanged.

Where this model breaks

Coarse grids make contours stair-step or shift; interpolation can hide sharp changes between samples. Point-source potentials are singular at sources, and numerical gradients become unstable near masked cells or when the finite-difference step is too small for floating-point precision. In time-varying electromagnetism, potential choices are gauge-dependent and a static scalar-potential picture alone may be insufficient.

Summary

Generate equipotentials as labelled level-set geometry from scalar data, then verify both the requested potential value and the local field-normal relationship. Preserve grid, interpolation, and singularity choices with the result.

Glossary

Sources

Model contract

Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.

\[\text{observable output} = f(\text{inputs},\,\text{state})\]
Inputs
Quantities you set or measure, with units and useful bounds.
State
Values the program must retain to reproduce the next result.
Rule
The relationship or update that turns inputs and state into a result.
Check
A known limit, unit check, invariant, or measured result that can expose a bad model.

Implement the idea as a model

For Equipotential Surfaces, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Electric Potential and Capacitance, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.

Guided experiment

Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.

Where this model breaks

This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.

Summary

Treat Equipotential Surfaces as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.

Glossary

  • Input: a measured value or chosen parameter supplied to a model.
  • State: the smallest set of values needed to continue or reproduce a model.
  • Validation: comparing an output with a known result, limit, invariant, or measurement.

Self-check

  1. Which values are inputs, and which values must remain state?
  2. What observable result would tell you the model is behaving as expected?
  3. Which assumption would you test first before applying the model to a real system?

Model review: turn Equipotential Surfaces into a test

Generate and validate equal-potential contours from sampled scalar-field data.

  1. Name the inputs and units that the electric potential and capacitance model needs.
  2. Separate the state you must keep from values you can calculate when needed.
  3. Write one rule that maps the current state and inputs to an observable result.
  4. Choose a limiting case, unit check, invariant, or known result before trusting an output.
  5. State one assumption you would change before using this simplified model for a real decision.

Share to: