Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Electrical Machines Design Automation by Ansys Maxwell Script

YouTube Vedio https://youtu.be/uStT2k3V6x0

Goal

Setup a python api server, accept motor spec(stator Outer Diameter, DC bus voltage, max toruqe, max speed), auto design, draw and run ansys analysis, finally response result data(BEMF, cogging torque, max torque, torque ripple, induce voltage, efficiency) (Now just 10p12s Surface PM design, It still working on...)

Requirements

  1. Windows 7 or above
  2. Legal Ansys Maxwell Electromagnetic Suite
  3. Python 3
  • python 3.7.6
  1. Python library
  • pywin32==227
  • ramda==0.5.5
  • six==1.13.0
  • functional-pipeline==0.3.1
  • ipdb==0.12.3
  • Flask==1.1.2
  • Flask-Cors==3.0.8
  • pandas==1.0.1
  • numpy==1.18.1
  • requests==2.24.0

Environment Install Guide (Verified)

  1. Install Python 3.7.6
  2. (optional) Install virutal env
  • pip install virtualenv
  1. optional) create virutal env
  • virutalenv venv
  1. (optional) activate virutal env
  • ./venv/Scripts/activate
  1. Installed needed library using the following command
  • pip install -r requirements.txt

SPM Motor params

all setting are in params/

Execute Guide

  1. active virtual env
  • ./venv/Scripts/activate
  1. execute
  • just run analysis(params set at spec_params in run.py) - python run.py
  • run flask api server and call ansys run and return result as response (POST method, json data sample in example/, url = http://localhost:5000/run_simu) - python server.py
  • run flask api server, call but run ansys asyc in backgroud and return result use request to another url (POST method, json data sample in example/, url = http://localhost:5000/run_simu) - python server_run_back.py

Metadata

Release files for an-em-design 0.1a0

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

Source distribution (sdist)

Source distribution for an-em-design 0.1a0
File Size Uploaded Provenance Actions
an_em_design-0.1a0.tar.gz 5.2 kB Without provenance Details for an_em_design-0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for an-em-design 0.1a0
File Interpreter ABI Platform Actions
an_em_design-0.1a0-py3-none-any.whl Python 3 none any Details for an_em_design-0.1a0-py3-none-any.whl

Total release size: 11.7 kB

Release files / an_em_design-0.1a0.tar.gz

Download URL an_em_design-0.1a0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
da3298fa0ad79d27febcb863533542c6156fda1f25f077c93a0519c657ed5042
BLAKE2b-256 checksum
How to use checksums
0c69eda37646ec48369fd033a924f8ce7837c8512cd9439b1388e85abbe9dd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

Release files / an_em_design-0.1a0-py3-none-any.whl

Download URL an_em_design-0.1a0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c10d75cedb9ac33dada96bcdc4fce9c6766301da60b2a01618e6ea56d35ec43
BLAKE2b-256 checksum
How to use checksums
122178dd6d03167e1a17214a2275b7d8a94534ef6ccc2691f510489060b06389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

Security for an-em-design 0.1a0

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.

Release history Release notifications | RSS feed

This release
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