-
-
January 16, 2023 at 11:05 am
babak.aghel
SubscriberI am using Fluent 2020 R1 on a Windows 10 Education to run a 3D transient circulating fluidized bed simulation. I created a UDF to predict the flow behavior for each cell in the simulation.
Until last week, the UDF source code worked without any problems, but today it has failed. The issue I am having is when I try loading the UDF after building it, it gives me Error code: 126. Could you please help me resolve this issue?
Thank you in advance.
-
January 16, 2023 at 11:56 am
Amine Ben Hadj Ali
Ansys EmployeeIs it same machine? Copy the case file into a new folder. Same with the *.c file. Start Ansys Fluent, compile but do not load, then read the case file. I am assuming you are using the built-in compiler.
-
January 16, 2023 at 12:18 pm
babak.aghel
SubscriberYes, I am using the built-in compiler on the same machine. I followed your suggestion but It did not work.
-
January 16, 2023 at 12:29 pm
Amine Ben Hadj Ali
Ansys EmployeePlease update first to a recent Fluent version and try again (choosing explicelty the built-in compiler). Otherwise try using a compatible Visual Studio Compiler.
-
-
-
February 2, 2023 at 9:52 am
-
February 2, 2023 at 10:35 am
Amine Ben Hadj Ali
Ansys EmployeePlease just first test if you can compile a simple UDF which does on demand print "Hello World!\n".
-
February 3, 2023 at 9:16 am
-
February 3, 2023 at 10:02 am
Amine Ben Hadj Ali
Ansys EmployeePlease try putting that UDF file in a path without any blank spaces.
-
February 3, 2023 at 1:47 pm
-
February 3, 2023 at 2:01 pm
Amine Ben Hadj Ali
Ansys EmployeeIs there a log file?
-
February 3, 2023 at 2:02 pm
Amine Ben Hadj Ali
Ansys EmployeeAre you getting the error while compiling or while loading?
-
February 3, 2023 at 2:04 pm
Amine Ben Hadj Ali
Ansys Employeeplease remove any libudf in the directory before trying to compile and then to load the libudf.
-
February 7, 2023 at 10:33 am
babak.aghel
SubscriberThe error appeared when I loaded although I can see some warnings during compiling. Before comparing the new UDF I usually remove it.Â
-
February 7, 2023 at 10:55 am
Amine Ben Hadj Ali
Ansys EmployeeYou wrote that before you were able to compile and to load the compiled libudf. Then something happened on your computer and you cannot compile anymore. Is this correct? Can you check what happened to your computer? In an empty directly where you do just have the simple UDF file and if you compile with Ansys Fluent Built-In Compiler -> Any log files written?
-
February 13, 2023 at 10:26 am
babak.aghel
SubscriberYes at the first I could compile but not now. Nothing new has happened on my computer, such as installing new software. I tried your suggestion but there is no log file written.
-
February 13, 2023 at 1:56 pm
Amine Ben Hadj Ali
Ansys EmployeeIt is bit hard at this stage to figure out what is going wrong on your machine without having to look into your machine and check what is going on. There should be something which changed from one day to another. Perhaps you paste the Fluent Launcher and where the UDF bat is located and perhaps a process explorer is required to check which processes are invoked and which are blocked.
-
- The topic ‘error code: 126’ is closed to new replies.
-
4673
-
1565
-
1386
-
1231
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.


