assign_radiation_boundary_to_faces#

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

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