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')#
Create an impedance taking one sheet.
- Parameters:
- assignment
str
orlist
One or more names of the sheets to apply the boundary to.
- name
str
,optional
Name of the impedance. The default is
None
.- resistance
float
orlist
,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
].- reactance
optional
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_system
str
,optional
Name of the coordinate system for the XY plane. The default is
"Global"
. This parameter is only used for anisotropic impedance assignment.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.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])