assign_perfecte_to_sheets

Hfss.assign_perfecte_to_sheets(sheet_list, sourcename=None, is_infinite_gnd=False)[source]

Create a Perfect E taking one sheet.

Parameters
sheet_liststr or list

Name of the sheet or list to apply the boundary to.

sourcenamestr, optional

Name of the Perfect E source. The default is None.

is_infinite_gndbool, optional

Whether the Perfect E is an infinite ground. The default is False.

Returns
pyaedt.modules.Boundary.BoundaryObject

Boundary object.

References

>>> oModule.AssignPerfectE

Examples

Create a sheet and use it to create a Perfect E.

>>> sheet = hfss.modeler.primitives.create_rectangle(hfss.PLANE.XY, [0, 0, -90],
...                                                  [10, 2], name="PerfectESheet", matname="Copper")
>>> perfect_e_from_sheet = hfss.assign_perfecte_to_sheets(sheet.name, "PerfectEFromSheet")
>>> type(perfect_e_from_sheet)
<class 'pyaedt.modules.Boundary.BoundaryObject'>