Skip to main content
This is a quick-reference guide for the PyAEDT Client Library. You can jump to a section of your choosing by using these links: Launching PyAEDT | Variable Class | Material Class | Geometry Creation | Creating boundaries | Port definitions | Setup Class | Mesh Class | Analysis Class | Post-Processing Class | Calling AEDT Client Library with PyAEDT

Launching PyAEDT

To launch HFSS instance locally and exit it

Variable Class

Creating a local and global variable in HFSS
hfss.variable_manager is the class which handles all the variables. It contains properties and methods useful for variable handling.

Material Class

hfss.materialsclass is used to access the material library. A new material is added in HFSS as:

Geometry Creation

hfss.modeler contains all properties and methods needed to edit a modeler, including primitives methods and properties. A box is drawn at (x_pos, y_pos, z_pos) position with (x_dim, y_dim, z_dim) dimensions as:
A spiral geometry made of “copper” is created as follows:
box, ind are the Object3d objects, containing properties and methods related to that object including faces, vertices, colors, and materials.

Creating boundaries

In AEDT, open region is created as:
Assigning the radiation boundary to a box is as follows:

Port definitions

Common port types in HFSS are Lumped-port and Waveguide-port. The Pythonic way of defining thelumped-port is:
The Pythonic way of defining Waveguide-port is:

Setup Class

Setup class is used to define the solution setup in PyAEDT
Parametric sweep and optimizations are accessed using the following classes:

Mesh Class

Mesh module manages the mesh functions in PyAEDT

Analysis Class

The solution setup (mysetup) in HFSS design is analyzed by calling the following Python command:

Post-processing Class

Post-processing class has modules for creating and editing plots in AEDT. They are accessible through the post library.

Calling the AEDT Client Libary with PyAEDT

Most of the critical functionalities are captured in PyAEDT. However, the missing features from the AEDT Client Library method can be converted to the PyAEDT method. Example: AEDT Client Library module (Optimetrics), is accessible in PyAEDT as:

References from PyAEDT Documentation