Contour#

class ansys.fluent.visualization.Contour(field, surfaces, solver=None, **kwargs)#

Bases: _GraphicsContainer

Contour visualization object.

The Contour class 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:
fieldstr or VariableDescriptor

Name of the scalar field to be contoured. This defines the quantity used for color interpolation across the specified surfaces.

surfaceslist of 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.

solverFluentSession, optional

Active Fluent session. If None, the parent class or container determines the session.

**kwargsdict

Additional keyword arguments forwarded to Graphics(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.