Modeling Magnetic Fields: A Beginner's Guide

Click For Summary

Discussion Overview

The discussion revolves around modeling the magnetic field around a bar magnet using analytical methods. Participants explore various mathematical approaches and concepts related to magnetic fields, including the use of solenoids, magnetic charge density, and potential equations. The scope includes theoretical modeling and potential applications in programming simulations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant suggests modeling a bar magnet as a solenoid with a uniform surface current, referencing the Biot-Savart law for field calculations.
  • Another participant discusses the complexity of integrating the magnetic field equations, particularly for non-axisymmetric geometries, and mentions the potential use of magnetic dipoles for distant points.
  • A third participant introduces the concept of effective magnetic charge density and the distinction between observable field lines and the demagnetizing field.
  • There is mention of using Legendre Polynomial expansions to extend the field calculations off the axis of a cylindrical bar magnet, though this is noted as potentially advanced for beginners.
  • Participants reference various textbooks and resources that may aid in understanding the mathematical concepts involved, including vector calculus and potential theory.

Areas of Agreement / Disagreement

Participants present multiple competing views and approaches to modeling the magnetic field, with no consensus on a single method or solution. The discussion remains unresolved regarding the best analytical approach.

Contextual Notes

Some limitations include the complexity of the mathematical methods discussed, the dependence on specific geometries, and the varying levels of familiarity with physics concepts among participants.

Who May Find This Useful

This discussion may be useful for individuals interested in theoretical physics, particularly those looking to model magnetic fields or develop simulations related to magnetism.

Galadirith
Messages
107
Reaction score
0
Hi guys, I have been wondering how can one model the field around a bar magnet in an analytical manner. I was talking to my A-level teacher and implied that a it could be done and an whole area of maths was developed specifically for it. I wouldn't go that far, but I am sure that the idea of force fields came about though studying physical phenomena which required forces for every point in space. I am looking to understand how you can model the Magnetic field around a bar magnet.

I have considered many ways but still can't figure out how, I get as far as being able to come up with models of interacting point particles, most likely because I haven't learn't about the concepts yet in Physics. I would love to know how to do this, and as much as possible the maths that went into developing modeling fields like this. The idea being is that I want to write some programs that are designed to explore how the fields interact, for my personal benefit they will be by no means developed to the point that many other people would want to use them.

Thanks Guys :-)
 
Physics news on Phys.org
Fundamentally, a bar magnet with uniform magnetization can be modeled as a solenoid with a uniform (bound) surface current:

[tex] \vec K = \vec n \times \vec M[/tex]

Where n is an outward unit normal vector to the surface. In principle, all you have to do, then, is to plug this into the Biot-Savart law:

[tex] \vec B=\frac{\mu_0}{4\pi}\int_\mathcal{S}\frac{\vec K \times \vec{ \hat r}}{r^2} dA[/tex]
However, Like the solenoid, this can only be evalutated to a closed form on the symmetry axis of the geometry.

A soleniod can also be modeled as a superposition of infinitely many flat coils. In case of a cirkular geometry, the field of the flat coil (current loop) can be expressed in terms of Eliptic integrals, see https://www.physicsforums.com/showthread.php?t=200602", thus in principle you should also be able to integrate these equations to get the field, but my guess is that this will lead to something very messy also (the last post in the thread referes to a book that supposedly treats the off-axis field of solenoids and bar magnets, so who knows...).

If you only need points far from the magnet, you could treat is as a stack of magnetic dipoles, which can be evaluated analytically.

However, as there are no free currents in a bar magnet, my suggestion is that you introduce a magnetic skalar potential for the magnetic H-field:

[tex] H=-\nabla\Phi_H[/tex]

which, in complete analogy with the electric potential, obey the Poisson equation:

[tex] \nabla^2\Phi=-\nabla\cdot\vec M[/tex]

With the divergence of M as the "charge density". This equation is very easy and efficient to solve using Finite Element Analysis.

As a curriosity, In case of a uniformly magnetized bar magnet, the only places the divergence of M is non-zero is at the ends, thus, the H-field is identical to the E-field of a parallel plate capacitor.

I hope I have pointed you in the right directions as to what to look for in literature, the details of either of these methods is far to comprehensive to discuss in detail in a forum. Good luck :)
 
Last edited by a moderator:
To amplify on Troels' post, the effective magnetic charge density on each pole is a fictitious quantity but very useful for solving your problem. When you calculate the field lines, the outer ones are those you observe (with iron filings, e.g.), while the inner one is called a "demagnetizing field" because it is opposite to the magnetization in the physical material.

The book by Reitz and Milford presents the whole thing, at least for the simpler case of a sphere (it turns out that a rectangular or cylindrical bar magnet is harder to compute). Understanding it (and the post above) might be tough going if you haven't taken physics yet because the math required includes vector calculus. Two of the better elementary college books are by Sears and Zemansky, and by Halliday and Resnik; they will talk in more general terms.

You might start with the Wikipedia articles on magnets.
 
The B field on the axis of a cylindrical bar magnet is not too hard to get.
It is done in more advanced texts than Reitz and Milford.
The field can be extended off the axis by using a Legendre Polynomial expansion.
This is probably too advanced for you at this time.
If you are relatively far from the magnet, you can use a dipole approximation, in which case the field is [tex]{3(\vec m}\cdot{\vec r}){\vec r}/r^5-{\vec m}/r^3.[/tex]
 
Last edited by a moderator:

Similar threads

  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 42 ·
2
Replies
42
Views
4K