Generate Halbach magnetization for the selected volume regions. A new material Halbach_magnet with the desired orientation and remanence induction will be defined and assigned to these volume regions.

Note: For more details about this macro, consult this additional document


  • Remanent flux density (in Tesla)
  • Magnet relative permeability
  • Angle for maximum remanence induction (in degree)
  • Number of pole pairs
  • Face regions of the magnets with Halbach magnetization


  • Create a new material with the desired magnetization profile and assign it to the magnet’s volume regions