Skip to main content

In this blog I show how a Magnetic Coupler can be modeled and analyzed in Ansys Maxwell using the Magnetostatic solver to see how the torque and magnetic flux density distribution varies with mechanical angle. We can vary and sweep any “non-time-varying” input parameter to analyze how torque or force is varied vs mechanical angle in the Magnetostatic solver. This model could easily be converted to an axial flux motor by replacing the stator permanent magnets with electromagnets.

Analyzing power performance would require “Time” and this is achieved with the Magnetic Transient solver.



RMxprt was used to automatically create a model of a 3D axial flux motor and this model was modified using a few simple modifications to create this Magnetic Coupler model. The rotor was selected and a "Rotate" operation was assigned and an angle variable "$Theta" was used in the definition. 




Select the rotor, right click, go to "Assign Parameters", select "Torque", and choose virtual torque since we are computing torque on permanent magnets. Lorentz torque is used for electromagnets.





Right click on "Optimetrics", add a "Parametric", and add a "Sweep". The definition for "$Theta" is shown below. The solver will solve at every angle in the sweep and allow how the Torque parameter changes with this angle.



In this model the B Field of the magnets either point along the positive z direction or in the negative z direction. Two materials for the permanent magnets are used and in one material the z component is positive and in the other material the z component is negative. The different magnets are positioned in the rotor and stator around their core in an alternating manner.  


B Field pointing along the positive z direction.

B Field pointing along the negative z direction.



The mesh in a Magnetic Transient model requires Cylindrical Gap Treatment and Band assignments to model motion and power performance. However, the Magnetostatic solver does not require these assignments since motion is not being modeled. We are just analyzing how torque varies with mechanical angle using an angle parameter.



Below is an animation of the B Field distribution and a plot of the rotor torque vs mechanical angle defined with the angle variable and sweep definition. When like magnets are aligned in the rotor and stator, north and south of the magnets are facing each other and experience an attractive force. The opposite is true when opposing magnets are aligned. Torque is in one direction one region (when pulling attracted magnets away from each and pushing towards repulsing magnets toward each other), and torque is an another direction in another region (pulling repulsing magnets away from each other and pushing attracting magnets toward each other. These regions vary periodically between stator magnets around the stator.








Contact us to learn about our simulation capability and request a demonstration for us to show you how we can help you with your engineering projects. We provide training to use Ansys tools and offer consulting services.

(800) 832-3767


David A. Giglio, PhD, PE

EBU Applications Engineer - Electrical  

Ozen Engineering, Inc. - Ansys Elite Channel Partner    

1210 E Arques Ave., #207, Sunnyvale, CA 94085  


Post by David A. Giglio, PhD, PE
December 5, 2023