[ANSYS, Inc. Logo] return to home search
next up previous contents index

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.2.1 and Table  3.2.2 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.



Node Position



Table 3.2.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



Number of Nodes in a Face ( F_NNODES)


The macro F_NNODES shown in Table  3.2.2 returns the integer number of nodes associated with a face.


Table 3.2.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


next up previous contents index Previous: 3.2.1 Axisymmetric Considerations for
Up: 3.2 Data Access Macros
Next: 3.2.3 Cell Macros
Release 12.0 © ANSYS, Inc. 2009-01-14