mesh#

Public mesh models returned by FieldData.get_mesh().

Classes:

CellElementType(value[, names, module, ...])

Enumeration of cell element topologies supported by the Fluent mesh.

Element(_id, element_type[, node_indices, ...])

A single mesh cell containing topology and connectivity information.

Facet(node_indices)

A face of a polyhedral mesh element, defined by its node indices.

Mesh(nodes, elements)

Computational mesh for a Fluent zone, containing nodes and elements.

Node(_id, x, y, z)

A single mesh node with its spatial coordinates.

ZoneInfo(_id, name, zone_type)

Metadata describing a mesh zone in the Fluent solver.

ZoneType(value[, names, module, qualname, ...])

Enumeration of zone types that classify mesh zones in the Fluent solver.

class ansys.fluent.core.fields.field_data.mesh.CellElementType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Enumeration of cell element topologies supported by the Fluent mesh.

Each member corresponds to a standard finite-volume cell shape. The number of nodes and faces for each type is noted in the member comments.

Attributes:

GHOST = 8#
HEXAHEDRON = 4#
POLYHEDRON = 7#
PYRAMID = 5#
QUADRATIC_HEXAHEDRON = 10#
QUADRATIC_PYRAMID = 11#
QUADRATIC_TETRAHEDRON = 9#
QUADRATIC_WEDGE = 12#
QUADRILATERAL = 3#
TETRAHEDRON = 2#
TRIANGLE = 1#
WEDGE = 6#
class ansys.fluent.core.fields.field_data.mesh.Element(_id, element_type, node_indices=<factory>, facets=<factory>)#

Bases: object

A single mesh cell containing topology and connectivity information.

For standard element types (e.g. hexahedron, tetrahedron), connectivity is stored in node_indices. For polyhedral elements, connectivity is stored as a list of Facet objects in facets.

Attributes:
_idint

Integer element ID assigned by the Fluent solver.

element_typeCellElementType

Shape of the element; see CellElementType.

node_indiceslist[int]

Zero-based indices into Mesh.nodes for standard elements. Empty for polyhedral elements.

facetslist[Facet]

Faces of the element for CellElementType.POLYHEDRON elements. Empty for standard elements.

Attributes:

element_type: CellElementType#
facets: list[Facet]#
node_indices: list[int]#
class ansys.fluent.core.fields.field_data.mesh.Facet(node_indices)#

Bases: object

A face of a polyhedral mesh element, defined by its node indices.

Used only for CellElementType.POLYHEDRON elements; standard element types store connectivity directly on Element via node_indices.

Attributes:
node_indiceslist[int]

Zero-based indices into the Mesh.nodes array for the nodes that form this facet.

Attributes:

node_indices: list[int]#
class ansys.fluent.core.fields.field_data.mesh.Mesh(nodes, elements)#

Bases: object

Computational mesh for a Fluent zone, containing nodes and elements.

Returned by LiveFieldData.get_mesh(). The nodes array provides spatial coordinates indexed from 0, and the elements array stores connectivity referencing those node indices.

Attributes:
nodeslist[Node]

Ordered list of Node objects; element connectivity uses zero-based indices into this list.

elementslist[Element]

List of Element objects describing cell topology and connectivity.

Attributes:

elements: list[Element]#
nodes: list[Node]#
class ansys.fluent.core.fields.field_data.mesh.Node(_id, x, y, z)#

Bases: object

A single mesh node with its spatial coordinates.

Attributes:
_idint

Integer node ID assigned by the Fluent solver.

xfloat

X-coordinate of the node in the solver’s length unit.

yfloat

Y-coordinate of the node in the solver’s length unit.

zfloat

Z-coordinate of the node in the solver’s length unit.

Attributes:

x

y

z

x: float#
y: float#
z: float#
class ansys.fluent.core.fields.field_data.mesh.ZoneInfo(_id, name, zone_type)#

Bases: object

Metadata describing a mesh zone in the Fluent solver.

Attributes:
_idint

Integer zone ID assigned by the Fluent solver.

namestr

Name of the zone as defined in the Fluent case.

zone_typeZoneType

Whether the zone is a cell zone or a face zone.

Attributes:

name: str#
zone_type: ZoneType#
class ansys.fluent.core.fields.field_data.mesh.ZoneType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Enumeration of zone types that classify mesh zones in the Fluent solver.

Attributes:

CELL = 1#
FACE = 2#