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: PCB and EDB in 3D layout
HFSS 3D Layout: parametric via analysis
General model and setup examples#
These examples use PyAEDT to show some general model and simulation setup features inside AEDT.
General: coordinate system 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.
Create a 3D Component and reuse it
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+: 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 Electrostatic analysis
Maxwell 2D: PM synchronous motor transient analysis
Transformer leakage inductance calculation in Maxwell 2D Magnetostatic
Maxwell 2D: transient winding analysis
Maxwell 3D: asymmetric conductor analysis
Maxwell 3D: magnet segmentation
Maxwell 3D: bath plate analysis
Enabling Control Program in a Maxwell 2D Project
Maxwell 3D: magnet DC analysis
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: Creating blocks and assigning materials and power
Icepak: Importing a PCB and its components via IDF and EDB
Icepak: graphic card thermal analysis
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
2D Extractor: stripline analysis
Q3D Extractor: PCB DCIR analysis
Q3D Extractor: busbar 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: HFSS-Icepak multiphysics analysis
Multiphysics: HFSS-Mechanical multiphysics analysis
Multiphysics: HFSS-Mechanical MRI 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: schematic creation and analysis
Circuit: Simulate multi-zones layout with Siwave
Circuit: schematic subcircuit management
Circuit: transient analysis and eye plot
Circuit: netlist to schematic import
Circuit: automatic report creation
Circuit: Touchstone file management
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: Compute receiver protection levels
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: wiring a rectifier with a capacitor filter
Twin Builder: dynamic ROM creation and simulation (2023 R2 beta)
Twin Builder: static ROM creation and simulation (2023 R2 beta)