We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General

General

How to use C++ code in Ansys Fluent UDFs?

    • FAQFAQ
      Participant

      Since Fluent 18.0 it is possible to use C++ code in a User-Defined Function (UDF). When compiling the source code from within Fluent, it sets the compiler flags automatically based on the file extension. When the source files have the file extension *.cpp the flags are set for C++. When the file extension is just *.c it uses flags for C99. The supported C++ standard depends on the used compiler and can not be influenced from within Fluent when using gcc on Linux or Visual Studio on Windows. Keywords: Fluent; UDF; user-defined function; functions; C++; Cpp; standard; version