You can use this project to import an Ansys™ Motor-CAD™ motor model into Simulink®.
You can use the automatically-generated Simulink model to:
- Predict the transient temperature of the motor elements under dynamic operating points and diverse cooling scenarios.
- Run simulations faster than real time.
- Integrate the motor in a system-level model using Simscape™.
- Analize the performance of your system design in a holistic way.
This project is compatible with MATLAB R2021b or newer, and with multiple versions of Motor-CAD.
Use the links below to download the latest version, depending on your Motor-CAD version:
- For Motor-CAD 2024R2 or newer (with PyMotorCAD interface): Use Download button above
- For Motor-CAD 15.1.6 or newer (with Visual Basic ActiveX interface): MotorCAD_v15.1.6.zip
You can use the Object-Oriented MATLAB® - Motor-CAD interface (included in this repository) to import a Motor-CAD model into MATLAB and easily modify motor properties and run Motor-CAD calculations.
For more information, run >> doc mcadinterface.ThermalInterface
Run the GenerateSimulinkThermalModel.mlx live script to automatically generate the SROTM for an induction motor (IM) and a permanent magnet synchronous motor (PMSM).
The IM has one active cooling system (housing water jacket). It is based on the e5_eMobility_IM Motor-CAD template.
The PMSM has two active cooling systems (housing water jacket and through-ventilation). It is based on the e8_eMobility_IPM Motor-CAD template.
Run the ValidateSimulinkThermalModel.mlx live script to compare the SROTM simulation results with the Motor-CAD simulation results at different operating points.
Run the UseSimulinkThermalModel.mlx live script to simulate a Simscape system-level vehicle model that integrates the Simulink reduced-order thermal model of the motor.
Open the project file ImportMotorCADThermalModel.prj to get started.
- Run GenerateSimulinkThermalModel.mlx (requires Motor-CAD)
- Run ValidateSimulinkThermalModel.mlx (requires Motor-CAD)
- Run UseSimulinkThermalModel.mlx
MathWorks Products (http://www.mathworks.com)
Requires MATLAB® release R2021b or newer.
- Simulink™ - required.
- Simscape™ - optional.
- Simscape™ Electrical™ - optional.
- Simscape™ Fluids™ - optional.
- Control System Toolbox™ - required (LPV System block).
- Motor Control Blockset™ - optional (Drive Cycle Source block).
To learn more about modeling and simulation with Simscape™, please visit:
The license is available in the License file within this repository.
Copyright 2022-2024 The MathWorks, Inc.