⚡ Static electric fields
Field of a dipole
Section titled “Field of a dipole”🎯 Visualization of electric dipole field
🧠 Inspired by 7_Dipole.py
🐍 A VPython demo is available as well, see dipole_field.py
👉 Electric dipole field formula:
Live experiment
Section titled “Live experiment”Field of a solenoid ➿
Section titled “Field of a solenoid ➿”🎯 Electric field around a solenoid
🧠 Inspired by 25-4.Bsolenoid
👉 Field vectors are rendered on a logarithmic scale
🐍 A VPython demo is available as well, see solenoid.py
Live experiment
Section titled “Live experiment”💪 Potential fields
Section titled “💪 Potential fields”🎯 Electric field of a non-ideal capacitor
🧠 Inspired by this video by Jordan Huang
🐍 A VPython demo is available as well, see non_ideal_capacitor.py
Electric potential difference
Section titled “Electric potential difference ΔV\Delta VΔV”Theoretical background
Section titled “Theoretical background”The capacity for a capacitor consisting of two parallel plates is given by , where is the surface area and the distance between the plates, and the permittivity of the spacer material.
Since , we expect the fields to be approximately constant with until we get close to the edge of the plates. Therefore, we assume is negligible and can be taken to be zero. As the surrounding area does not contain any additional charges, we can consider this to be a so-called source-free region, and Laplace’s Equation applies:
A reasonable question to ask at this point would be, what about the potential field close to the edge of the plates, or, for that matter, beyond the plates? The field in this region is referred to as a fringing field. For the fringing field, is no longer negligible and must be taken into account.
In addition, it is necessary to modify the boundary conditions to account for the outside surfaces of the plates (that is, the sides of the plates that face away from the dielectric) and to account for the effect of the boundary between the spacer material and free space. These issues make the problem much more difficult. When an accurate calculation of a fringing field is necessary, it is common to resort to a numerical solution of Laplace’s Equation. Fortunately, accurate calculation of fringing fields is usually not required in practical engineering applications. — www.circuitbread.com
When we assume the plates to lie in the -plane, the fields will be symmetric along the -direction, hence will be zero.
This simplifies our Laplace equation to
Once we know the potential , we can also calculate the electric field:
So our task is to numerically solve the second order differential equation for the potential :
This translates to the following JavaScript code:
export class LaplaceOperator { static at(field, i, j) { return ( field.valueAt(i + 1, j) + field.valueAt(i - 1, j) + field.valueAt(i, j + 1) + field.valueAt(i, j - 1) - 4 * field.valueAt(i, j) ); }}The electric field
is then calculated in a similar way:
Infographics
Section titled “Infographics”

Capacitor fields
Section titled “Capacitor fields”