1. The Contents of This Manual

User-defined functions (UDFs) allow you to customize Ansys Fluent and can significantly enhance its capabilities. Part 1 of the Ansys Fluent Customization Manual presents detailed information on how to write, compile, and use UDFs in Ansys Fluent. Examples have also been included, where available. General information about C programming basics is included in an appendix.

Learning to customize the Ansys Fluent user interface to build your own graphical user interface (GUI) will allow you to easily change critical data being used by your UDF at will. Part 2 of the Ansys Fluent Customization Manual will walk you through the process of creating a customized addition to the Ansys Fluent user interface through the use of Scheme macros. General information about Scheme programming basics is included in chapter 1 of part 2.


Important:  Under U.S. and international copyright law, ANSYS, Inc. is unable to distribute copies of the papers listed in the bibliography, other than those published internally by ANSYS, Inc. Use your library or a document delivery service to obtain copies of copyrighted papers.


Information in part 1 of this manual is presented in the following chapters:

Information in part 2 of this manual is presented in the following chapters:

This document provides some basic information about the C programming language (Part 1 Appendix A) as it relates to user-defined functions in Ansys Fluent, and assumes that you are an experienced programmer in C. If you are unfamiliar with C, consult a C language reference guide (for example, [6], [9]) before you begin the process of writing UDFs and using them in your Ansys Fluent model.

This document also provides some basic information about the Scheme programming language (Part 2 Chapter 1) as it relates to Fluent interface macros, and assumes that you are an experienced programmer in Scheme. If you are unfamiliar with Scheme, consult a Scheme language reference guide (for example http://www.scheme.com/tspl4/) before you begin the process of writing GUI code for use with your Fluent UDF.

This document does not imply responsibility on the part of ANSYS, Inc. for the accuracy or stability of solutions obtained using UDFs that are either user-generated or provided by ANSYS, Inc. Support for current license holders will be limited to guidance related to communication between a UDF and the Ansys Fluent solver. Other aspects of the UDF development process that include conceptual function design, implementation (writing C code), compilation and debugging of C source code, execution of the UDF, and function design verification will remain the responsibility of the UDF author.

UDF compiled libraries are specific to the computer architecture being used and the version of the Ansys Fluent executable being run and must be rebuilt any time Ansys Fluent is upgraded, your operating system changes, or the job is run on a different type of computer. Note that UDFs may need to be updated with new versions of Ansys Fluent.