1.8. UDF Calling Sequence in the Solution Process

UDFs are called at predetermined times in the ANSYS Fluent solution process. However, they can also be executed asynchronously (or “on demand”) using a DEFINE_ON_DEMAND UDF. If a DEFINE_EXECUTE_AT_END UDF is used, then ANSYS Fluent calls the function at the end of an iteration. A DEFINE_EXECUTE_AT_EXIT is called at the end of an ANSYS Fluent session while a DEFINE_EXECUTE_ON_LOADING is called whenever a UDF compiled library is loaded. Understanding the context in which UDFs are called within ANSYS Fluent’s solution process may be important when you begin the process of writing UDF code, depending on the type of UDF you are writing. The solver contains call-outs that are linked to user-defined functions that you write. Knowing the sequencing of function calls within an iteration in the ANSYS Fluent solution process can help you determine which data are current and available at any given time.

For more information, see the following:


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