assign_radiation_boundary_to_objects

Hfss.assign_radiation_boundary_to_objects(obj_names, boundary_name='')[source]

Assign a radiation boundary to one or more objects (usually airbox objects).

Parameters
obj_namesstr or list or int or pyaedt.modeler.Object3d.Object3d

One or more object names or IDs.

boundary_namestr, optional

Name of the boundary. The default is "".

Returns
pyaedt.modules.Boundary.BoundaryObject

Boundary object.

References

>>> oModule.AssignRadiation

Examples

Create a box and assign a radiation boundary to it.

>>> radiation_box = hfss.modeler.primitives.create_box([0, -200, -200], [200, 200, 200],
...                                                    name="Radiation_box")
>>> radiation = hfss.assign_radiation_boundary_to_objects("Radiation_box")
>>> type(radiation)
<class 'pyaedt.modules.Boundary.BoundaryObject'>