UDF Manual
January 2005
Copyright c 2005 by Fluent Inc. All rights reserved. No part of this document may be reproduced or otherwise used in any form without express written permission from Fluent Inc.
Airpak, FIDAP, FLUENT, FloWizard, GAMBIT, Icemax, Icepak, Icepro, MixSim, and POLYFLOW are registered trademarks of Fluent Inc. All other products or name brands are trademarks of their respective holders. CHEMKIN is a registered trademark of Reaction Design Inc. Portions of this program include material copyrighted by PathScale Corporation 2003-2004.
Fluent Inc. Centerra Resource Park 10 Cavendish Court Lebanon, NH 03766
About This Document
User-defined functions (UDFs) allow you to customize FLUENT and can significantly enhance its capabilities. This UDF Manual presents detailed information on how to write, compile, and use UDFs in FLUENT. Examples have also been included, where available. Information in this manual is presented in the following chapters: • Chapter 1: Overview • Chapter 2: C Programming Basics for UDFs • Chapter 3: A Step-by-Step UDF Example • Chapter 4: Defining a UDF Using a DEFINE Macro • Chapter 5: Macros for Accessing FLUENT Solver Variables • Chapter 6: UDF Utilities • Chapter 7: Interpreting UDF Source Files • Chapter 8: Compiling UDF Source Files • Chapter 9: Hooking Your UDF to FLUENT • Chapter 10: Parallel UDF Usage • Chapter 11: User-Defined Scalar (UDS) Transport Modeling • Chapter 12: Sample Problems
This document provides some basic information about the C programming language as it relates to UDFs in FLUENT and assumes that you have some programming experience with C. If you are unfamiliar with C, please consult a C language reference (e.g., [2]) for basic information. This document does not imply responsibility on the part of Fluent Inc. for the accuracy or stability of solutions obtained using UDFs that are either user-generated or provided by Fluent Inc. Support for current license holders will be
Bibliography: c Fluent Inc. January 11, 2005 Bib-1 c Fluent Inc. January 11, 2005 Index c Fluent Inc. January 11, 2005 Index-1 c Fluent Inc. January 11, 2005 Index c Fluent Inc. January 11, 2005 Index-3 c Fluent Inc. January 11, 2005 Index c Fluent Inc. January 11, 2005 Index-5 c Fluent Inc. January 11, 2005 Index