2.2. General Purpose DEFINE Macros

The DEFINE macros presented in this section implement general solver functions that are independent of the model(s) you are using in ANSYS Fluent. Table 2.1: Quick Reference Guide for General Purpose DEFINE Macros provides a quick reference guide to these DEFINE macros, the functions they are used to define, and the dialog boxes where they are activated or “hooked" to ANSYS Fluent. Definitions of each DEFINE macro are contained in udf.h can be found in Appendix B: DEFINE Macro Definitions.

Table 2.1:  Quick Reference Guide for General Purpose DEFINE Macros

Function

DEFINE Macro

Dialog Box Activated In

manipulates variables

DEFINE_ADJUST

User-Defined Function Hooks

time step size (for time dependent solutions)

DEFINE_DELTAT

Adaptive Time Step Settings

executes at end of iteration

DEFINE_EXECUTE_AT_END

User-Defined Function Hooks

executes at end of an ANSYS Fluent session

DEFINE_EXECUTE_AT_EXIT

User-Defined Function Hooks

executes from a user- defined Scheme routine

DEFINE_EXECUTE_FROM_GUI

N/A

executes when a UDF library is loaded

DEFINE_EXECUTE_ON_LOADING

N/A

executes after a case file is read

DEFINE_EXECUTE_AFTER_CASE

N/A

executes after a data file is read

DEFINE_EXECUTE_AFTER_DATA

N/A

initializes variables

DEFINE_INIT

User-Defined Function Hooks

executes asynchronously

DEFINE_ON_DEMAND

Execute On Demand

returns a value for a user defined report definition

DEFINE_REPORT_DEFINITION_FN

User Defined Report Definition

reads/writes variables to case and data files

DEFINE_RW_FILE

User-Defined Function Hooks



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