fields#

Reports.fields(expressions=None, setup=None, polyline=None)#

Create a Field Report object.

Parameters:
expressionsstr or list

One or more expressions to add to the report. The expression can be any of the available formula you can enter into the Electronics Desktop Report Editor.

setupstr, optional

Name of the setup. The default is None, in which case the nominal_adaptive setup is used. Be sure to build a setup string in the form of "SetupName : SetupSweep", where SetupSweep is the sweep name to use in the export or LastAdaptive.

polylinestr, optional

Name of the polyline to plot the field on. If a name is not provided, the report might be incorrect. The default value is None.

Returns:
ansys.aedt.core.modules.report_templates.Fields

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss(my_project)
>>> report = hfss.post.reports_by_category.fields("Mag_E", "Setup : LastAdaptive", "Polyline1")
>>> report.create()
>>> solutions = report.get_solution_data()