7.2.2. Faces at Partition Boundaries

There are three classifications of faces in a partitioned mesh: interior, boundary zone, and external (Figure 7.7: Partitioned Mesh: Faces). Interior faces have two neighboring cells. Interior faces that lie on a partition boundary are referred to as “partition boundary faces.” Boundary zone faces lie on a physical mesh boundary and have only one adjacent cell neighbor. External faces are non-partition boundary faces that belong to exterior cells. External faces are generally not used in parallel UDFs and, therefore, will not be discussed here.

Figure 7.7:  Partitioned Mesh: Faces

Partitioned Mesh: Faces

Note that each partition boundary face is duplicated on adjacent compute nodes (Figure 7.2: Partitioned Mesh Distributed Between Two Compute Nodes). This is necessary so that each compute node can calculate its own face values. However, this duplication can result in face data being counted twice when UDFs are involved in operations that involve summing data in a thread that contains partition boundary faces. For example, if your UDF sums data over all of the faces in a mesh, then as each node loops over its faces, duplicated partition boundary faces can be counted twice. For this reason, one compute node in every adjacent set is assigned by ANSYS Fluent as the "principal" compute node, with respect to partition boundary faces. In other words, although each face can appear on one or two partitions, it can only “officially” belong to one of them. The Boolean macro PRINCIPAL_FACE_P(f,t) returns TRUE if the face f is a principal face on the current compute node.


Release 18.2 - © ANSYS, Inc. All rights reserved.