TAGGED: udf, udf-compiler-problem, udf-error
-
-
November 25, 2025 at 10:43 pm
salixb
SubscriberI was using ANSYS Fluent 2023 and recently had to move to the Fluent 2025 R2. I had no problem using the UDF with the previous version of the software, but now am unable to compile/build the UDF.Â
-
November 26, 2025 at 9:52 am
Rob
Forum ModeratorTry with the built in compiler. I can't remember any significant macro changes, but that would likely show up in the build error messages too.Â
-
November 27, 2025 at 12:05 am
salixb
SubscriberHi Rob,Â
I tried with the built in compilier and get the following error: lld-link: error: undefined symbol. I am just confused as I had no problem with the .c file with the 2023 version of Fluent.Â
Thanks!Â
-
November 27, 2025 at 9:51 am
Rob
Forum ModeratorAll the files are in the same folder, and you're running Fluent standalone? Please can you post the actual error with all the text that's generated? Fluent's messages are usually quite long, and it's common to need to see the whole lot to diagnose.Â
-
November 27, 2025 at 6:34 pm
salixb
SubscriberAll the files are in the same folder. I am running Fluent from workbench.Â
Here is the error:Â
Copyright 1987-2025 ANSYS, Inc. All Rights Reserved.
Compiler and linker: Clang (builtin)
Compiler path: "C:\PROGRA~1\ANSYSI~1\v252\fluent"\ntbin\clang\bin\clang-cl
Linker path: "C:\PROGRA~1\ANSYSI~1\v252\fluent"\ntbin\clang\bin\lld-link
C sources: ['force_liu.c']
lld-link: error: undefined symbol: P_DIAM
>>> referenced by force_liu.obj:(LiuDrag)
>>> referenced by force_liu.obj:(wangdrag)
>>> referenced by force_liu.obj:(myBrownian)
Â
lld-link: error: undefined symbol: P_RHO
>>> referenced by force_liu.obj:(myBrownian)
Â
lld-link: error: undefined symbol: P_DT
>>> referenced by force_liu.obj:(myBrownian)
Â
lld-link: error: undefined symbol: P_TIME
>>> referenced by force_liu.obj:(myBrownian)
scons: *** [libudf.dll] Error 1
Â
Done.
-
November 28, 2025 at 11:53 am
Rob
Forum ModeratorP_DIAM and not PP_ or TP_ ?Â
-
- You must be logged in to reply to this topic.
- 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
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Issue to compile a UDF in ANSYS Fluent
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
4387
-
1494
-
1375
-
1209
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.