diff --git a/src/ansys/aedt/core/hfss.py b/src/ansys/aedt/core/hfss.py index 5d86c74a165..ce9b9386d29 100644 --- a/src/ansys/aedt/core/hfss.py +++ b/src/ansys/aedt/core/hfss.py @@ -3574,7 +3574,7 @@ def assign_impedance_to_sheet( """ - if self.solution_type in ["Modal", "Terminal", "Transient Network"]: + if self.solution_type in ["Modal", "Terminal", "Transient Network", "Eigenmode"]: if not name: name = generate_unique_name("Imped") elif name in self.modeler.get_boundaries_name(): diff --git a/tests/system/general/test_20_HFSS.py b/tests/system/general/test_20_HFSS.py index 8bf8447e0c2..15e54a4ecb1 100644 --- a/tests/system/general/test_20_HFSS.py +++ b/tests/system/general/test_20_HFSS.py @@ -737,7 +737,7 @@ def test_15_create_perfects_on_sheets(self): assert perfect_e_eigen.name in self.aedtapp.modeler.get_boundaries_name() self.aedtapp.solution_type = "solution_type" - def test_16_create_impedance_on_sheets(self): + def test_16_a_create_impedance_on_sheets(self): rect = self.aedtapp.modeler.create_rectangle( self.aedtapp.PLANE.XY, [0, 0, 0], [10, 2], name="ImpBound", material="Copper" ) @@ -760,6 +760,14 @@ def test_16_create_impedance_on_sheets(self): imp3 = self.aedtapp.assign_impedance_to_sheet(impedance_box.top_face_z.id, "TL4", [50, 20, 0, 0], [25, 0, 5, 0]) assert imp3.name in self.aedtapp.modeler.get_boundaries_name() + def test_16_b_create_impedance_on_sheets_eigenmode(self, add_app): + aedtapp = add_app(solution_type="Eigenmode", project_name="test_16_b") + rect = aedtapp.modeler.create_rectangle( + aedtapp.PLANE.XY, [0, 0, 0], [10, 2], name="ImpBound", material="Copper" + ) + imp1 = aedtapp.assign_impedance_to_sheet(rect.name, "TL2", 50, 25) + assert imp1.name in aedtapp.modeler.get_boundaries_name() + def test_17_create_lumpedrlc_on_sheets(self): rect = self.aedtapp.modeler.create_rectangle( self.aedtapp.PLANE.XY, [0, 0, 0], [10, 2], name="rlcBound", material="Copper"