assign_perfecte_to_sheets#

Hfss.assign_perfecte_to_sheets(assignment, name=None, is_infinite_ground=False)#

Create a Perfect E taking one sheet.

Parameters:
assignmentstr or list

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

namestr, optional

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

is_infinite_groundbool, optional

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

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

Boundary object.

References

>>> oModule.AssignPerfectE

Examples

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

>>> sheet = hfss.modeler.create_rectangle(hfss.PLANE.XY, [0, 0, -90],
...                                       [10, 2], name="PerfectESheet", material="Copper")
>>> perfect_e_from_sheet = hfss.assign_perfecte_to_sheets(sheet.name,"PerfectEFromSheet")
>>> type(perfect_e_from_sheet)
<class 'from ansys.aedt.core.modules.boundary.common.BoundaryObject'>