assign_hybrid_region#

Hfss.assign_hybrid_region(assignment, name=None, hybrid_region='SBR+')[source]#

Assign a hybrid region to one or more objects.

Parameters:
assignmentstr or list or int or ansys.aedt.core.modeler.cad.object_3d.Object3d

One or more object names or IDs.

namestr, optional

Name of the boundary. The default is None, in which case a name is automatically assigned.

hybrid_regionstr, optional

Hybrid region to assign. The default is “SBR+”`. Options are "IE", "PO" and "SBR+".

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

Boundary object.

References

>>> oModule.AssignHybridRegion

Examples

Create a box and assign a hybrid boundary to it.

>>> box = hfss.modeler.create_box([0, -200, -200],[200, 200, 200],name="Radiation_box")
>>> sbr_box = hfss.assign_hybrid_region("Radiation_box")
>>> type(sbr_box)
<class 'from ansys.aedt.core.modules.boundary.BoundaryObject'>