-
-
September 27, 2017 at 11:19 am
nselvara
Ansys EmployeeHow can I compile and load a UDF when running Fluent via a journal file?
-
October 17, 2017 at 7:39 am
Arun Kumar
Ansys EmployeeThere are two commands needed. The first to compile the UDF: /define/user-defined/compiled-functions compile libudf yes sourcename.c "" And the second to load the library that was compiled in the previous step: /define/user-defined/compiled-funcitons load libudf Note that 'sourcename.c' is the name of your UDF file and the "" are two quotation marks in sequence (needed to terminate the string array input to Fluent).
-
October 26, 2022 at 11:40 pm
yfeng4
SubscriberIf I want to compile multiple c codes, can I write /define/user-defined/compiled-functions compile libudf yes sourcename1.c  sourcename2.c sourcename3.c"" ? Or what should be the correct format?Â
Thank you.Â
-
May 29, 2023 at 8:34 pm
TONY ARHUR
Subscriberi am getting this error "
rotating_screws.c(2,10): fatal error: 'motion.h' file not found
#include "motion.h"
^~~~~~~~~~
1 warning and 1 error generated.
scons: *** [rotating_screws.obj] Error 1
please i need help
-
November 3, 2023 at 4:31 am
Gentle Prose Techie
SubscriberÂ
Maybe you can check this video out:
It shows the process of recording the compilation and loading steps in a journal and running the journal. If you just want the code, you can see it at 55 seconds into the video. Hope this helps!
Â
-
- The topic ‘Compile and load a UDF when running Fluent via a journal file’ is closed to new replies.
- JACOBI Convergence Issue in ANSYS AQWA
- Is it able to solve turbomachinery using density-based solver in Fluent?
- Two-way FSI simulation
- Ensight Force_per_unit area_EV
- RIBBON WINDOW DISAPPEARED
- Fluent Meshing Error when .dsco not .stp
- Ansys Fluent for modelling Ocean Wave reactions to Wave Barriers
- Battery Pack cooling
- ISAT ABORT error
- UNASSIGNED INTERFACE ZONE DETECTED FOR INTERFACE…
-
4592
-
1494
-
1386
-
1209
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.