Skip to content

Commit 9d05add

Browse files
authored
replaced default HFSS Solution type to Terminal for version >= 2024.1 (#4484)
Co-authored-by: maxcapodi78 <Shark78>
1 parent 1ee0d5c commit 9d05add

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

_unittest/test_12_PostProcessing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def ami_test(add_app, q3dtest):
9696

9797
@pytest.fixture(scope="class")
9898
def array_test(add_app, q3dtest):
99-
app = add_app(project_name=array, subfolder=test_subfolder)
99+
app = add_app(project_name=array, subfolder=test_subfolder, solution_type="Modal")
100100
return app
101101

102102

_unittest/test_16_3d_stackup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@pytest.fixture(scope="class")
55
def aedtapp(add_app):
6-
app = add_app(project_name="Test_16")
6+
app = add_app(project_name="Test_16", solution_type="Modal")
77
return app
88

99

_unittest/test_20_HFSS.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ def test_53_import_source_excitation(self, add_app):
13251325
aedtapp.close_project(save_project=False)
13261326

13271327
def test_54_assign_symmetry(self, add_app):
1328-
aedtapp = add_app(project_name="test_54")
1328+
aedtapp = add_app(project_name="test_54", solution_type="Modal")
13291329
aedtapp.modeler.create_box([0, -100, 0], [200, 200, 200], name="SymmetryForFaces")
13301330
ids = [i.id for i in aedtapp.modeler["SymmetryForFaces"].faces]
13311331
assert aedtapp.assign_symmetry(ids)

_unittest/test_launch_desktop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_run_desktop_maxwell2d(self):
6464
def test_run_desktop_hfss(self):
6565
aedtapp = Hfss()
6666
assert aedtapp.design_type == "HFSS"
67-
assert "Modal" in aedtapp.solution_type
67+
assert "Terminal" in aedtapp.solution_type
6868

6969
def test_run_desktop_maxwell3d(self):
7070
aedtapp = Maxwell3d()

_unittest_ironpython/run_unittests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_run_desktop_maxwell2d(self):
121121
def test_run_desktop_hfss(self):
122122
aedtapp = Hfss()
123123
self.assertTrue(aedtapp.design_type == "HFSS")
124-
self.assertTrue("Modal" in aedtapp.solution_type)
124+
self.assertTrue("Terminal" in aedtapp.solution_type)
125125
self.assertTrue(aedtapp.modeler)
126126
self.assertTrue(aedtapp.post)
127127
self.assertTrue(aedtapp.materials)

pyaedt/application/Design.py

+2
Original file line numberDiff line numberDiff line change
@@ -3283,6 +3283,8 @@ def _insert_design(self, design_type, design_name=None):
32833283
else:
32843284
if design_type == "HFSS" and self._aedt_version < "2021.2":
32853285
new_design = self._oproject.InsertDesign(design_type, unique_design_name, "DrivenModal", "")
3286+
elif design_type == "HFSS" and self._aedt_version < "2024.1":
3287+
new_design = self._oproject.InsertDesign(design_type, unique_design_name, "HFSS Modal Network", "")
32863288
else:
32873289
new_design = self._oproject.InsertDesign(
32883290
design_type, unique_design_name, self.default_solution_type, ""

pyaedt/application/design_solutions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Maxwell Circuit": "",
1111
"2D Extractor": "Open",
1212
"Q3D Extractor": "Q3D Extractor",
13-
"HFSS": "HFSS Modal Network",
13+
"HFSS": "HFSS Terminal Network",
1414
"Icepak": "SteadyState",
1515
"RMxprtSolution": "GRM",
1616
"ModelCreation": "GRM",

0 commit comments

Comments
 (0)