<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...

Full description

Saved in:
Bibliographic Details
Main Authors: Damian Sierociński, Bogumił Chiliński, Franciszek Gawiński, Amadeusz Radomski, Piotr Przybyłowicz
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!
Description
Summary:<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.
ISSN:1996-1073