6.1.2. Hooking DEFINE_DELTAT UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DELTAT UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Adaptive Time Step Settings dialog box (Figure 6.3: The Adaptive Time Step Settings Dialog Box) in ANSYS Fluent.

To hook the UDF to ANSYS Fluent, right-click the General branch of the tree and select Transient from the Analysis Type sub-menu.

 Setup → General  Analysis Type → Transient

Then open the Run Calculation task page.

 Solution →   Run Calculation

Select Adaptive in the Time Stepping Method drop-down list, and click the Settings... button to open the Adaptive Time Step Settings dialog box (Figure 6.3: The Adaptive Time Step Settings Dialog Box).

Figure 6.3:  The Adaptive Time Step Settings Dialog Box

The Adaptive Time Step Settings Dialog Box

Select the function name (for example, mydeltat::libudf) in the User-Defined Time Step drop-down list and click OK.


Important:  Note that when you are using the VOF Multiphase Model, you will need to select Variable as the Time Stepping Method in the Run Calculation task page, and then hook the time step UDF in the Variable Time Step Setting dialog box in a similar manner to the Adaptive Time Step Settings dialog box.


See DEFINE_DELTAT for details about defining DEFINE_DELTAT functions.


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