Skip to content

Commit 627cb4b

Browse files
authored
Merge branch 'main' into layer-error
2 parents 583e8cb + 346a7ee commit 627cb4b

File tree

26 files changed

+961
-276
lines changed

26 files changed

+961
-276
lines changed

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
# Label based on modified files
3434
- name: Label based on changed files
35-
uses: actions/labeler@v5
35+
uses: actions/labeler@v6
3636
with:
3737
repo-token: ${{ secrets.GITHUB_TOKEN }}
3838
sync-labels: true

doc/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
os.environ["PYAEDT_NON_GRAPHICAL"] = "1"
3232
os.environ["PYAEDT_DOC_GENERATION"] = "1"
33+
os.environ["PYANSYS_VISUALIZER_HTML_BACKEND"] = "true"
3334

3435
LaTeXBuilder.supported_image_types = ["image/png", "image/pdf", "image/svg+xml"]
3536

examples/aedt/circuit/index.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ These examples use PyAEDT to show Circuit capabilities.
8282

8383
This example demonstrates advanced postprocessing of AMI simulations.
8484

85-
.. grid-item-card:: Multi-zone simulation with SIwave
86-
:padding: 2 2 2 2
87-
:link: ../../high_frequency/layout/signal_integrity/multizone
88-
:link-type: doc
89-
90-
.. image:: ../../high_frequency/layout/signal_integrity/_static/multizone.png
91-
:alt: Multizone
92-
:width: 250px
93-
:height: 200px
94-
:align: center
95-
96-
This example shows how to simulate multiple zones with SIwave.
97-
9885
.. grid-item-card:: Circuit transient analysis and eye diagram
9986
:padding: 2 2 2 2
10087
:link: ../../high_frequency/layout/signal_integrity/circuit_transient
@@ -118,5 +105,4 @@ These examples use PyAEDT to show Circuit capabilities.
118105
../../aedt_general/report/virtual_compliance
119106
../../high_frequency/emc/subcircuit.py
120107
../../high_frequency/layout/signal_integrity/ami
121-
../../high_frequency/layout/signal_integrity/multizone
122108
../../high_frequency/layout/signal_integrity/circuit_transient

examples/aedt/maxwell_2d/index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,19 @@ These examples use PyAEDT to show Maxwell 2D capabilities.
164164

165165
This example shows how to use PyAEDT to create a Maxwell 2D magnetostatic analysis to calculate transformer leakage inductance and reactance.
166166

167+
.. grid-item-card:: 3-Phase Cable with Neutral
168+
:padding: 2 2 2 2
169+
:link: ../../low_frequency/general/maxwell_3_phase_cable
170+
:link-type: doc
171+
172+
.. image:: ../../low_frequency/general/_static/three_phase_cable.png
173+
:alt: Maxwell cable
174+
:width: 250px
175+
:height: 200px
176+
:align: center
177+
178+
This example uses PyAEDT to create a 3-phase cable with neutral and solve it using Maxwell 2D AC Magnetic (Eddy Current) solver.
179+
167180
.. toctree::
168181
:hidden:
169182

@@ -172,10 +185,11 @@ These examples use PyAEDT to show Maxwell 2D capabilities.
172185
../../low_frequency/general/eddy_current
173186
../../low_frequency/general/electrostatic
174187
../../low_frequency/general/external_circuit
188+
../../low_frequency/general/maxwell_3_phase_cable
175189
../../low_frequency/magnetic/magneto_motive_line
176190
../../low_frequency/magnetic/transient_winding
177191
../../low_frequency/magnetic/lorentz_actuator
178192
../../low_frequency/magnetic/2d-axi_magnetostatic_actuator
179193
../../low_frequency/motor/aedt_motor/pm_synchronous
180194
../../low_frequency/motor/aedt_motor/rmxpert
181-
../../low_frequency/motor/aedt_motor/transformer_inductance
195+
../../low_frequency/motor/aedt_motor/transformer_inductance

examples/edb/legacy_standalone/gds_workflow.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
import os
1818
import tempfile
19-
from pyedb.dotnet.edb import Edb
19+
from pyedb import Edb
2020
from pyedb.misc.downloads import download_file
2121
from ansys.aedt.core.hfss3dlayout import Hfss3dLayout
2222

23-
# ### Define constants
23+
# ### Define constant
2424
# Constants help ensure consistency and avoid repetition throughout the example.
2525

26-
AEDT_VERSION = "2025.2"
26+
AEDT_VERSION= "2025.2"
2727
NG_MODE = False # Open AEDT UI when it is launched.
2828

2929
# ### Create temporary directory
@@ -69,7 +69,7 @@
6969
#
7070
# Open the EDB by creating an instance of the ``Edb`` class.
7171

72-
edb = Edb(gds_in, edbversion=AEDT_VERSION, control_file=control_file, map_file=map_file)
72+
edb = Edb(gds_in, control_file=control_file, map_file=map_file, version=AEDT_VERSION)
7373

7474
# ### View the layer stackup
7575

@@ -99,12 +99,3 @@
9999
# The following command releases Ansys Electronics Desktop and closes the project.
100100

101101
h3d.release_desktop()
102-
103-
# ### Clean up
104-
#
105-
# All project files are saved in the folder ``temp_folder.name``.
106-
# If you've run this example as a Jupyter notebook, you
107-
# can retrieve those project files. The following cell
108-
# removes all temporary files, including the project folder.
109-
110-
temp_folder.cleanup()

examples/edb/use_configuration/import_ports.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@
5050
#
5151
# - **name**. Name of the port.
5252
# - **Reference_designator**. Reference designator of the component.
53-
# - **type**. Type of the port. Supported types are 'circuit', 'coax'
54-
# - **positive_terminal**. Positive terminal of the port. Supported types are 'net', 'pin', 'pin_group', 'coordinates'
53+
# - **type**. Type of the port. Supported types are 'circuit', 'coax', 'gap_port', 'wave_port', 'diff_wave_port'.
54+
# - **impedance**. Impedance of the port. Default is 50 Ohm.
55+
# - **positive_terminal**. Positive terminal of the port. Supported types are 'net', 'pin', 'pin_group', 'coordinates'.
5556
# - **negative_terminal**. Negative terminal of the port. Supported types are 'net', 'pin', 'pin_group', 'coordinates',
56-
# 'nearest_pin'
57+
# 'nearest_pin'.
5758

5859
port_1 = {
5960
"name": "port_1",

examples/edb/use_configuration/import_sources.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
# - **name**. Name of the voltage source.
5151
# - **Reference_designator**. Reference designator of the component.
5252
# - **type**. Type of the source. Supported types are 'voltage', 'current'
53+
# - **impedance**. Impedance of the port. Default is 5e7 Ohm for current sources, 1e-6 Ohm for voltage sources.
5354
# - **positive_terminal**. Supported types are 'net', 'pin', 'pin_group', 'coordinates'
5455
# - **contact_radius**. Optional. Set circular equipotential region.
55-
# - **inline**. Optional. When True, contact points are place in a row.
56+
# - **inline**. Optional. When True, contact points are placed in a row.
5657
# - **num_of_contact**. Optional. Number of contact points. Default is 1. Applicable only when inline is True.
5758
# - **negative_terminal**. Supported types are 'net', 'pin', 'pin_group', 'coordinates'
5859
# - **equipotential**. Set equipotential region on pins when True.
@@ -150,7 +151,7 @@
150151
sources_distributed,
151152
]
152153

153-
# ## Write configuration into as json file
154+
# ## Write configuration into as JSON file
154155

155156
file_json = Path(temp_folder.name) / "edb_configuration.json"
156157
with open(file_json, "w") as f:
@@ -169,7 +170,7 @@
169170

170171
# ## Review
171172

172-
edbapp.siwave.sources
173+
print(edbapp.siwave.sources)
173174

174175
# ## Save and close Edb
175176
# The temporary folder will be deleted once the execution of this script is finished. Replace **edbapp.save()** with

examples/edb/use_configuration/pcb_dc_ir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
# ## Define Cutout
146146

147147
cfg["operations"] = {
148-
"cutout": {"signal_list": ["1V0"], "reference_list": ["GND"], "extent_type": "ConvexHull", "expansion_size": "20mm"}
148+
"cutout": {"signal_list": ["1V0"], "reference_list": ["GND"], "extent_type": "ConvexHull", "expansion_size": 0.02}
149149
}
150150

151151
# ## Define package for thermal analysis (optional)

examples/high_frequency/emc/double_pulse_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
non_graphical=NG_MODE,
4747
new_desktop=True,
4848
)
49-
circuit.modeler.schematic.schematic_units = "mil"
49+
circuit.modeler.schematic_units = "mil"
5050

5151
# ## Variable initialization to create a parametric design
5252
#
@@ -365,6 +365,7 @@
365365
],
366366
domain="Time",
367367
plot_name="Plot V,I",
368+
context={"time_stop": "15us"}
368369
)
369370

370371
# ## Release AEDT
Binary file not shown.

0 commit comments

Comments
 (0)