Graphics#
- class ansys.fluent.visualization.graphics.graphics_objects.Graphics(session, post_api_helper=<class 'ansys.fluent.core.post_objects.post_helper.PostAPIHelper'>, local_surfaces_provider=None)#
This class provides access to
Graphics
object containers for a given session so that graphics objects can be created.Commands
Command
Summary
add_outline_mesh
Add a mesh outline.
get_path
Get container path.
In the following example, a Graphics
object is instantiated with a Fluent
session as its context. The Graphics
object is used to create a mesh,
contour, vector, and surface. The contour is then deleted.
from ansys.fluent.visualization import Graphics
graphics_session = Graphics(session)
#Create object
mesh1 = graphics_session.Meshes["mesh-1"]
contour1 = graphics_session.Contours["contour-1"]
vector1 = graphics_session.Vectors["vector-1"]
surface1 = graphics_session.Surfaces["surface-1"]
pathlines1 = graphics_session.Pathlines["pathlines-1"]
#Delete object
del graphics_session.Contours["contour-1"]