mesh#
Public mesh models returned by FieldData.get_mesh().
Classes:
|
Enumeration of cell element topologies supported by the Fluent mesh. |
|
A single mesh cell containing topology and connectivity information. |
|
A face of a polyhedral mesh element, defined by its node indices. |
|
Computational mesh for a Fluent zone, containing nodes and elements. |
|
A single mesh node with its spatial coordinates. |
|
Metadata describing a mesh zone in the Fluent solver. |
|
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:
EnumEnumeration 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:
objectA 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 ofFacetobjects infacets.- Attributes:
- _id
int Integer element ID assigned by the Fluent solver.
- element_type
CellElementType Shape of the element; see
CellElementType.- node_indices
list[int] Zero-based indices into
Mesh.nodesfor standard elements. Empty for polyhedral elements.- facets
list[Facet] Faces of the element for
CellElementType.POLYHEDRONelements. Empty for standard elements.
- _id
Attributes:
-
element_type:
CellElementType#
- class ansys.fluent.core.fields.field_data.mesh.Facet(node_indices)#
Bases:
objectA face of a polyhedral mesh element, defined by its node indices.
Used only for
CellElementType.POLYHEDRONelements; standard element types store connectivity directly onElementvianode_indices.- Attributes:
- node_indices
list[int] Zero-based indices into the
Mesh.nodesarray for the nodes that form this facet.
- node_indices
Attributes:
- class ansys.fluent.core.fields.field_data.mesh.Mesh(nodes, elements)#
Bases:
objectComputational mesh for a Fluent zone, containing nodes and elements.
Returned by
LiveFieldData.get_mesh(). Thenodesarray provides spatial coordinates indexed from 0, and theelementsarray stores connectivity referencing those node indices.- Attributes:
Attributes:
- class ansys.fluent.core.fields.field_data.mesh.Node(_id, x, y, z)#
Bases:
objectA single mesh node with its spatial coordinates.
- Attributes:
Attributes: