Magnetic Field of a Bar Magnet

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 4K views
Zeophlite
Messages
2
Reaction score
0
So I'm making a simulation to help me understand electromagnetics.
Basically I have a stationary bar magnet, along with a moving electron.
Each frame the electron has a force applied to it via the Lorentz force law, F = q(E+v cross B).
Now E = 0, but how do I calculate B?

The Biot-Savart law relates to currents, but a bar magnet doesn't have any current.

Cheers
 
Physics news on Phys.org
A bar magnet is like many tiny current loops. However the treatment is actually easier if you use the magnetic scalar potential (which works as long as the electron doesn't go through the current loop).

For a bar magnet with a constant magnetization parallel to the magnet you can calculate the magnetic scalar potential by assuming that there is a constant magnetic density m spread over both the pole surfaces. Each magnetic density bit contributes
[tex]\mathrm{d}V_m=\frac{m\mathrm{d}A}{4\pi r}[/tex]
(where dA is a surface element) to the scalar magnetic potential. The magnetic field from this potential - once you have summed over both pole surfaces - is
[tex]\vec{H}=\frac{\vec{B}}{\mu_0\mu_r}=-\nabla V_m[/tex]
 
Last edited: