Examples#
End-to-end examples show how you can use PyMotorCAD. If PyMotorCAD is installed on your machine, you can download these examples as Python files or Jupyter notebooks and run them locally.
Note
Some examples require additional Python packages.
Adaptive templates examples#
Library of adaptive templates examples for setting up custom geometries in Motor-CAD. These scripts can be loaded into the Motor-CAD Adaptive Templates tab.
Note
Adaptive Templates in Motor-CAD require v2024.1.2 (Motor-CAD 2024 R1 Update) or later.
Note
For more information on the use of Adaptive Templates in Motor-CAD, and how to create, modify and debug Adaptive Templates Scripts, see Motor-CAD adaptive templates scripting in the User guide.
Triangular Rotor Notches for IPM
Oblong stator ducts with thermal adjustment
Curved Rotor Flux Barriers for SYNCREL U-Shape
Advanced examples#
These examples show you how to use the basic functionality of PyMotorCAD.
Motor-CAD force extraction example script
Basic examples#
These examples show you how to use the basic functionality of PyMotorCAD.
Motor-CAD E-magnetic example script
Motor-CAD Lab model example script
Motor-CAD thermal example script
Internal scripting examples#
These examples show you how to use the internal scripting functionality of PyMotorCAD.
Linking examples#
These examples show how you can link PyMotorCAD to other Ansys products.
Motor-CAD EMag Twin Builder ECE