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

Triangular Rotor Notches for IPM

Bezier curve rotor pockets

Bezier curve rotor pockets

Custom DXF Geometry

Custom DXF Geometry

Oblong stator ducts with thermal adjustment

Oblong stator ducts with thermal adjustment

Round Parallel Slot Bottom

Round Parallel Slot Bottom

Trapezoidal ducts

Trapezoidal ducts

Curved Rotor Flux Barriers for SYNCREL U-Shape

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

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 E-magnetic example script

Motor-CAD Lab model example script

Motor-CAD Lab model example script

Motor-CAD thermal example script

Motor-CAD thermal example script

Internal scripting examples#

These examples show you how to use the internal scripting functionality of PyMotorCAD.

E-magnetic

E-magnetic

Mechanical force

Mechanical force

Mechanical stress

Mechanical stress

Thermal steady-state

Thermal steady-state

Thermal transient

Thermal transient

Linking examples#

These examples show how you can link PyMotorCAD to other Ansys products.

Motor-CAD EMag Twin Builder ECE

Motor-CAD EMag Twin Builder ECE

Motor-CAD Thermal Twin Builder ROM

Motor-CAD Thermal Twin Builder ROM

Gallery generated by Sphinx-Gallery