XYPlot#
- class ansys.fluent.visualization.XYPlot(surfaces, y_axis_function, solver=None, local_surfaces_provider=None, **kwargs)#
Bases:
GraphicsObjectXY plot visualization object.
The
XYPlotclass creates a Fluent XY plot of a scalar field evaluated along one or more surfaces. XY plots are typically used to visualize variations of a quantity along a line, surface intersection, or custom geometric curve.- Parameters:
surfaces (
list[str]) – List of Fluent surfaces on which the XY plot is evaluated. These may be boundary zones, interior surfaces, or user-defined surfaces such as line surfaces, intersections, or extracted curves.y_axis_function (
str|VariableDescriptor) – The scalar field whose values are plotted on the Y-axis of the plot. Examples include"temperature","pressure","velocity-magnitude", or any available field in the solver.solver (
FluentSession,optional) – Active Fluent session. IfNone, the parent container or base class determines the session.**kwargs (
dict) – Additional keyword arguments forwarded toGraphics(session).XYPlots.create()or handled by the base class.
Examples
>>> from ansys.fluent.visualization import XYPlot >>> xy_plot = XYPlot( >>> solver=solver_session, >>> surfaces=["outlet"], >>> y_axis_function="temperature", >>> )
- __init__(surfaces, y_axis_function, solver=None, local_surfaces_provider=None, **kwargs)#
__init__ method of XYPlot class.
- get_field_data()#
Exposes 2d plot data data.