• Stars
    star
    196
  • Rank 198,553 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AEDT Python Client Package

PyAEDT


English | δΈ­ζ–‡

PyAnsyspypiPyPIactPythonVersionGH-CIcodecovMITblackAnacondapre-commit

What is PyAEDT?

PyAEDT is a Python library that interacts directly with the API for Ansys Electronics Desktop (AEDT) to make scripting simpler. The architecture for PyAEDT can be reused for all AEDT 3D products (HFSS, Icepak, Maxwell 3D, and Q3D Extractor), 2D tools, and Ansys Mechanical. PyAEDT also provides support for circuit tools like Nexxim and system simulation tools like Twin Builder. Finally, PyAEDT provides scripting capabilities in Ansys layout tools like HFSS 3D Layout and EDB. The PyAEDT class and method structures simplify operation while reusing information as much as possible across the API.

Install on CPython from PyPI

You can install PyAEDT on CPython 3.7 through 3.10 from PyPI with this command:

  pip install pyaedt

Install PyAEDT with all extra packages (matplotlib, numpy, pandas, pyvista):

  pip install pyaedt[full]

You can also install PyAEDT from Conda-Forge with this command:

  conda install -c conda-forge pyaedt

PyAEDT remains compatible with IronPython and can be still used in the AEDT Framework.

About PyAnsys

PyAEDT is part of the larger PyAnsys effort to facilitate the use of Ansys technologies directly from Python.

PyAEDT is intended to consolidate and extend all existing functionalities around scripting for AEDT to allow reuse of existing code, sharing of best practices, and increased collaboration.

About AEDT

AEDT is a platform that enables true electronics system design. AEDT provides access to the Ansys gold-standard electro-magnetics simulation solutions, such as Ansys HFSS, Ansys Maxwell, Ansys Q3D Extractor, Ansys Siwave, and Ansys Icepak using electrical CAD (ECAD) and Mechanical CAD (MCAD) workflows.

In addition, AEDT includes direct links to the complete Ansys portfolio of thermal, fluid, and mechanical solvers for comprehensive multiphysics analysis. Tight integration among these solutions provides unprecedented ease of use for setup and faster resolution of complex simulations for design and optimization.

PyAEDT is licensed under the MIT License

PyAEDT includes functionality for interacting with the following AEDT tools and Ansys products:

  • HFSS and HFSS 3D Layout
  • Icepak
  • Maxwell 2D, Maxwell 3D, and RMXprt
  • 2D Extractor and Q3D Extractor
  • Mechanical
  • Nexxim
  • EDB
  • Twin Builder

Documentation and issues

In addition to installation and usage information, the PyAEDT documentation provides API reference, Examples, and Contribute sections.

In the upper right corner of the documentation's title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.

On the PyAEDT Issues page, you can create issues to submit questions, report bugs, and request new features.

To reach the project support team, email [email protected] <[email protected]>_.

Dependencies

To run PyAEDT, you must have a local licenced copy of AEDT. PyAEDT supports AEDT versions 2022 R1 or newer.

Student version

PyAEDT supports AEDT Student version 2022 R1 and later. For more information, see Student Version page.

Why PyAEDT?

A quick and easy approach for automating a simple operation in the AEDT UI is to record and reuse a script. However, disadvantages of this approach are:

  • Recorded code is dirty and difficult to read and understand.
  • Recorded scripts are difficult to reuse and adapt.
  • Complex coding is required by many global users of AEDT.

The main advantages of PyAEDT are:

  • Automatic initialization of all AEDT objects, such as desktop objects like the editor, boundaries, and so on
  • Error management
  • Log management
  • Variable management
  • Compatibility with IronPython and CPython
  • Simplification of complex API syntax using data objects while maintaining PEP8 compliance.
  • Code reusability across different solvers
  • Clear documentation on functions and API
  • Unit tests of code to increase quality across different AEDT versions

Example workflow

  1. Initialize the Desktop class with the version of AEDT to use.
  2. Initialize the application to use within AEDT.

Connect to AEDT from Python IDE

PyAEDT works both inside AEDT and as a standalone application. This Python library automatically detects whether it is running in an IronPython or CPython environment and initializes AEDT accordingly. PyAEDT also provides advanced error management. Usage examples follow.

Explicit AEDT declaration and error management

    # Launch AEDT 2022 R2 in non-graphical mode

    from pyaedt import Desktop, Circuit
    with Desktop(specified_version="2022.2",
                 non_graphical=False, new_desktop_session=True,
                 close_on_exit=True, student_version=False):
        circuit = Circuit()
        ...
        # Any error here will be caught by Desktop.
        ...

    # Desktop is automatically released here.

Implicit AEDT declaration and error management

    # Launch the latest installed version of AEDT in graphical mode

    from pyaedt import Circuit
    with Circuit(specified_version="2022.2",
                 non_graphical=False) as circuit:
        ...
        # Any error here will be caught by Desktop.
        ...

    # Desktop is automatically released here.

Remote application call

You can make a remote application call on a CPython server or any Windows client machine.

On a CPython Server:

    # Launch PyAEDT remote server on CPython

    from pyaedt.common_rpc import pyaedt_service_manager
    pyaedt_service_manager()

On any Windows client machine:

    from pyaedt.common_rpc import create_session
    cl1 = create_session("server_name")
    cl1.aedt(port=50000, non_graphical=False)
    hfss = Hfss(machine="server_name", port=50000)
    # your code here

Variables

    from pyaedt.HFSS import HFSS
    with HFSS as hfss:
         hfss["dim"] = "1mm"   # design variable
         hfss["$dim"] = "1mm"  # project variable

Modeler

    # Create a box, assign variables, and assign materials.

    from pyaedt.hfss import Hfss
    with Hfss as hfss:
         hfss.modeler.create_box([0, 0, 0], [10, "dim", 10],
                                 "mybox", "aluminum")

License

PyAEDT is licensed under the MIT license.

This module makes no commercial claim over Ansys whatsoever. PyAEDT extends the functionality of AEDT by adding an additional Python interface to AEDT without changing the core behavior or license of the original software. The use of the interactive control of PyAEDT requires a legally licensed local copy of AEDT. For more information about AEDT, visit the AEDT page on the Ansys website.

back to top

Indices and tables

More Repositories

1

pymapdl

Pythonic interface to MAPDL
Python
426
star
2

pyfluent

Pythonic interface to Ansys Fluent
Python
268
star
3

pydpf-core

Data Processing Framework - Python Core
Python
62
star
4

pyansys

Containing metapackage for the PyAnsys project
Python
50
star
5

pymapdl-reader

Legacy binary interface to MAPDL binary files.
Python
47
star
6

pymechanical

Pythonic interface to Ansys Mechanical β„’
Python
37
star
7

pydpf-post

Data Processing Framework - Post Processing Module
Python
33
star
8

pyansys-geometry

A Python wrapper for Ansys Geometry Services
Python
29
star
9

optical-automation

Optical Automation Framework
Python
28
star
10

python-installer-qt-gui

Python QT app for installing Python
Python
27
star
11

pyfluent-visualization

Visualize Ansys Fluent simulations using Python
Python
26
star
12

pyansys-dev-guide

PyAnsys Project Developer's Guide
26
star
13

ansys-sphinx-theme

PyData-based Sphinx theme from the PyAnsys community
Python
21
star
14

example-data

This repository contains example datasets for PyAnsys projects.
Python
20
star
15

pytwin

Ansys Digital Twin repository
Python
19
star
16

pyfluent-parametric

Pythonic interface to Ansys Fluent parametric
Python
18
star
17

pyprimemesh

Pythonic Meshing Client for Ansys Prime Server
Python
15
star
18

pyoptislang

Pythonic interface to optiSLang
Python
14
star
19

ansys-templates

A tool for creating new projects according to Ansys guidelines
Python
11
star
20

pymapdl-corba

Python interface to ANSYS APDL CORBA server.
Python
10
star
21

pymotorcad

Python
9
star
22

actions

A collection of reusable workflows
Python
8
star
23

PyAEDT-docs

Host documentation for PyAEDT
HTML
8
star
24

ansys-tools-visualization-interface

A common visualizer for PyAnsys libraries.
Python
8
star
25

pysimai

A Python wrapper for Ansys SimAI
Python
8
star
26

api-eigen-example

Ansys API example repository for demonstrating the use of REST and gRPC in different SW languages (Python, C++...)
C++
7
star
27

create-python-project

This repository holds a wizard that provides commands to auto-generate a python project based on different template structures. The created project will be as per Ansys recommendations.
Python
7
star
28

pydynamicreporting

Pyansys project for Ansys Dynamic Reporting, a report generator tool.
Python
7
star
29

pydpf-composites

A Python wrapper for Ansys DPF for the post-processing of composite structures.
Python
7
star
30

ansys-tools-protoc-helper

Utility for compiling .proto files to Python source
Python
7
star
31

ansys-tools-repo-sync

Tool to synchronize the content of different repositories.
Python
7
star
32

pyensight

Python API for EnSight
Python
6
star
33

ml-rl-cartpole

Reinforced Machine Learning Example: Cartpole
Jupyter Notebook
6
star
34

pyaedt-dev-docs

Host development documentation for PyAEDT
HTML
6
star
35

pyconverter-xml2py

A Python wrapper to convert XML documentation into Python source code with its Sphinx documentation.
Python
6
star
36

pyaedt-toolkits-common

Common library to all PyAEDT toolkits
Python
6
star
37

pyedb

pyedb is a Python library to use the EDB client library.
Python
6
star
38

review-bot

GitHub PR reviewer bot using OpenAI
Python
5
star
39

pyaedt-qt-ui

Simple Pyaedt Qt5 Hfss3dLayout dashboard for Board management
Python
5
star
40

pyansys-cheat-sheet

This repository contains the cheat-sheets for PyAnsys
TeX
5
star
41

pysystem-coupling

Python API to System Coupling
Python
5
star
42

aedt-testing

Testing Framework for Ansys Electronics Desktop
Python
5
star
43

pyaedt-toolkits-antenna

AEDT Antenna Toolkit
Python
5
star
44

ansys-api-geometry

Auto-generated gRPC Python interface files for the Ansys Geometry Service
Python
5
star
45

pymapdl-examples

Repository holding examples for PyMAPDL
Shell
5
star
46

lsdyna-spotless

A toolkit for running LS-DYNA simulations on AWS spot instances while encapsulating away the interruptible behavior by checkpointing on-interruption and greedy job restart.
Shell
5
star
47

DevRelDocs

Documentation staging area for the DevRel site
HTML
4
star
48

grpc_chunk_stream_demo

Demonstrate Large Array Serialization using gRPC
C++
4
star
49

grantami-bomanalytics

Pythonic interface for Ansys Granta Compliance reporting API
Python
4
star
50

5G-Wizard

Tool to calculate Power Density and Cumulative Distribution Function for 5G devices
Python
4
star
51

pyrocky

A Python API for Ansys Rocky
Python
4
star
52

pysherlock

Pythonic interface to Sherlock
Python
4
star
53

pypim

Product Instance Management python client package
Python
4
star
54

pyansys-sound

Pythonic interface to Ansys Sound
Python
4
star
55

pyansys-tools-report

Ansys tool for reporting your Python environment's package versions and hardware resources in a standardized way
Python
3
star
56

example-coverage

Report on example coverage
Python
3
star
57

pyansys-tools-variableinterop

Optional variable specifications for interoperability between languages and capabilities
Python
3
star
58

hollerith

Fixed width formatting library
C++
3
star
59

ansys-api-meshing-prime

Ansys Prime Server Meshing gRPC APIs
Python
3
star
60

pyseascape

Pythonic interface to Ansys RedHawk-SC, Totem-SC and other seascape tools
Python
3
star
61

pyansys-math

A Python repository for mathematical libraries
Python
3
star
62

pyansys-protos-generator

Automatically generate a python package from protofiles stored according to gRPC protofile conventions
Python
3
star
63

ansys-tools-path

Library to detect Ansys products installation path
Python
3
star
64

ansys-engineeringworkflow-api

Common Python API for running and monitoring an Engineering Workflow
Python
3
star
65

template

Template repository
Python
3
star
66

pyaedt-toolkit-template

PyAEDT Toolkit Template
Python
3
star
67

pyansys-helloworld

Demonstrate how to create a basic pyansys service package
Python
2
star
68

pymapdl-dev-docs

Nightly development documentation for pymapdl
HTML
2
star
69

pyadditive

Pythonic interface client to Ansys additive simulation service
Python
2
star
70

ansys-api-modelcenter

Python
2
star
71

.github

Ansys GitHub organization landing page
2
star
72

ansys-tools-local-product-launcher

A utility for launching Ansys products on the local machine
Python
2
star
73

pymechanical-embedding-examples

Examples for the embedding capabilities of pymechanical
2
star
74

DPF-Core-docs

Host built documentation for DPF-Core
2
star
75

py-mel-logging

Library that defines a Python logger that can be used in the Microsoft.Extensions.Logging framework.
Python
2
star
76

DPF-Post-docs

Host built documentation for DPF-Post
HTML
2
star
77

pyansys-tools-versioning

Utilities for backwards and forward server support.
Python
2
star
78

ansys-api-mechanical

Python
2
star
79

ansys-pyensight-vscode

A VSCode extension to empower the PyEnSight Python module
TypeScript
2
star
80

pymodelcenter

Rich Pythonic APIs for Ansys ModelCenter
Python
2
star
81

pymechanical-stubs

Project to generate mechanical api stubs
Python
2
star
82

pyworkbench

PyWorkbench
Python
2
star
83

pyedb-core

Ansys Electronics Database Python Client Package
Python
2
star
84

pyaedt-docs-redirect

Simple redirect from aedtdocs.pyansys.com to aedt.docs.pyansys.com
HTML
1
star
85

grantami-recordlists

A Python wrapper for GRANTA MI RecordLists API
Python
1
star
86

pyansys-sanjose-workshop

PyAnsys Examples for Demos
HTML
1
star
87

ansys-all-members

Repository for updating the ansys/all-members team automatically
Python
1
star
88

openapi-common

Common authentication components for OpenAPI client libraries
Python
1
star
89

c-extension-demo

Simple CPython c-extension demo
C
1
star
90

techcon-2022-pytest

Slides for the TechCon 2022 talk "PyAnsys tools for unit testing"
TeX
1
star
91

ansys-api-discovery

This repository provides the auto-generated gRPC Python interface files for Discovery/SpaceClaim.
Python
1
star
92

magnet-segmentation-toolkit

Magnet segmentation toolkit
Python
1
star
93

pymechanical-examples

Repository holding PyMechanical remote examples
1
star
94

landing-page

PyAnsys documentation landing page
1
star
95

ansys-api-pyensight

Python
1
star
96

techcon-2022-pyvista

TeX
1
star
97

pymechanical-env

Repository for loading environment variables when using PyMechanical embedding instances in Linux
Python
1
star