-
-
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
SubscriberMaybe 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.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- I am doing a corona simulation. But particles are not spreading.
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3862
-
1414
-
1221
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.