Loading…

Magnetic Field Line Sketcher

Physics Electricity and Magnetism • Magnetic Fields and Sources

View all topics

7. Magnetic Field Line Sketcher

Generates qualitative magnetic field lines from simple current/magnet sources using superposition. Field lines are tangent to the local \(\mathbf{B}\) and form closed loops.

Units: meters (m), amperes (A), tesla (T). This tool is qualitative (for intuition/visualization). Inputs accept 1e-3, pi, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.
Sources + Controls
Wire source
Field around a straight wire is circular: \(\mathbf{B}\propto \dfrac{I}{r}\,\hat{\boldsymbol{\phi}}\).
Right-hand rule flips the circulation direction.
Field-line sketch settings
Higher density = more seeds + more lines near strong fields.
Smaller \(ds\) gives smoother curves (slower).
Stops long integrations / prevents infinite loops.
Shows local direction along field lines.
Axis/grid and source glyphs.
Ready

Canvas interaction:
• Pan = drag background
• Zoom = wheel/trackpad or pinch
• Add = click (Tool: Add source)
• Move = drag a source (Tool: Move)
• Delete = click a source (Tool: Delete)
• Probe = click to show \(\mathbf{B}\) at a point (Tool: Probe)

Steps

Add one or more sources, then click Sketch.

Field-line sketch

2D cross-section (\(x\)-\(y\)): sources, \(\mathbf{B}\) field lines, and direction
Legend
  • Wire: ⊙ (+z) or ⊗ (−z) at its position; field lines are circles around it
  • Dipole/bar magnet: N/S markers; lines bulge from N to S
  • Field lines are tangent to \(\mathbf{B}\) everywhere (qualitative)
  • Probe point shows \(\mathbf{B}\) vector direction and magnitude (relative)

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.