Ansys Automation of a Maxwell Motor Model using Motor-CAD Script: Part 1
Hello everyone, this is David Giglio with Ozen Engineering, Inc. In this video, I will demonstrate how to use Ansys MotorCAD to export a design script file for Ansys Maxwell. This process allows you to automatically create a model in Maxwell with all the design settings and model setup already complete. You won't have to do anything else except run the simulation and analyze the results.
Exporting Design Script from MotorCAD
- Open your MotorCAD design.
- Go to Tools and select Ansys Electronic Desktop.
- The default export format is Ansys Electronic Desktop, using the file extension
.VBS(Visual Basic Script). - Choose and update the settings as needed.
- Ensure the file extension property is enabled.
- Click Save and Export.
Running the Script in Maxwell
- Open Ansys Maxwell (you don't need to have the project open yet).
- Click the Automation tab and run the script you exported from MotorCAD.
- Select the script file and click Open.
- The geometry, including core and hairpin windings, will be created automatically.
- Excitation for the windings and all geometry parameters will be parameterized.
- Some plots, typically required for a motor, are automatically set up.
Model Setup and Symmetry
The model is created using half symmetry, as selected in MotorCAD. The MotorCAD model spans from 0 to 180 degrees, representing half of the model.
Simulation and Results
- Induced voltage plots are generated for one cycle divided into 30 time steps.
- All parameters and variables are expressed in terms of expressions.
- Copper windings, core objects, and material assignments are parameterized and predefined.
- The simulation completes in less than five minutes.
Motion and Mechanical Setup
- Mesh operations for the cylindrical gap are automatically set up.
- The motion type is set to rotation with initial position and machine RPM defined.
- Example parameters:
- Initial Position: -15 degrees
- Machine RPM: 3000 RPM
Conclusion
Once the simulation is complete, you can view the results such as currents, flux linkage plots, and torque plots. If you enjoyed this video, please give it a like and subscribe to the Ozen Engineering YouTube channel for more content. Visit our website at ozeninc.com to learn about our simulation capabilities and request a demonstration. We provide training on using Ansys tools and offer consulting services.
Thank you very much for watching. Take care and have a nice day!
Hello everyone, this is David Giglio with Ozen Engineering. In this video, I will show you how to use ANSYS MotorCAD to export a design script file to run in ANSYS Maxwell, automatically creating the model with all design settings and model setup complete.
You won't have to do anything else except run the simulation and then analyze the results. For example, with a motor CAD design open, go to Tools, select ANSYS Electronics Desktop. The default export format is ANSYS Electronics Desktop, using the file extension .vbs (Visual Basic Script).
You can choose and update settings here, and see that the file is now in the correct file extension. Ensure the file extension property is enabled. Next, you should have MotorCAD create an XML document and subscribe. Click on this, then go to the application you're going to survive in (Maxwell).
Choose File, then Open, and select the .vbs file you exported from MotorCAD into Maxwell. Within a minute, the geometry is created, including the core, hairpin windings, and motor. All geometry parameters are parameterized, allowing for modification after the model is created.
Once the model is created, typically plotted parameters are automatically set up. The model is created using half symmetry, as seen in the MotorCAD model's calculation tab, input data, calculation, where use symmetry was selected.
The script is running Maxwell within a minute, and in less than five minutes, the simulation will be completed, and you will see the final results. Thank you for watching this video.
If you like this video, give it a like, subscribe to the Engineering YouTube channel, visit our website at ozeninc.com, and contact us to learn about our simulation capability and request a demonstration. We provide training to use ANSYS tools and offer consulting services.
Thank you very much for watching, take care, and have a nice day.

