expression_plot#

FieldsCalculator.expression_plot(calculation, assignment, names, setup=None)[source]#

Create plots defined in the expression catalog.

Parameters:
calculationstr

Calculation type.

assignmentlist

List of assignments to apply the expression to. If the expression is not general, assignment is not needed.

nameslist

Name of the expressions to plot.

setupstr

Analysis setup.

Returns:
list

List of created reports.

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> poly = hfss.modeler.create_polyline([[0, 0, 0], [1, 0, 1]], name="Polyline1")
>>> expr_name = hfss.post.fields_calculator.add_expression("voltage_line", "Polyline1")
>>> reports = hfss.post.fields_calculator.expression_plot("voltage_line", "Polyline1", [name])
>>> hfss.release_desktop(False, False)