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

6.1.8 User-Defined Memory Storage

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 in the User-Defined Memory dialog box (Figure  6.1.13).

Define $\rightarrow$ User-Defined $\rightarrow$ Memory...

Figure 6.1.13: The User-Defined Memory Dialog Box
figure

The macros C_UDMI or F_UDMI can be used in your UDF to access a particular user-defined memory location in a cell or face, respectively. See Sections  3.2.3 and 3.2.4 for details.

Field values that have been stored in user-defined memory will be saved to the data file when you next write one. 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, etc., based on the memory location index. The total number of memory locations is limited to 500. For large numbers of user-defined memory locations, system memory requirements will increase.


next up previous contents index Previous: 6.1.7 Hooking DEFINE_RW_FILE UDFs
Up: 6.1 Hooking General Purpose
Next: 6.2 Hooking Model-Specific UDFs
Release 12.0 © ANSYS, Inc. 2009-01-14