Related Resources: calculators

Electric Motor Drive Simulator Python Script Application

Industrial Electric Motors, Generators and Drives

Electric Motor Drive Simulator Python Script Application

This Python software code 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.

Python code - This application requires knowledge of Python installation and code execution.

NOTE: 

Refunds are not awarded after Python files have been downloaded - review your membership agreement for details.
​Units (if utilized) utilized within calculators are either SI or Imperial (some enable both SI and Imperial) and member (you) are responsible for conversions. Ensure that you verify units utilized in excel application meet your requirements before downloading. 

Premium Membership Required for download

Download: Numerical Analysis of Fluids Application

 These examples are for current vector control of induction machines and synchronous machines. The magnetic saturation model of an induction machine is also demonstrated ( 2.2-kW induction motor, saturated ) as well as computation of control look-up tables for synchronous machines ( 5-kW PM-SyRM ).

current vector control  1

current vector control 2

current vector control 3

current vector control 4

V/Hz Control

These examples shows operation of an induction machine under open-loop V/Hz control. Furthermore, a diode front-end rectifier and transition to six-step modulation are also demonstrated.

induction machine under open-loop V/Hz 1

induction machine under open-loop V/Hz 2

induction machine under open-loop V/Hz 3

These examples demonstrate observer-based V/Hz control for induction machines and synchronous machines. The examples 6.7-kW SyRM, saturated and 5-kW PM-SyRM, flux maps from SyR-e also present the use of saturation models. The example 2.2-kW PMSM, 2-mass mechanics demonstrates the use of a two-mass mechanics model.

observer-based V/Hz control for induction machines 1

observer-based V/Hz control for induction machines 2

observer-based V/Hz control for induction machines 3

observer-based V/Hz control for induction machines 4

observer-based V/Hz control for induction machines 6

Flux-Vector Control

These examples demonstrate flux-vector control of synchronous machine drives . In the implemented controller, rotor coordinates as well as decoupling between the stator flux and torque channels are used according to. Furthermore, the stator flux magnitude and the electromagnetic torque are selected as controllable variables.

Signal Injection

These examples demonstrate a square-wave signal injection for low-speed operation based on. A phase-locked loop is used to track the rotor position. For a wider speed range, signal injection could be combined to a model-based observer. The effects of magnetic saturation are not compensated for in this version.

Python Module Requirements

numpy
scipy
matplotlib
numpydoc
sphinx==6.2.1
sphinx-autoapi
sphinx-copybutton
sphinx-gallery
sphinx-book-theme
esbonio

Source

Python code - This application requires knowledge of Python installation and code execution.

References

  • Tiitinen, Hinkkanen, Harnefors, “Stable and passive observer-based V/Hz control for induction motors,” Proc. IEEE ECCE, Detroit, MI, Oct. 2022
  • Tiitinen, Hinkkanen, Kukkola, Routimo, Pellegrino, Harnefors, “Stable and passive observer-based V/Hz control for synchronous Motors,” Proc. IEEE ECCE, Detroit, MI, Oct. 2022
  • Pellegrino, Armando, Guglielmi, “Direct flux field-oriented control of IPM drives with variable DC link in the field-weakening region,” IEEE Trans.Ind. Appl., 2009
  • Awan, Hinkkanen, Bojoi, Pellegrino, “Stator-flux-oriented control of synchronous motors: A systematic design procedure,” IEEE Trans. Ind. Appl., 2019
  • Kim, Ha, Sul, “PWM switching frequency signal injection sensorless method in IPMSM,” IEEE Trans. Ind. Appl., 2012

Support:

  • Engineers Edge has tested the basic functions and operation of this application using Python 3.11.9 and supporting modules.
  • Supporting Windows application "Visual Studio Code".
  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Related