fluidistic
Gold Member
- 3,932
- 283
Hello people, in a near future I'd like to calculate (numerically, with finite elements) the magnetic field of several permanent magnets of various shapes. I am wondering which equation(s) I should solve, exactly.
It's been a long time I dived into an EM textbook and I don't have one in hand right now (though I do have internet!).
I think I will have to solve Maxwell equations with the following specifications.
##\vec E=\vec 0## (I consider there is no electric charge anywhere, no electric current either). Futhermore, nothing depends on time (steady state condition, as I won't move the magnets).
This leads to the consideration of ##\nabla \cdot \vec B=0## and ##\nabla \times B = \vec 0##. Now, I do not remember why, but as I remember, it is easier to solve for ##\vec A## the magnetic vector potential given by ##\vec B = \nabla \times \vec A##, to then retrieve ##\vec B##.
However I do not know which kind of boundary conditions I should apply for ##\vec A##. How would I specify that the medium is magnetized?
It's been a long time I dived into an EM textbook and I don't have one in hand right now (though I do have internet!).
I think I will have to solve Maxwell equations with the following specifications.
##\vec E=\vec 0## (I consider there is no electric charge anywhere, no electric current either). Futhermore, nothing depends on time (steady state condition, as I won't move the magnets).
This leads to the consideration of ##\nabla \cdot \vec B=0## and ##\nabla \times B = \vec 0##. Now, I do not remember why, but as I remember, it is easier to solve for ##\vec A## the magnetic vector potential given by ##\vec B = \nabla \times \vec A##, to then retrieve ##\vec B##.
However I do not know which kind of boundary conditions I should apply for ##\vec A##. How would I specify that the medium is magnetized?
Last edited:
. Regarding the answer I "do not like" is not that I do not like it (I am willing to go through and use it), but I do not see any advantage whatsoever so stick with the macroscopic versions of Maxwell equations. And since I already have a worked out example of an implementation of finite elements to compute a B field from a given source (in that case electric currents), I thought of using that way, which did not seem too complicated. Using the macroscopic Maxwell equations I think I could bypass the need to deal with the vector potential, provided I find a way to get the current density distribution that generates a B field equivalent to that of the permanent magnet. Is that the reason why it is simpler than to use the differential Maxwell equations? Or is there again something I am missing?