![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_RW_FILE UDF, it is ready to be hooked to ANSYS FLUENT. Note that you can hook multiple read/write file UDFs to your model, if desired.
To hook the UDF to ANSYS FLUENT, open the User-Defined Function Hooks dialog box. (Figure 6.1.11)
Define
User-Defined
Function Hooks...
You have the choice of hooking a UDF to read and write a case and data file. Below is a description of what each function does.
To hook a read case file UDF, for example, click the Edit... button next to Read Case to open the Read Case Functions dialog box (Figure 6.1.12).
Select the function(s) you wish to hook to your model from the Available Read Case Functions list. Click Add and then OK to close the dialog box. The name of the function you selected will be displayed in the Read Case field of the User-Defined Function Hooks dialog box. If you select more than one function, the number will be displayed (e.g., 2 selected). Click OK in the User-Defined Function Hooks dialog box to apply the settings.
See Section 2.2.10 for details about defining DEFINE_RW_FILE functions.