You can store values computed by your UDF in memory so that they can be retrieved later, either by a UDF or for postprocessing within ANSYS Fluent. In order to have access to this memory, you will need to allocate memory by specifying the Number of User-Defined Memory Locations and Number of User-Defined Node Memory Locations in the User-Defined Memory dialog box (Figure 6.13: The User-Defined Memory Dialog Box).
Parameters & Customization → User Defined Memory
Edit...
The macros C_UDMI, F_UDMI, or N_UDMI can be used in your UDF to access
a particular user-defined memory location in a cell, face, or node.
See Cell Macros and Face Macros for details.
Field values that have been stored in user-defined memory or user-defined node memory will be saved to the data file. These fields will also appear in the User Defined Memory... category in the drop-down lists in ANSYS Fluent’s postprocessing dialog boxes. They will be named User Memory 0, User Memory 1, and so on, and User Node Memory 0, User Node Memory 1, and so on, based on the memory and node memory location index, respectively. The total number of memory locations is limited to 500. For large numbers of user-defined memory locations, system memory requirements will increase.