assign_radiation_boundary_to_objects#

Hfss.assign_radiation_boundary_to_objects(assignment, name=None)[source]#

Assign a radiation boundary to one or more objects (usually airbox 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.

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

Boundary object.

References

>>> oModule.AssignRadiation

Examples

Create a box and assign a radiation boundary to it.

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