assign_radiation_boundary_to_objects#
- Hfss.assign_radiation_boundary_to_objects(assignment, name=None)#
Assign a radiation boundary to one or more objects (usually airbox objects).
- Parameters:
- assignment
str
orlist
orint
oransys.aedt.core.modeler.cad.object_3d.Object3d
One or more object names or IDs.
- name
str
,optional
Name of the boundary. The default is
None
, in which case a name is automatically assigned.
- assignment
- 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'>