Mesh#
- class ansys.fluent.visualization.Mesh(surfaces, show_edges=False, solver=None, **kwargs)#
Bases:
_GraphicsContainerMesh 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,optional If
True, mesh edges are drawn. IfFalse(default), the mesh is shown without explicit edge highlighting.- solver
FluentSession,optional Active Fluent session. If
None, the parent container determines the session.- **kwargs
dict Additional keyword arguments forwarded to
Graphics(session).Mesh.create()or handled by the base class.
- surfaces
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.