Skip to main content

Winding Lab: Your powerful winding design assistant

Project description

WDG Lab — Winding Design Laboratory

WDG Lab is a concise, developer-friendly toolkit for designing, analyzing, and visualizing electrical windings. It focuses on practical outputs for design validation, documentation, and quick iteration.

Table of contents

Key features

  • Stranded and hairpin winding generators
  • Magnetic calculations: MMF, harmonics, and winding factors
  • Slot current distribution and pin/connection details
  • 2D visualization utilities for winding layouts and reports
  • Example scripts and a lightweight web UI (see Quick links)

Quick links

Installation

Recommended: install from source (development mode).

  1. Clone the repository
git clone https://github.com/DawnEver/wdg-lab.git
cd wdg-lab
  1. Create and activate a virtual environment, uv is recommanded:
uv venv
# or use venv
pip -m venv .venv
  1. Install the package
uv pip install -e . # for normal user
uv pip install -e ".[web]" # for web user
uv pip install -e ".[dev,web]" # for developer

Quick start

  • Generate a winding from parameters (examples include basic parameter sets):
python examples/gen_winding_from_params.py
  • Generate a winding from winding configuration files:
python examples/gen_winding_from_toml.py

Project layout

  • wdg_lab/ — core library modules and APIs
  • examples/ — runnable examples and small utilities
  • tests/ — unit tests and validation cases

Contributing

Contributions, bug reports, and feature requests are welcome. To contribute:

  1. Open an issue to discuss large changes.
  2. Fork the repo and create a feature branch.
  3. Add tests where applicable and follow the existing code style.
  4. Open a pull request describing your change.

License

This project is licensed under the Apache License, Version 2.0. See the full license in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0

Contact

For questions or collaboration, open an issue or contact the maintainers through the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wdg_lab-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wdg_lab-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file wdg_lab-0.1.1.tar.gz.

File metadata

  • Download URL: wdg_lab-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wdg_lab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68cdc9ed7c3253cf54b87ff056cedc55b4243b7172d5a6a7ee8ae6f2cbc0aa88
MD5 a9130eac531cc1c228e0a7dd366d0074
BLAKE2b-256 18c4d6ff441f3ef7daf4d47a8d6eb9594bc71cda74b73994a47f1b0206cd3c1f

See more details on using hashes here.

File details

Details for the file wdg_lab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wdg_lab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wdg_lab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf5fa51c2751b502772fe8d089a0688edfa2fdec9272e15cfafc6681c7d621b
MD5 910712772d2855fb530f3ab4ca60dc87
BLAKE2b-256 eb63f50d7e9f93fa22f341d6900b9468304e52f1566747fb9b27bf92e89ae8b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page