TAGGED: udf-compilation
-
-
August 11, 2026 at 10:57 am
a.y.al-wardi
SubscriberI have a transient Fluent simulation with a compiled UDF (`decomp_fff1.c`) that has been successfully compiled and loaded on my Windows workstation. The UDF function is `ozone_decomposition_source` and is assigned to the appropriate cell zone.ÂI now want to run the same case on an HPC cluster (Eddie), where Fluent runs on Linux.ÂI understand that the Windows `libudf` should not be transferred to the Linux cluster and that the `.c` source file should instead be compiled on Eddie to generate a Linux-compatible `libudf`.ÂWhat is the recommended way to include the UDF compilation/loading in a Fluent journal (`.jou`) so that the UDF is automatically compiled and loaded when the case is submitted as a non-interactive HPC job?**ÂI have recorded the compilation process on Windows, but Fluent generates `cx-gui-do` commands such as:Â `(cx-gui-do cx-activate-item "Compiled UDFs*Frame8*PushButton2(Build)")`Â rather than a simple TUI command.ÂIs there a recommended TUI/journal command for compiling a `.c` UDF on Linux?ÂThank you!Â
-
August 11, 2026 at 12:47 pm
Rob
Channel PartnerUse a TUI (console) journal. Click into the console and press
to open a menu type it in and hit   To move up a menu level use q (Q). The Search tool in the top right is also helpful for finding things. The command is likely under /define/user-defined  and always use the full command preceded by the / Â
Â
-
August 11, 2026 at 1:00 pm
abhiroy
SubscriberHello,Â
You can use the following command to compile the UDFÂ
/
define/user-defined/compiled-functions compile libudf Yes sample_udf.c ""Â
Then use following command to load the libraryÂ
/
define/user-defined/compiled-functions load libudfÂ
-
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Innovation Space
Trending discussions
Top Contributors
-
6880
-
1906
-
1544
-
1344
-
1217
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.