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:
assignmentstr or list

One or more objects or faces to assign finite conductivity to.

input_filestr or pathlib.Path, optional

Fresnel reflection or reflection/transmission coefficient table file. The default is None, in which case perfect absorber is assigned.

namestr, optional

Name of the boundary. The default is None, in which case the name starts with Fresnel_ and is then composed by the object(s) and/or face(s) selected.

Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObject

Boundary 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)