insert_near_field_line#

Hfss.insert_near_field_line(assignment: str, points: float | str | None = 1000, custom_radiation_faces: str | None = None, name: str | None = None) NearFieldSetup#

Create a near field line.

Note

This method is not supported by HFSS EigenMode and CharacteristicMode solution types.

Parameters:
assignmentstr

Polyline name.

pointsfloat, str, optional

Number of points. The default value is 1000.

custom_radiation_facesstr, optional

List of radiation faces to use for far field computation. The default is None.

namestr, optional

Name of the sphere. The default is None.

Returns:
ansys.aedt.core.modules.hfss_boundary.NearFieldSetup

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> line = hfss.modeler.create_polyline([[0, 0, 0], [10, 0, 0], [10, 10, 0]])
>>> hfss.insert_near_field_line(assignment=line.name)