assign_hybrid_region#

Hfss.assign_hybrid_region(obj_names, boundary_name='', hybrid_region='SBR+')[source]#

Assign a hybrid region to one or more objects.

Parameters:
obj_namesstr or list or int or pyaedt.modeler.cad.object3d.Object3d

One or more object names or IDs.

boundary_namestr, optional

Name of the boundary. The default is "".

hybrid_regionstr, optional

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

Returns:
pyaedt.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 'pyaedt.modules.Boundary.BoundaryObject'>