tl;dr
Is there a trick I could use to work my way around branch cuts of
too short, tell me more
Consider if you will a little stream of water carving its way at the bottom of a hill. It suddenly encounters an abrupt cliff, cascades straight down, and emerges at the bottom in a new valley where it continues its local meandering. An eagle, observing the scene from a great height and just above the vertical drop, sees an uninterrupted line of water. This is, in essence, the problem I’m facing below.
The standard method
All of the interactive 2D representations I’ve seen online appear to be inaccurate in terms of field line density. They typically start with a specific number of field lines emerging at equi-spaced angles around a first charge, follow them up along the field until they reach a sink or go outside the window. For subsequent charges present in the scene, it is a bit unclear how to to add new lines, because they must complement the ones previously drawn, and also have a number (density) that reflects the local field strength. This is in fact also a problem for the first charge, for which equispaced field lines assumes isotropic field strength.
I believe a correct solution is non-trivial and would require an optimisation / iterative procedure for a given scene, whereby an initial set of such field lines is gradually re-arranged so as to obtain inter-line spacings that correspond to the local field strength. I have not seen this done anywhere.
(Note: I’m ignoring the fact that any 2D picture of field lines will not be physically accurate in terms of field lines density being proportional to the flux. One can think of infinite line charges orthogonal to the plane, instead of true point charges.)
The “clever” idea (or so I thought)
An elegant suggestion to solve some 2D electrostatics problems is the use of conformal mapping / complex holomorphic functions. At first sight, I thought that this problem would be amenable to a neat solution based on complex analysis.
We know how to calculate the potential
is a holomorphic function (outside the poles
for a unit charge at
The complex log is multivalued, unfortunately, so things aren’t that simple. Blatantly ignoring this “subtelty” for now and taking the imaginary part of its principal value yields,
Looking great, aside from those few ugly “artefacts” (so I thought). We got field lines, everywhere orthogonal to equipotentials, with very little effort (the graphics package has a routine for level curves), and they’re equispaced in terms of field gradient by construction.
A 3D perspective of the
The problem
Let’s take a step back and look at the function
Oops. Indeed, in order to have radial level curves around a volcano, it has to spiral like a helix.
The branch cut of the complex log is indeed a problem, we can’t simply sweep it under the carpet by taking the principal value.
The level curves algorithm doesn’t know what to do around a discontinuity: it wants to add
The failed hack
One may think that these horizontal artefacts, being unrelated to the physics, could be worked around by rotating the coordinates. It doesn’t matter for the physics which is called
Unfortunately, I don’t think so. Let’s overlap the two,
While in most regions we may be able to pick one set or the other to avoid discontinuities, there are some regions where neither of the sets of field lines avoids crossing any branch cuts. As a result we still have some discontinuities in the field lines. Additionally, in the problems-free regions for both sets, the level curves don’t coincide exactly, which means that if we were to stitch together the two solutions we would not end up with a rigorously correct density of field lines everywhere.
It may be that a clever level curves algorithm could look at the whole landscape and go straight across cliffs.
If anyone sees a way to salvage this doomed idea, please let me know!