Mesh#
- class ansys.fluent.visualization.Mesh(surfaces, show_edges=False, solver=None, **kwargs)#
Bases:
GraphicsObjectMesh visualization object.
Creates a Fluent mesh graphic object on the specified surfaces. It is typically used to display the computational mesh with optional edge highlighting.
- Parameters:
surfaces (
list[str]) – List of Fluent surfaces on which the mesh should be displayed.show_edges (
bool) – IfTrue, mesh edges are drawn. IfFalse(default), the mesh is shown without explicit edge highlighting.solver (
FluentSession,optional) – Active Fluent session. IfNone, the parent container determines the session.**kwargs (
dict) – Additional keyword arguments forwarded toGraphics(session).Mesh.create()or handled by the base class.
Examples
>>> from ansys.fluent.visualization import Mesh >>> # `solver_session` is a live Fluent session with a case >>> # and data which contains the following surfaces >>> mesh = Mesh( >>> solver=solver_session, show_edges=True, surfaces=["in1", "in2", "in3"] >>> )
- __init__(surfaces, show_edges=False, solver=None, **kwargs)#
__init__ method of Mesh class.