As Project Elara’s free-electron maser design primarily uses permanent magnets, it is essentially to be able to describe them mathematically. We describe the general concepts in modelling permanent magnets in Guide to modelling permanent magnets. Unfortunately, in many cases, it is not possible to find analytical solutions, and we must use numerical methods instead. This page aims to serve as a basic reference for performing numerical simulations of permanent magnets.
Numerical methods
The typical numerical method used for magnetostatics is finite-element analysis,. To begin, we start with the basic differential equation of permanent magnets1:
Assuming a constant permeability , one therefore obtains:
To derive the weak form, we multiply by test function , and integrate both sides (see a more in-depth description of the finite element method in RF cavity simulation with aperture). This gives us:
We can simplify this by using integration by parts or by simply consulting a list of vector calculus integral identities. This gives us:
Combining the volume and surface terms gives us:
Note that must be pre-provided. In our case for permanent magnets (as detailed previously), this is a piecewise function:
Where is the remanence, as before. This can then be solved for suitable boundary conditions (as described above). There are dedicated open-source magnetostatics codes such as Radia as well as general-purpose FEM packages (such as FreeFEM and MFEM) that can be used to solve the resulting BVP numerically.
Footnotes
-
Referenced from the Wolfram guide on magnetostatic modelling for permanent magnets. ↩