Skip to content

Commit

Permalink
Merge branch 'main' into release/0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 authored and maxcapodi78 committed Aug 4, 2023
2 parents 2b71f2f + c78de55 commit be07758
Show file tree
Hide file tree
Showing 74 changed files with 151 additions and 709 deletions.
4 changes: 2 additions & 2 deletions examples/00-EDB/00_EDB_Create_VIA.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
######################################################################
# Import EDB layout object
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Import the EDB layout object and initialize it on version 2023 R1.
# Import the EDB layout object and initialize it on version 2023 R2.
######################################################################

import time
Expand All @@ -26,7 +26,7 @@

aedb_path = os.path.join(pyaedt.generate_unique_folder_name(), pyaedt.generate_unique_name("pcb") + ".aedb")
print(aedb_path)
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2")

####################
# Add stackup layers
Expand Down
6 changes: 3 additions & 3 deletions examples/00-EDB/01_edb_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
###############################################################################
# Launch EDB
# ~~~~~~~~~~
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R1 and SI units.
edb_version = "2023.1"
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R2 and SI units.
edb_version = "2023.2"
if os.path.exists(aedt_file):
os.remove(aedt_file)
edb = pyaedt.Edb(edbpath=targetfile, edbversion=edb_version)
Expand Down Expand Up @@ -164,7 +164,7 @@
# Open Siwave and generate a report. This works on Window only.

# from pyaedt import Siwave
# siwave = Siwave("2023.1")
# siwave = Siwave("2023.2")
# siwave.open_project(siwave_file)
# report_file = os.path.join(temp_folder,'Ansys.htm')
#
Expand Down
4 changes: 2 additions & 2 deletions examples/00-EDB/02_edb_to_ipc2581.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
###############################################################################
# Launch EDB
# ~~~~~~~~~~
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R1 and SI units.
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R2 and SI units.

edb = pyaedt.Edb(edbpath=targetfile, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=targetfile, edbversion="2023.2")


###############################################################################
Expand Down
4 changes: 2 additions & 2 deletions examples/00-EDB/03_5G_antenna_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def points(self):
tmpfold = tempfile.gettempdir()
aedb_path = os.path.join(tmpfold, pyaedt.generate_unique_name("pcb") + ".aedb")
print(aedb_path)
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2")


###############################################################################
Expand Down Expand Up @@ -213,7 +213,7 @@ def points(self):
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Launch HFSS 3D Layout and open EDB.

h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.1", new_desktop_session=True,
h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.2", new_desktop_session=True,
non_graphical=non_graphical)

###############################################################################
Expand Down
8 changes: 4 additions & 4 deletions examples/00-EDB/04_edb_parametrized_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Perform required imports
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Perform required imports, which includes importing the ``Hfss3dlayout`` object
# and initializing it on version 2023 R1.
# and initializing it on version 2023 R2.

import pyaedt
import os
Expand All @@ -27,7 +27,7 @@

aedb_path = os.path.join(pyaedt.generate_unique_folder_name(), pyaedt.generate_unique_name("pcb") + ".aedb")
print(aedb_path)
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2")

######################################################################
# Define parameters
Expand Down Expand Up @@ -281,8 +281,8 @@
# ~~~~~~~~~~~~~~~~
# Open EDB in AEDT.

h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.1",
non_graphical=non_graphical)
h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.2",
non_graphical=non_graphical, new_desktop_session=True)

###############################################################################
# Add HFSS simulation setup
Expand Down
4 changes: 2 additions & 2 deletions examples/00-EDB/05_Plot_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
###############################################################################
# Launch EDB
# ~~~~~~~~~~
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R1 and SI units.
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R2 and SI units.

edb = pyaedt.Edb(edbpath=targetfolder, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=targetfolder, edbversion="2023.2")

###############################################################################
# Plot custom set of nets colored by layer
Expand Down
2 changes: 1 addition & 1 deletion examples/00-EDB/06_Advanced_EDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _create_ground_planes(edb, layers):
# ~~~~~~~~~~
# Create EDB. If the path doesn't exist, PyAEDT automatically generates a new AEDB folder.

edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.1")
edb = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2")

##################################################################################
# Create stackup layers
Expand Down
8 changes: 4 additions & 4 deletions examples/00-EDB/08_CPWG.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Perform required imports
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Peform required imports. Importing the ``Hfss3dlayout`` object initializes it
# on version 2023 R1.
# on version 2023 R2.

import pyaedt
import os
Expand All @@ -29,7 +29,7 @@

aedb_path = os.path.join(pyaedt.generate_unique_folder_name(), pyaedt.generate_unique_name("pcb") + ".aedb")
print(aedb_path)
edbapp = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.1")
edbapp = pyaedt.Edb(edbpath=aedb_path, edbversion="2023.2")

###############################################################################
# Define parameters
Expand Down Expand Up @@ -123,8 +123,8 @@
# ~~~~~~~~~~~~~~~~
# Open EDB in AEDT.

h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.1",
non_graphical=non_graphical)
h3d = pyaedt.Hfss3dLayout(projectname=aedb_path, specified_version="2023.2",
non_graphical=non_graphical, new_desktop_session=True)

###############################################################################
# Create wave ports
Expand Down
8 changes: 4 additions & 4 deletions examples/00-EDB/09_Configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Perform required imports
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Peform required imports. Importing the ``Hfss3dlayout`` object initializes it
# on version 2023 R1.
# on version 2023 R2.

import os
import pyaedt
Expand All @@ -35,9 +35,9 @@
###############################################################################
# Launch EDB
# ~~~~~~~~~~
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R1 and SI units.
# Launch the :class:`pyaedt.Edb` class, using EDB 2023 R2 and SI units.

edbapp = pyaedt.Edb(target_aedb, edbversion="2023.1")
edbapp = pyaedt.Edb(target_aedb, edbversion="2023.2")
###############################################################################
# Import Definitions
# ~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -174,7 +174,7 @@
# Open Aedt
# ~~~~~~~~~
# Project folder aedb will be opened in AEDT Hfss3DLayout and loaded.
h3d = pyaedt.Hfss3dLayout(specified_version="2023.1", projectname=target_aedb, non_graphical=non_graphical)
h3d = pyaedt.Hfss3dLayout(specified_version="2023.2", projectname=target_aedb, non_graphical=non_graphical, new_desktop_session=True)

###############################################################################
# Analyze
Expand Down
2 changes: 1 addition & 1 deletion examples/00-EDB/10_GDS_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

from pyaedt import Edb

edb = Edb(gds_out, edbversion="2023.1", technology_file=os.path.join(temppath, "output.xml"))
edb = Edb(gds_out, edbversion="2023.2", technology_file=os.path.join(temppath, "output.xml"))

###############################################################################
# Plot Stackup
Expand Down
2 changes: 1 addition & 1 deletion examples/00-EDB/11_post_layout_parameterization.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Download and open example layout file in edb format
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edb_fpath = pyaedt.downloads.download_file('edb/ANSYS-HSD_V1.aedb',destination=temppath)
appedb = Edb(edb_fpath, edbversion="2023.1")
appedb = Edb(edb_fpath, edbversion="2023.2")

###############################################################################
# Cutout
Expand Down
2 changes: 1 addition & 1 deletion examples/01-HFSS3DLayout/Dcir_in_3DLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#####################################################################################
# Load example board into EDB

edbversion = "2023.1"
edbversion = "2023.2"
appedb = pyaedt.Edb(local_path, edbversion=edbversion)

#####################################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/01-HFSS3DLayout/EDB_in_3DLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# ~~~~~~~~~~~
# Launch AEDT 2022R2 in graphical mode using SI units.

desktopVersion = "2023.1"
desktopVersion = "2023.2"

###############################################################################
# Initialize AEDT and launch HFSS 3D Layout
Expand Down
6 changes: 3 additions & 3 deletions examples/01-HFSS3DLayout/HFSS3DLayout_Via.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
# Set non-graphical mode.
# You can set ``non_graphical`` either to ``True`` or ``False``.

non_graphical = False
non_graphical = True

###############################################################################
# Launch AEDT
# ~~~~~~~~~~~
# Launch AEDT 2023 R1 in graphical mode.
# Launch AEDT 2023 R2 in graphical mode.

h3d = pyaedt.Hfss3dLayout(specified_version="2023.1", new_desktop_session=True, non_graphical=non_graphical)
h3d = pyaedt.Hfss3dLayout(specified_version="2023.2", new_desktop_session=True, non_graphical=non_graphical)

###############################################################################
# Set up variables
Expand Down
4 changes: 2 additions & 2 deletions examples/01-HFSS3DLayout/Hfss3DComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
sig_height = "5mil"
max_steps = 3
freq = "3GHz"
desktop_version = "2023.1"
desktop_version = "2023.2"
new_session = True

###############################################################################
Expand All @@ -46,7 +46,7 @@
# ~~~~~~~~~~~
# Launch HFSS application

hfss = pyaedt.Hfss(new_desktop_session=True, specified_version="2023.1", non_graphical=non_graphical)
hfss = pyaedt.Hfss(new_desktop_session=True, specified_version="2023.2", non_graphical=non_graphical)

hfss.solution_type = "Terminal"

Expand Down
2 changes: 1 addition & 1 deletion examples/01-Modeling-Setup/Configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

project_full_name = pyaedt.downloads.download_icepak(pyaedt.generate_unique_folder_name(folder_name="Graphic_Card"))

ipk = pyaedt.Icepak(projectname=project_full_name, specified_version="2023.1",
ipk = pyaedt.Icepak(projectname=project_full_name, specified_version="2023.2",
new_desktop_session=True, non_graphical=non_graphical)
ipk.autosave_disable()

Expand Down
4 changes: 2 additions & 2 deletions examples/01-Modeling-Setup/HFSS_CoordinateSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
###############################################################################
# Launch AEDT in graphical mode
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Launch AEDT 2023 R1 in graphical mode.
# Launch AEDT 2023 R2 in graphical mode.

d = pyaedt.launch_desktop(specified_version="2023.1", non_graphical=non_graphical, new_desktop_session=True)
d = pyaedt.launch_desktop(specified_version="2023.2", non_graphical=non_graphical, new_desktop_session=True)

###############################################################################
# Insert HFSS design
Expand Down
2 changes: 1 addition & 1 deletion examples/01-Modeling-Setup/Optimetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Initialize the ``Hfss`` object and create two needed design variables,
# ``w1`` and ``w2``.

hfss = pyaedt.Hfss(specified_version="2023.1", new_desktop_session=True, non_graphical=non_graphical)
hfss = pyaedt.Hfss(specified_version="2023.2", new_desktop_session=True, non_graphical=non_graphical)
hfss["w1"] = "1mm"
hfss["w2"] = "100mm"

Expand Down
2 changes: 1 addition & 1 deletion examples/01-Modeling-Setup/Polyline_Primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Create a :class:`pyaedt.maxwell.Maxwell3d` object and set the unit type to ``"mm"``.

M3D = pyaedt.Maxwell3d(solution_type="Transient", designname="test_polyline_3D", specified_version="2023.1",
M3D = pyaedt.Maxwell3d(solution_type="Transient", designname="test_polyline_3D", specified_version="2023.2",
new_desktop_session=True, non_graphical=non_graphical, )
M3D.modeler.model_units = "mm"
prim3D = M3D.modeler
Expand Down
Loading

0 comments on commit be07758

Please sign in to comment.