opyeb EMLab

01 · Electrostatics

Electric field and potential map

Place point charges, drag them, and read the potential and the field vector at any point. Equipotential contours are extracted from the potential grid; field lines are integrated along the unit field with a fourth-order Runge–Kutta step.

move the pointer over the map

  • positive equipotential
  • negative equipotential
  • field line
  • vector sample

Method

How the map is built

Potential first, field second

The potential at a point is the scalar sum V = Σ kqᵢ/rᵢ over every charge, with r clamped at 1 µm so the sum stays finite at a charge. The field is the vector sum E = Σ kqᵢ(r − rᵢ)/|r − rᵢ|³. Both are evaluated from the same charge list, so the readout and the drawing cannot disagree.

Contours and lines

Equipotentials are found by evaluating V on a 104 × 78 grid and running marching squares at fourteen levels spaced geometrically around zero. Field lines start on a small circle around each charge and follow the unit field with RK4 at a 6 mm step, stopping at the frame or within 12 mm of a charge.

What is not modelled

Charges are fixed and the medium is vacuum. There is no induced charge on conductors and no dielectric polarisation. The slice is two-dimensional: a point charge in the slice behaves as a 3D point charge, not as an infinite line.

Formulas

Equations in use

V(x, y) = Σᵢ k qᵢ / √((x − xᵢ)² + (y − yᵢ)²)

E(x, y) = Σᵢ k qᵢ (r − rᵢ) / |r − rᵢ|³

E = −∇V, k = 1/(4πε₀) = 8.9875517923 × 10⁹ N·m²/C²

Drag any charge to move it; the cursor readout follows the pointer. The charge slider edits the selected charge and the list keeps every value explicit.

Guides

Read the theory behind this bench