Skip to main content

Electrical Machines Design Automation by Ansys Maxwell Script

Project description

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

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

anmotordesign-0.1a0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

anmotordesign-0.1a0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file anmotordesign-0.1a0.tar.gz.

File metadata

  • Download URL: anmotordesign-0.1a0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for anmotordesign-0.1a0.tar.gz
Algorithm Hash digest
SHA256 20cfe2dd518467f49f80e501906b1eb53289527379014f95344e4a38ad491137
MD5 ba7eededfb9591730abdf8a7bb62b28f
BLAKE2b-256 b1865d165bb71745a5f44d0ff2c2a6a74ae893b0cbf73a1050a8c6db9b5515b3

See more details on using hashes here.

File details

Details for the file anmotordesign-0.1a0-py3-none-any.whl.

File metadata

  • Download URL: anmotordesign-0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for anmotordesign-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6c1035ee1d03f819a36c7d149e0737d67a7d1ce0a0420c864e7ec3e32677a1
MD5 644213090137cd54070c62f57a964e9b
BLAKE2b-256 e997a2e55c19bcf60825c722d17277bb9ba7058eddbd98bcb7b6db45bf1be88c

See more details on using hashes here.

Supported by

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