Magnetic Field Visualizer
Explore magnetic fields from different sources. Switch between bar magnets, straight wires, wire loops, and solenoids to see field lines, compass needles, and iron filing patterns.
Field Parameters
Properties
| Source | Bar Magnet |
| Strength | 5 |
| Current | 10 A |
| B at ref | -- |
| Direction | -- |
| Poles | -- |
The Physics Behind It
Magnetic Field Formulas
- Straight wire: B = μ₀I/(2πr)
- Solenoid: B = μ₀nI
- Wire loop center: B = μ₀I/(2R)
- Bar magnet: dipole field approximation
- μ₀ = 4π × 10&sup7; T·m/A
Key Concepts
- Magnetic field lines are always closed loops: they go from north to south outside the magnet and south to north inside
- Right-hand rule: curl fingers in the direction of current, thumb points along the magnetic field
- Solenoids produce a nearly uniform field inside, similar to a bar magnet externally
- Field strength decreases with distance; for a wire it drops as 1/r, for a dipole as 1/r³
You're crushing it!