3.2.2. Node Macros

A mesh in ANSYS Fluent is defined by the position of its nodes and how the nodes are connected. The macros listed in Table 3.1: Macros for Node Coordinates Defined in metric.h and Table 3.2: Macro for Number of Nodes Defined in mem.h can be used to return the real Cartesian coordinates of the cell node (at the cell corner) in SI units. The variables are available in both the pressure-based and the density-based solver. Definitions for these macros can be found in metric.h. The argument Node *node for each of the variables defines a node.

3.2.2.1. Node Position

Table 3.1:  Macros for Node Coordinates Defined in metric.h

Macro

Argument Types

Returns

NODE_X(node)

Node *node

real x coordinate of node

NODE_Y(node)

Node *node

real y coordinate of node

NODE_Z(node)

Node *node

real z coordinate of node


3.2.2.2. Number of Nodes in a Face (F_NNODES)

The macro F_NNODES shown in Table 3.2: Macro for Number of Nodes Defined in mem.h returns the integer number of nodes associated with a face.

Table 3.2:  Macro for Number of Nodes Defined in mem.h

Macro

Argument Types

Returns

F_NNODES(f,t)

face_t f, Thread *t

int number of nodes in a face



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