assign_impedance_to_sheet#

Hfss.assign_impedance_to_sheet(assignment, name=None, resistance=50.0, reactance=0.0, is_infinite_ground=False, coordinate_system='Global')[source]#

Create an impedance taking one sheet.

Parameters:
assignmentstr or list

One or more names of the sheets to apply the boundary to.

namestr, optional

Name of the impedance. The default is None.

resistancefloat or list, optional

Resistance value in ohms. The default is 50.0. If a list of four elements is passed, an anisotropic impedance is assigned with the following order, [Zxx, Zxy, Zyx, Zyy].

reactanceoptional

Reactance value in ohms. The default is 0.0. If a list of four elements is passed, an anisotropic impedance is assigned with the following order, [Zxx, Zxy, Zyx, Zyy].

is_infinite_groundbool, optional

Whether the impedance is an infinite ground. The default is False.

coordinate_systemstr, optional

Name of the coordinate system for the XY plane. The default is "Global". This parameter is only used for anisotropic impedance assignment.

Returns:
ansys.aedt.core.modules.boundary.BoundaryObject

Boundary object if successful, False otherwise.

References

>>> oModule.AssignImpedance

Examples

Create a sheet and use it to create an impedance.

>>> sheet = hfss.modeler.create_rectangle(hfss.PLANE.XY,
...                                       [0, 0, -90], [10, 2], name="ImpedanceSheet",
...                                        material="Copper")
>>> impedance_to_sheet = hfss.assign_impedance_to_sheet(sheet.name,"ImpedanceFromSheet",100,50)

Create a sheet and use it to create an anisotropic impedance.

>>> sheet = hfss.modeler.create_rectangle(hfss.PLANE.XY,
...                                       [0, 0, -90], [10, 2], name="ImpedanceSheet",
...                                        material="Copper")
>>> anistropic_impedance_to_sheet = hfss.assign_impedance_to_sheet(sheet.name,
...                                                                "ImpedanceFromSheet",
...                                                                [377, 0, 0, 377],
...                                                                [0, 50, 0, 0])