assign_fresnel#
- Hfss.assign_fresnel(assignment: str | list, input_file: str | Path | None = None, name: str | None = None) BoundaryObject#
Assign Fresnel to one or more objects or faces.
- Parameters:
- assignment
strorlist One or more objects or faces to assign finite conductivity to.
- input_file
strorpathlib.Path,optional Fresnel reflection or reflection/transmission coefficient table file. The default is
None, in which case perfect absorber is assigned.- name
str,optional Name of the boundary. The default is
None, in which case the name starts withFresnel_and is then composed by the object(s) and/or face(s) selected.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object.
References
>>> oModule.AssignFresnel
Examples
>>> from ansys.aedt.core import Hfss >>> from ansys.aedt.core.generic.constants import Plane >>> hfss = Hfss(solution_type="SBR+") >>> origin = hfss.modeler.Position(0, 0, 0) >>> inner = hfss.modeler.create_cylinder(Plane.XY, origin, 3, 200, 0, "inner") >>> rttbl_file = "file.rttbl" >>> fresnel = hfss.assign_fresnel(inner.name, input_file=rttbl_file)