PyEMMO is a interface for modeling electrical machines in the open-source FEA software Onelab
Project description
PyEMMO
Python Electrical Machine Modelling in ONELAB
PyEMMO is a interface for modeling electrical machines in the open-source FEA software ONELAB. The goal of the project is to automate model creation and the simulation workflow for electrical machines with ONELAB.
Installation
Use the package manager pip to install PyEMMO.
pip install https://github.com/ttz-emo/pyemmo.git
You will need versions of Gmsh and GetDP executables. While Gmsh can be directly installed from pip with the Gmsh Python-API, you will need to download GetDP individually.
[!WARNING] Models created with PyEMMO fail with current GetDP version 3.6.0 due to mesh import error! You can check your GetDP version with
getdp --version
Usage
The easiest way to start is by using the Pyleecan project to create a electrical machine instance and feeding it into the PyEMMO-Pyleecan interface.
- Have a look at the Pyleecan tutorials on how to use Pyleecan. Especially the tutorial on "How to define a machine".
- See the Pyleecan API tutorial for detailed instructions on how to create a ONELAB model from a Pyleecan machine object.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Setup
After cloning the repository you should install pre-commit package using pip install pre-commit.
After that please update the INSTALL_PYTHON path in the pre-commit hook under "./workingDirectory/pre-commit".
Then run the following command to install the Git hooks:
./workingDirectory/install-hooks.sh
Or if you are on Windows:
install-hooks.bat
These hooks make sure you have formatted your files correctly.
License
Publications
Run Sphinx to create Documentation
To create or update the documentation you will need to do:
- Install the doc requirments with:
pip install -r requirements-doc.txt. - Make sure pyemmo is found by either creating a pyemmo.pth file in the site-packages folder or use
pip install -e .. - To fully build the documentation including the pyleecan api subpackage you need to install pyleecan. Currently we have to use the Github version since the new release is not out yet:
pip install git+https://gitlab.com/Eomys/pyleecan/tree/update-python-version.git - Run Sphinx to build the docs e.g. in html
doc\make.bat html.
You can run doc\make.bat plane to see the build options.
Futher information on building the documentation can be found in the Sphinx documentation.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyemmo-1.5.0.dev2-py3-none-any.whl.
File metadata
- Download URL: pyemmo-1.5.0.dev2-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
249e379d9f39f12f1bd74bef70093c4c75f413d9d8d9601ad4c8c7cb4f29cc82
|
|
| MD5 |
57845a82edc02dd221c400dd9f956dee
|
|
| BLAKE2b-256 |
00a50d899d407ed5a439b367bf0d7f3d04672a2b4abb5fa6d18ba44dd33636e6
|