Examples#

End-to-end examples show how you can use PyAEDT. If PyAEDT is installed on your machine, you can download these examples as Python files or Jupyter notebooks and run them locally.

Note

Some examples require additional Python packages.

EDB examples#

EDB is a powerful API for efficiently controlling PCB data. You can either use EDB standalone or embedded in HFSS 3D Layout in AEDT. The EDB class in now part of the PyEDB package, which is currently installed with PyAEDT and backward-compatible with PyAEDT. All EDB related examples have been moved to the Examples page in the PyEDB documentation. These examples use EDB (Electronics Database) with PyAEDT.

# Launch the latest installed version of AEDB.
import ansys.aedt.core
edb = ansys.aedt.core.Edb("mylayout.aedb")

# You can also launch EDB directly from PyEDB.

import pyedb
edb = pyedb.Edb("mylayout.aedb")

HFSS 3D Layout examples#

These examples use PyAEDT to show some end-to-end workflows for HFSS 3D Layout. It includes model generation, setup, meshing, and post-processing.

HFSS 3D Layout: SIwave DCIR analysis in HFSS 3D Layout

HFSS 3D Layout: SIwave DCIR analysis in HFSS 3D Layout

HFSS 3D Layout: PCB and EDB in 3D layout

HFSS 3D Layout: PCB and EDB in 3D layout

HFSS 3D Layout: parametric via analysis

HFSS 3D Layout: parametric via analysis

HFSS: 3D Components

HFSS: 3D Components

General model and setup examples#

These examples use PyAEDT to show some general model and simulation setup features inside AEDT.

General: configuration files

General: configuration files

General: coordinate system creation

General: coordinate system creation

General: optimetrics setup

General: optimetrics setup

General: polyline creation

General: polyline creation

HFSS examples#

These examples use PyAEDT to show some end-to-end workflows for HFSS 3D. This includes model generation, setup, meshing, and postprocessing.

HFSS: component antenna array

HFSS: component antenna array

Create a 3D Component and reuse it

Create a 3D Component and reuse it

HFSS: flex cable CPWG

HFSS: flex cable CPWG

HFSS: choke

HFSS: choke

HFSS: dipole antenna

HFSS: dipole antenna

HFSS: FSS Unitcell Simulation

HFSS: FSS Unitcell Simulation

HFSS: spiral inductor

HFSS: spiral inductor

HFSS: Eigenmode filter

HFSS: Eigenmode filter

HFSS: Probe-fed patch antenna

HFSS: Probe-fed patch antenna

HFSS: Inductive Iris waveguide filter

HFSS: Inductive Iris waveguide filter

SBR+ examples#

These examples use PyAEDT to show some end-to-end workflows for HFSS SBR+. This includes model generation, setup, meshing, and postprocessing.

SBR+: Import Geometry from Maps

SBR+: Import Geometry from Maps

SBR+: doppler setup

SBR+: doppler setup

SBR+: HFSS to SBR+ coupling

SBR+: HFSS to SBR+ coupling

SBR+: HFSS to SBR+ time animation

SBR+: HFSS to SBR+ time animation

Maxwell examples#

These examples use PyAEDT to show some end-to-end workflows for Maxwell 2D and Maxwell 3D. This includes model generation, setup, meshing, and postprocessing. Examples cover different Maxwell solution types (Eddy Current, Magnetostatic, and Transient).

Maxwell 2D: resistance calculation

Maxwell 2D: resistance calculation

Maxwell 2D Electrostatic analysis

Maxwell 2D Electrostatic analysis

Maxwell 2D: PM synchronous motor transient analysis

Maxwell 2D: PM synchronous motor transient analysis

Transformer leakage inductance calculation in Maxwell 2D Magnetostatic

Transformer leakage inductance calculation in Maxwell 2D Magnetostatic

Maxwell 2D: transient winding analysis

Maxwell 2D: transient winding analysis

Maxwell 3D: asymmetric conductor analysis

Maxwell 3D: asymmetric conductor analysis

Maxwell 3D: choke setup

Maxwell 3D: choke setup

Maxwell 3D: magnet segmentation

Maxwell 3D: magnet segmentation

Maxwell 3D: bath plate analysis

Maxwell 3D: bath plate analysis

Enabling Control Program in a Maxwell 2D Project

Enabling Control Program in a Maxwell 2D Project

Maxwell 3D: magnet DC analysis

Maxwell 3D: magnet DC analysis

Maxwell 3D: Transformer

Maxwell 3D: Transformer

Rmxprt: Create and export motor

Rmxprt: Create and export motor

Icepak examples#

These examples use PyAEDT to show end-to-end workflows for Icepak. This includes schematic generation, setup, and thermal postprocessing.

Icepak: thermal analysis with 3D components

Icepak: thermal analysis with 3D components

Icepak: Creating blocks and assigning materials and power

Icepak: Creating blocks and assigning materials and power

Icepak: Importing a PCB and its components via IDF and EDB

Icepak: Importing a PCB and its components via IDF and EDB

Icepak: graphic card thermal analysis

Icepak: graphic card thermal analysis

Icepak: setup from Sherlock inputs

Icepak: setup from Sherlock inputs

2D Extractor and Q3D Extractor examples#

These examples use PyAEDT to show some end-to-end workflows for 2D Extractor and Q3D Extractor. This includes model generation, setup, and thermal postprocessing.

Q2D: Cable parameter identification

Q2D: Cable parameter identification

2D Extractor: CPWG analysis

2D Extractor: CPWG analysis

2D Extractor: stripline analysis

2D Extractor: stripline analysis

Q3D Extractor: PCB DCIR analysis

Q3D Extractor: PCB DCIR analysis

Q3D Extractor: busbar analysis

Q3D Extractor: busbar analysis

Q3D Extractor: PCB analysis

Q3D Extractor: PCB analysis

Multiphysics examples#

These examples use PyAEDT to create some multiphysics workflows. They might use an electromagnetic tool like HFSS or Maxwell and a thermal or structural tool like Icepak or Mechanical.

Multiphysics: Circuit-HFSS-Icepak coupling workflow

Multiphysics: Circuit-HFSS-Icepak coupling workflow

Multiphysics: HFSS-Icepak multiphysics analysis

Multiphysics: HFSS-Icepak multiphysics analysis

Multiphysics: HFSS-Mechanical multiphysics analysis

Multiphysics: HFSS-Mechanical multiphysics analysis

Multiphysics: HFSS-Mechanical MRI analysis

Multiphysics: HFSS-Mechanical MRI analysis

Multiphysics: Maxwell 3D - Icepak electrothermal analysis

Multiphysics: Maxwell 3D - Icepak electrothermal analysis

Circuit examples#

These examples use PyAEDT to show some end-to-end workflows for Circuit. This includes schematic generation, setup, and postprocessing.

Circuit: AMI PostProcessing

Circuit: AMI PostProcessing

Circuit: schematic creation and analysis

Circuit: schematic creation and analysis

Circuit: Simulate multi-zones layout with Siwave

Circuit: Simulate multi-zones layout with Siwave

Circuit: schematic subcircuit management

Circuit: schematic subcircuit management

Circuit: transient analysis and eye plot

Circuit: transient analysis and eye plot

Circuit: netlist to schematic import

Circuit: netlist to schematic import

Circuit: automatic report creation

Circuit: automatic report creation

Circuit: Touchstone file management

Circuit: Touchstone file management

Circuit: PCIE virtual compliance

Circuit: PCIE virtual compliance

EMIT examples#

These examples use PyAEDT to show some end-to-end workflows for EMIT. This includes schematic generation, setup, and postprocessing.

EMIT: Classify interference type

EMIT: Classify interference type

EMIT: Compute receiver protection levels

EMIT: Compute receiver protection levels

EMIT: antenna

EMIT: antenna

EMIT: HFSS to EMIT coupling

EMIT: HFSS to EMIT coupling

EMIT: Classify interference type GUI

EMIT: Classify interference type GUI

Twin Builder examples#

These examples use PyAEDT to show some end-to-end workflows for Twin Builder. This includes schematic generation, setup, and postprocessing.

Twin Builder: RC circuit design anaysis

Twin Builder: RC circuit design anaysis

Twin Builder: wiring a rectifier with a capacitor filter

Twin Builder: wiring a rectifier with a capacitor filter

Twin Builder: dynamic ROM creation and simulation (2023 R2 beta)

Twin Builder: dynamic ROM creation and simulation (2023 R2 beta)

Twin Builder: static ROM creation and simulation (2023 R2 beta)

Twin Builder: static ROM creation and simulation (2023 R2 beta)

Gallery generated by Sphinx-Gallery