Git Product home page Git Product logo

ansys-maxwell-em-design-online's Introduction

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

ansys-maxwell-em-design-online's People

Contributors

hh-wu avatar markwengstr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansys-maxwell-em-design-online's Issues

Why call functions using "and"

 total_params_calculate(ctx) and \
        find_or_initial_project(ctx) and \
        save_project(ctx) and \
        params_setting(ctx) and \
        material_setting(ctx) and \
        stator_model(ctx) and \
        rotor_model(ctx) and \
        magnets_model(ctx) and \
        coils_model(ctx) and \
        export_model_picture(ctx) and \
        current_excitation_setting(ctx) and \
        model_setting(ctx) and \
        band_model(ctx) and \
        mesh_setting(ctx) and \
        analysis_setting(ctx) and \
        optimetrics_setting(ctx) and \
        report_setting(ctx) and \
        start_analysis(ctx) and \
        report_export(ctx) and \
        save_project(ctx) and \
        close_project(ctx) and \
        result_process(ctx)

code style is weird

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.