Skip to content

Drawing No. EH–EE–015 // Electrical Engineering

Magnetic Field Model

Reviewed August 2026

Explore how currents and magnetic dipoles create magnetic fields. Compare straight conductors, parallel wires, current loops, finite solenoids, Helmholtz coils and a bar-magnet dipole using live vectors, traced field lines, field-magnitude shading and a movable probe.

Scope: Educational magnetostatics in vacuum / ordinary air (μᵣ ≈ 1). Wire fields use analytical relations; loop, solenoid and Helmholtz fields are evaluated from Biot–Savart numerically. Calculations remain SI internally; alternate display units are applied only at the boundary.

What this model teaches

Magnetic fields do not begin on positive charges and end on negative charges: magnetic field lines form continuous loops. This page connects the right-hand rule, Biot–Savart law, Ampère’s law, superposition and Lorentz force in one visual model.

Biot–SavartAmpèreRight-hand ruleSuperpositionSolenoidHelmholtzMagnetic dipoleLorentz force
Choose a magnetic-field sourcethe field map and equations update together

Source & display controls

Current source
Long straight conductor normal to the page
Visualization layers
Moving test charge at probe
This test charge does not modify the source field. It is used only to visualize F = qv × B.

Probe & source results

Interactive magnetic field map

Drag the white probe anywhere in the field. Current symbols use ⊙ for current out of the page and ⊗ for current into the page. Moving particles follow the conventional magnetic-field direction.

Ampère / right-hand rule
drag probe · ⊙ current out · ⊗ current in · blue = magnetic field · orange = Lorentz force
magnetic field line current out of page× current into pagewhite crosshair = probe

Centerline field profile

|B| sampled along y = 0 through the displayed domain
Loading centerline field profile…

How to read a magnetic-field picture

Different visual layers answer different questions. Use the probe for quantitative values; use the field map to understand geometry and direction.

01 / Field vectorsEach arrow is tangent to B and points in the direction a compass north pole would point. Arrow length is log-scaled for readability.
02 / Field linesMagnetic field lines are continuous: they do not start or stop at isolated magnetic charges. The model traces them numerically through B.
03 / Magnitude shadingThe blue wash highlights strong-field regions using a logarithmic display scale. It is visual support, not a separate physical quantity.
04 / Lorentz forceThe orange probe arrow uses F = qv × B for a test particle moving normal to the page. Reversing q or v reverses the force.

Model assumptions & limits

The page is designed for education and preliminary checks, not detailed electromagnetic design of real equipment.

Background & FAQ

Sources and technical basis

Fields are computed from Ampère's law for the straight conductor and from numerical Biot–Savart integration for loops, solenoids and Helmholtz pairs.

OpenStax — University Physics Volume 2Sources of magnetic fields: Biot–Savart law, Ampère's law, solenoids and current loops.NIST — CODATA fundamental constantsVacuum magnetic permeability used throughout this page.