Ansys Magnetostatic Tutorial
Set up the magnetostatic analysis by selecting "Analysis" > "Magnetostatic" from the menu. Choose the solver type and convergence criteria.
The magnetostatic solver in Ansys Maxwell is fast, accurate, and indispensable for DC magnetic device design. Now it’s your turn: Modify the tutorial example – change the magnet grade, add a second magnet, or introduce a coil – and observe how the fields change. ansys magnetostatic tutorial
/TITLE, 2D Magnetostatic - Permanent Magnet & Iron /PREP7 ET,1,PLANE53 ! Magnetic vector potential element MP,MURX,1,1 ! Air MP,MURX,2,1.05 ! Permanent magnet (relative permeability) MP,MGXX,2,0 ! Remanence direction X MP,MGYY,2,890000 ! Remanence A/m (e.g., for NdFeB) MP,MURX,3,2000 ! Iron (linear) RECTNG,0,10,0,10 ! Magnet RECTNG,0,40,-5,0 ! Iron plate RECTNG,-20,50,-20,30 ! Air region AOVLAP,ALL ASEL,S,AREA,,1 ! Assign air material AATT,1,,1 ASEL,S,AREA,,2 ! Magnet AATT,2,,1 ASEL,S,AREA,,3 ! Iron AATT,3,,1 ALLSEL MSHKEY,0 AMESH,ALL /SOLU MAGSOLV,2 ! 2D magnetostatic solver /POST1 PLF2D ! Plot flux lines PLNSOL,B,SUM ! Plot B magnitude Set up the magnetostatic analysis by selecting "Analysis"
This has walked you through a complete workflow: geometry, materials, excitation, mesh, solve, and post-process. The same steps apply to complex devices: Now it’s your turn: Modify the tutorial example


