assign_impedance_to_sheet#
- Hfss.assign_impedance_to_sheet(sheet_name, sourcename=None, resistance=50, reactance=0, is_infground=False)[source]#
Create an impedance taking one sheet.
- Parameters:
- sheet_name
str
Name of the sheet to apply the boundary to.
- sourcename
str
,optional
Name of the impedance. The default is
None
.- resistance
optional
Resistance value in ohms. The default is
50
. IfNone
, this parameter is disabled.- reactance
optional
Reactance value in ohms. The default is
0
. IfNone
, this parameter is disabled.- is_infgroundbool,
optional
Whether the impedance is an infinite ground. The default is
False
.
- sheet_name
- Returns:
pyaedt.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", ... matname="Copper") >>> impedance_to_sheet = hfss.assign_impedance_to_sheet(sheet.name, "ImpedanceFromSheet", 100, 50) >>> type(impedance_to_sheet) <class 'pyaedt.modules.Boundary.BoundaryObject'>