Motor Drive Simulator in Python
Project description
motulator: Motor Drive Simulator in Python
Introduction
This open-source software includes simulation models for an induction motor, a synchronous reluctance motor, and a permanent-magnet synchronous motor. The motor models are simulated in the continuous-time domain while the control algorithms run in discrete time. The default solver is the explicit Runge-Kutta method of order 5(4) from scipy.integrate.solve_ivp. Simple control algorithms are provided as examples. The documentation is available here:
https://aalto-electric-drives.github.io/motulator/
Installation
This software can be installed using pip:
pip install motulator
Alternatively, the repository can be cloned.
Usage
The following example shows how to create a continuous-time system model, a discrete-time controller, and a simulation object:
import motulator as mt
# Continuous-time model for the drive system
motor = mt.InductionMotor() # Motor model
mech = mt.Mechanics() # Mechanics model
conv = mt.Inverter() # Converter model
mdl = mt.InductionMotorDrive(motor, mech, conv)
# Discrete-time controller
pars = mt.InductionMotorVectorCtrlPars() # Dataclass of control parameters
ctrl = mt.InductionMotorVectorCtrl(pars) # Sensorless controller
# Create a simulation object, simulate, and plot example figures
sim = mt.Simulation(mdl, ctrl)
sim.simulate()
mt.plot(sim)
This example applies the default settings. The drive system, controller, reference sequences etc. are easy to configure. The example scripts and Jupyter notebooks can be downloaded here:
https://aalto-electric-drives.github.io/motulator/auto_examples/index.html
New system models and controllers can be developed using the existing ones as templates.
Contributing
If you'd like to help us develop motulator, please have a look at these guidelines first.
Contributors
Thanks go to these wonderful people:
Lauri Tiitinen 💻 🤔 💡 🧑🏫 |
HannuHar 💻 🐛 |
Marko Hinkkanen 💻 🤔 💡 |
silundbe 💻 💡 |
JoonaKukkonen 💻 🚇 |
jarno-k 🤔 |
angelicaiaderosa 💻 💡 |
Luca Peretti 🤔 📣 |
GianmarioPellegrinoPolito 🔣 |
Simone Ferrari 🔣 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Acknowledgement
This project has been sponsored by ABB Oy and by the Academy of Finland Centre of Excellence in High-Speed Electromechanical Energy Conversion Systems. The example control methods included in this repository are based on published algorithms (available in textbooks and scientific articles). They do not present any proprietary control software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file motulator-0.1.2.tar.gz
.
File metadata
- Download URL: motulator-0.1.2.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bcf5bef0ee6af9e07d1cdaeb4e5cb86c060246517ce8730e8374b89d8a65657 |
|
MD5 | b1b277a21a5e7a70cdf699863372ea1a |
|
BLAKE2b-256 | b89f9eb2dbd8166ff4f66626eed8669738a7dd138122c1c03a5e79abab092d93 |
File details
Details for the file motulator-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: motulator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 56.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b814d927dd2eb864d4376e61d5dfcbd4939529e8d0a8b8be18b1c1cf91acf9 |
|
MD5 | 9a6e09b34ab4330db1f0dc9af7bd5ae2 |
|
BLAKE2b-256 | 33f979725a020e76fb5fa8bcb94447f368e5e23f4d949a60dfa9636fbf2daf03 |