assign_radiation_boundary_to_faces#

Hfss.assign_radiation_boundary_to_faces(assignment, name=None)#

Assign a radiation boundary to one or more faces.

Parameters:
assignment

Face ID to assign the boundary condition to.

namestr, optional

Name of the boundary. The default is None.

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

Boundary object.

References

>>> oModule.AssignRadiation

Examples

Create a box. Select the faces of this box and assign a radiation boundary to them.

>>> radiation_box = hfss.modeler.create_box([0 , -100, 0],[200, 200, 200],name="RadiationForFaces")
>>> ids = [i.id for i in hfss.modeler["RadiationForFaces"].faces]
>>> radiation = hfss.assign_radiation_boundary_to_faces(ids)
>>> type(radiation)
<class 'from ansys.aedt.core.modules.boundary.BoundaryObject'>