6.1.7. Hooking DEFINE_RW_FILE and DEFINE_RW_HDF_FILE UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_RW_FILE or DEFINE_RW_HDF_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.11: The User-Defined Function Hooks Dialog Box).

 Parameters & Customization → User Defined Functions  Function Hooks...

Figure 6.11:  The User-Defined Function Hooks Dialog Box

The User-Defined Function Hooks Dialog Box

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.12: The Read Case Functions Dialog Box).

Figure 6.12:  The Read Case Functions Dialog Box

The Read Case Functions Dialog Box

Select the function(s) you want 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 (for example, 2 selected). Click OK in the User-Defined Function Hooks dialog box to apply the settings.

See DEFINE_RW_FILE and DEFINE_RW_HDF_FILE for details about defining DEFINE_RW_FILE and DEFINE_RW_HDF_FILE functions.


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