assign_radiation#
- Maxwell2d.assign_radiation(assignment, radiation=None)[source]#
Assign radiation boundary to one or more objects.
Radiation assignment can be calculated based upon the solver type. Available solution type is:
Eddy Current
.- Parameters:
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Radiation objects. If the method fails to execute it returns
False
.
References
>>> oModule.Radiation
Examples
Assign radiation boundary to one box and one face:
>>> from ansys.aedt.core import Maxwell3d >>> m3d = Maxwell3d() >>> box1 = m3d.modeler.create_box([0, 0, 0],[2, 10, 10]) >>> box2 = m3d.modeler.create_box([10, 0, 0],[2, 10, 10]) >>> m3d.assign_radiation([box1, box2.faces[0]]) >>> m3d.release_desktop(True, True)