assign_radiation_boundary_to_faces

Hfss.assign_radiation_boundary_to_faces(faces_id, boundary_name='')[source]

Assign a radiation boundary to one or more faces.

Parameters
faces_id

Face ID to assign the boundary condition to.

boundary_namestr, optional

Name of the boundary. The default is "".

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.primitives.create_box([0 , -100, 0], [200, 200, 200],
...                                                    name="RadiationForFaces")
>>> ids = [i.id for i in hfss.modeler.primitives["RadiationForFaces"].faces]
>>> radiation = hfss.assign_radiation_boundary_to_faces(ids)
>>> type(radiation)
<class 'pyaedt.modules.Boundary.BoundaryObject'>