Contour#
- class ansys.fluent.visualization.Contour(field, surfaces, solver=None, **kwargs)#
Bases:
_GraphicsContainerContour visualization object.
The
Contourclass represents a Fluent contour plot of a scalar field drawn over one or more surfaces. Contours are commonly used to visualize variations in temperature, pressure, velocity magnitude, turbulence quantities, or any other field available in the solver.- Parameters:
- field
strorVariableDescriptor Name of the scalar field to be contoured. This defines the quantity used for color interpolation across the specified surfaces.
- surfaces
listofstr List of Fluent surfaces on which the contour is displayed. Surfaces may be boundary zones, interior surfaces, or custom surfaces such as iso-surfaces or plane surfaces.
- solver
FluentSession,optional Active Fluent session. If
None, the parent class or container determines the session.- **kwargs
dict Additional keyword arguments forwarded to
Graphics(session).Contours.create()or handled by the base class.
- field
Examples
>>> from ansys.fluent.visualization import Contour >>> # `solver_session` is a live Fluent session with a case >>> # and data which contains the following surfaces >>> temperature_contour_object = Contour( >>> solver=solver_session, field="temperature", surfaces=["in1", "in2", "in3",] >>> )
- __init__(field, surfaces, solver=None, **kwargs)#
__init__ method of Contour class.