Skip to main content
This is a quick-reference guide for PyMotorCAD. You can jump to a section of your choosing by using these links: Launching Motor-CAD using PyMotorCAD | Geometric properties | Material assignment | Model motor | E-magnetic performance curves in LAB | Operating point calculation | Electromagnetic calculations in Emag | Results | PyMotorCAD scripting in MATLAB | Backwards compatibility

LaunchMotor-CADusing PyMotorCAD

Launch a Motor-CAD instance locally and then exit:

Geometry properties

Specify the motor geometry:
Set winding patterns:

Material assignment

Set stater and rotor lamination materials:

Model motor

Set building commands:

E-magnetic performance curves in LAB

Set lab operating mode:
Calculate the E-Magnetic performance:

Operating point calculation

Set the operating point variables:
Calculate the operating point:

Electromagnetic calculations in Emag

Perform electromagnetic calculations:

Results

PyMotorCAD scripting in MATLAB

The Python version that MATLAB is using has the ansys.motorcad.core package installed. PyMotorCAD is available to use in MATLAB. Import the ansys.motorcad.core Python package for use in MATLAB:

Backwards compatibility

Use ActiveX scripts to connect to MotorCAD:
Use PyMotorCAD to connect to MotorCAD:

References from PyMotorCAD documentation