<i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model
<i>DynPy</i> is an open-source library implemented in <i>Python</i> (version 3.10.12) programming language which aims to provide a versatile set of functionalities for mechanical and electrical engineers. It enables the user to model, solve, simulate, and report analysis of d...
Saved in:
Main Authors: | , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2025-01-01
|
Series: | Energies |
Subjects: | |
Online Access: | https://www.mdpi.com/1996-1073/18/2/332 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
_version_ | 1832588543672713216 |
---|---|
author | Damian Sierociński Bogumił Chiliński Franciszek Gawiński Amadeusz Radomski Piotr Przybyłowicz |
author_facet | Damian Sierociński Bogumił Chiliński Franciszek Gawiński Amadeusz Radomski Piotr Przybyłowicz |
author_sort | Damian Sierociński |
collection | DOAJ |
description | <i>DynPy</i> is an open-source library implemented in <i>Python</i> (version 3.10.12) programming language which aims to provide a versatile set of functionalities for mechanical and electrical engineers. It enables the user to model, solve, simulate, and report analysis of dynamic systems with the use of a single environment. The <i>DynPy</i> library comes with a predefined collection of ready-to-use mechanical and electrical systems. A proprietary approach to creating new systems by combining independent elements defined as classes, such as masses, springs, dampers, resistors, capacitors, inductors, and more, allows for the quick creation of new, or the modification of existing systems. In the paper examples for obtaining analytical and numerical solutions of the systems described with ordinary differential equations were presented. The assessment of solver accuracy was conducted utilising a coupled electro-mechanical model of a direct current motor, with <i>MATLAB/Simulink</i> (R2022b) used as a reference tool. The model was solved in <i>DynPy</i> with the hybrid analytical–numerical method and fully analytically, while in <i>MATLAB/Simulink</i> strictly numerical simulations were run. The comparison of the results obtained from both tools not only proved the credibility of the developed library but also showed its superiority in specific conditions. |
format | Article |
id | doaj-art-3d3a8fa1e5874fd3983835827aca22c6 |
institution | Kabale University |
issn | 1996-1073 |
language | English |
publishDate | 2025-01-01 |
publisher | MDPI AG |
record_format | Article |
series | Energies |
spelling | doaj-art-3d3a8fa1e5874fd3983835827aca22c62025-01-24T13:31:05ZengMDPI AGEnergies1996-10732025-01-0118233210.3390/en18020332<i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor ModelDamian Sierociński0Bogumił Chiliński1Franciszek Gawiński2Amadeusz Radomski3Piotr Przybyłowicz4Department of Computer Techniques, Institute of Machine Design Fundamentals, Faculty of Automotive and Construction Machinery Engineering, Warsaw University of Technology, 02-524 Warsaw, PolandDepartment of Computer Techniques, Institute of Machine Design Fundamentals, Faculty of Automotive and Construction Machinery Engineering, Warsaw University of Technology, 02-524 Warsaw, PolandFaculty of Automotive and Construction Machinery Engineering, Warsaw University of Technology, 02-524 Warsaw, PolandFaculty of Automotive and Construction Machinery Engineering, Warsaw University of Technology, 02-524 Warsaw, PolandDepartment of Mechanics, Institute of Machine Design Fundamentals, Faculty of Automotive and Construction Machinery Engineering, Warsaw University of Technology, 02-524 Warsaw, Poland<i>DynPy</i> is an open-source library implemented in <i>Python</i> (version 3.10.12) programming language which aims to provide a versatile set of functionalities for mechanical and electrical engineers. It enables the user to model, solve, simulate, and report analysis of dynamic systems with the use of a single environment. The <i>DynPy</i> library comes with a predefined collection of ready-to-use mechanical and electrical systems. A proprietary approach to creating new systems by combining independent elements defined as classes, such as masses, springs, dampers, resistors, capacitors, inductors, and more, allows for the quick creation of new, or the modification of existing systems. In the paper examples for obtaining analytical and numerical solutions of the systems described with ordinary differential equations were presented. The assessment of solver accuracy was conducted utilising a coupled electro-mechanical model of a direct current motor, with <i>MATLAB/Simulink</i> (R2022b) used as a reference tool. The model was solved in <i>DynPy</i> with the hybrid analytical–numerical method and fully analytically, while in <i>MATLAB/Simulink</i> strictly numerical simulations were run. The comparison of the results obtained from both tools not only proved the credibility of the developed library but also showed its superiority in specific conditions.https://www.mdpi.com/1996-1073/18/2/332coupled electro-mechanical modelsoftware tools for mechanical engineeringsoftware tools for circuit simulationsolving methodsnumerical techniquesanalytical solution |
spellingShingle | Damian Sierociński Bogumił Chiliński Franciszek Gawiński Amadeusz Radomski Piotr Przybyłowicz <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model Energies coupled electro-mechanical model software tools for mechanical engineering software tools for circuit simulation solving methods numerical techniques analytical solution |
title | <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model |
title_full | <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model |
title_fullStr | <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model |
title_full_unstemmed | <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model |
title_short | <i>DynPy</i>—Python Library for Mechanical and Electrical Engineering: An Assessment with Coupled Electro-Mechanical Direct Current Motor Model |
title_sort | i dynpy i python library for mechanical and electrical engineering an assessment with coupled electro mechanical direct current motor model |
topic | coupled electro-mechanical model software tools for mechanical engineering software tools for circuit simulation solving methods numerical techniques analytical solution |
url | https://www.mdpi.com/1996-1073/18/2/332 |
work_keys_str_mv | AT damiansierocinski idynpyipythonlibraryformechanicalandelectricalengineeringanassessmentwithcoupledelectromechanicaldirectcurrentmotormodel AT bogumiłchilinski idynpyipythonlibraryformechanicalandelectricalengineeringanassessmentwithcoupledelectromechanicaldirectcurrentmotormodel AT franciszekgawinski idynpyipythonlibraryformechanicalandelectricalengineeringanassessmentwithcoupledelectromechanicaldirectcurrentmotormodel AT amadeuszradomski idynpyipythonlibraryformechanicalandelectricalengineeringanassessmentwithcoupledelectromechanicaldirectcurrentmotormodel AT piotrprzybyłowicz idynpyipythonlibraryformechanicalandelectricalengineeringanassessmentwithcoupledelectromechanicaldirectcurrentmotormodel |