-
-
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
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.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script Error
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
- Running ANSYS Fluent on a HPC Cluster
- Point exception in erosion calculation
-
1932
-
823
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.