Contour#
- class ansys.fluent.visualization.Contour(field, surfaces, solver=None, **kwargs)#
Bases:
GraphicsObjectContour 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 (
str|VariableDescriptor) – Name of the scalar field to be contoured. This defines the quantity used for color interpolation across the specified surfaces.surfaces (
list[str]) – 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. IfNone, the parent class or container determines the session.**kwargs (
dict) – Additional keyword arguments forwarded toGraphics(session).Contours.create()or handled by the base class.
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.