Skip to content

Commit 42f0ff1

Browse files
Fix/examples bug (#4449)
1 parent f5d79e5 commit 42f0ff1

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

examples/02-HFSS/Probe_Fed_Patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# You can set ``non_graphical`` to ``True`` to view
3535
# HFSS while the notebook cells are executed.
3636

37-
non_graphical = True
37+
non_graphical = False
3838
length_units = "mm"
3939
freq_units = "GHz"
4040

@@ -84,7 +84,7 @@
8484
stackup.resize_around_element(patch)
8585
pad_length = [3, 3, 3, 3, 3, 3] # Air bounding box buffer in mm.
8686
region = hfss.modeler.create_region(pad_length, is_percentage=False)
87-
hfss.assign_radiation_boundary_to_objects(region)
87+
hfss.assign_radiation_boundary_to_objects(region.name)
8888

8989
patch.create_probe_port(ground, rel_x_offset=0.485)
9090
setup = hfss.create_setup(setupname="Setup1",
@@ -115,4 +115,4 @@
115115
# Release AEDT and clean up temporary folders and files.
116116

117117
hfss.release_desktop()
118-
tmpdir.cleanup()
118+
tmpdir.cleanup()

examples/03-Maxwell/Maxwell2D_Transient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
# ~~~~~~~~~~~~~~~~~
7272
# Create an air region.
7373

74-
region = maxwell_2d.modeler.create_region([100, 100, 100, 100, 100, 100])
74+
region = maxwell_2d.modeler.create_region([100, 100, 100, 100])
7575

7676
###############################################################################
7777
# Assign windings and balloon

examples/05-Q3D/Q2D_Armoured_Cable.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
# Create region
200200
# ~~~~~~~~~~~~~
201201

202-
region = q2d.modeler.create_region([500, 500, 500, 500, 0, 0])
202+
region = q2d.modeler.create_region([500, 500, 500, 500])
203203
region.material_name = "vacuum"
204204

205205
##########################################################
@@ -228,12 +228,6 @@
228228

229229
q2d_setup = q2d.create_setup(setupname=setup_name)
230230
q2d_sweep = q2d_setup.add_sweep(sweepname=sweep_name)
231-
q2d_sweep.props["RangeType"] = "LogScale"
232-
q2d_sweep.props["RangeStart"] = "0Hz"
233-
q2d_sweep.props["RangeEnd"] = "3MHz"
234-
q2d_sweep.props["RangeCount"] = 10
235-
q2d_sweep.props["RangeSamples"] = 1
236-
q2d_sweep.update()
237231

238232
##########################################################
239233
# Analyze setup

0 commit comments

Comments
 (0)