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/your-org/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.0.tar.gz (6.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: wdg_lab-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 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.0.tar.gz
Algorithm Hash digest
SHA256 1ce44ee80e62bd70f4d23cbb55894b9fe352e5a0fce763151bc194b36bcbde7a
MD5 929b4361b5c02112be1c2959e175d305
BLAKE2b-256 fe89af00611f2f5d256d0ecba79faf0ef1502a2c5fde18fe355834990864b338

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