Skip to main content

Pyleecan

PyPI version License Code style: black

Presentation

PYLEECAN project provides a user-friendly, unified, flexible simulation framework for the multiphysic design and optimization of electrical machines and drives.

The main objective of PYLEECAN is to boost reproducible research and open-science in electrical engineering. Thus, it is intended for researchers, R&D engineers and teachers in electrical engineering, both on standard and novel topologies of electrical machines.

For example, PhD students should start with PYLEECAN:

  • You can save a lot of time by using existing algorithms dedicated to electrical engineering (e.g. coupling Scilab or Matlab with Femm),
  • You can benefit from the community expertise for your research.
  • You can contribute to the project to make sure your code is maintained and to enable other researchers to easily reproduce your results.

To achieve all of that, Pyleecan is open source with a very permissive license (Apache V2 license).

Getting Started

The procedure to install and use Pyleecan is detailed on pyleecan website Warning: Pyleecan is not yet compatible with Python 3.11 due to PySide2. We plan to update pyleecan to 3.11 when we will have the time to do so.

Origin and Current Status of the Project

EOMYS ENGINEERING initiated this open-source project in 2018 for the study of electric motors. The project is now backed by Green Forge Coop non profit organization, who also supports the development of Mosqito for sound quality and SciDataTool for efficient scientific data exploitation.

Main Models and Couplings:

  • PYLEECAN is fully coupled to FEMM to carry non-linear magnetostatic analysis including sliding band and symmetries. For now this coupling is available only on Windows OS.
  • PYLEECAN includes several losses model (based on FEMM coupling output).
  • PYLEECAN includes an electrical model to solve the equivalent circuit of PMSM and SCIM machines.
  • PYLEECAN is coupled to GMSH 2D/3D finite element mesh generator to run third-party multiphysic solvers.
  • PYLEECAN is coupled to two different multiobjective optimization libraries to carry design optimization of electrical machines.
  • PYLEECAN enables to define Parameter Sweep of variable speed simulations.

Main Topologies Features:

  • PYLEECAN includes a Graphical User Interface to define main 2D radial flux topologies parametrized geometries (SPMSM, IPMSM, SCIM, DFIM, WRSM, SRM, SynRM) including material library and automatic single speed current driven Magnetic FEMM simulations.
  • Possibility to import Slot or Hole from DXF files
  • Star of Slot Winding (with swat-em) and User Defined Winding
  • Generic Geometry modeler to draw complex machines in the software coupled with PYLEECAN
  • Notches (Yoke and Bore) / Uneven Bore or Yoke shape (compatible with slot/notches) / Machine with more than 2 laminations Examples can be found in the gallery.

If you are interested by a topology or a specific model, you can open an issue or a discussion on this Github repository to talk about it. We will gladly explain how to develop it yourself or we will add it to the development list. We are always looking for experimental data and model validation based on the last scientific research work. Even if you don't have time to work on pyleecan, sharing your expertise will be valued by the community.

RoadMap

The mid/long term roadmap of the project is detailed here

Documentation / Website

All the information on the project are available at www.pyleecan.org. In particular, the media page gathers the publications, video and screenshots of the project.

Contact

You can contact us:

  • By opening an issue on Github (to request a feature, ask a question or report a bug) or starting a discussion
  • By sending an email at pyleecan(at)framalistes.org that redirect to all the maintainers.

You can follow us:

Metadata

Release files for pyleecan 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyleecan 1.5.2
File Size Uploaded Provenance
pyleecan-1.5.2.tar.gz 15.3 MB Without provenance Details

Release files / pyleecan-1.5.2.tar.gz

Download URL pyleecan-1.5.2.tar.gz
Size 15.3 MB
Tags Source
SHA-256 checksum
How to use checksums
b1d77f4deea212b92e0fcfed1bd8c92cec3783ba158f35969408176c773462ef
BLAKE2b-256 checksum
How to use checksums
8ccf362433494ccff7f1a3d3a50caab113591bef1fb17735d809b4247d3f856d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for pyleecan 1.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page