CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Error at host: Error code: 126

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2022, 15:23
Default Error at host: Error code: 126
  #1
New Member
 
Liu Wenchao
Join Date: Jan 2021
Posts: 15
Rep Power: 5
ChaoLW is on a distinguished road
Hi, everyone! I am working on udf in Fluent recently. Ansys fluent 2021r2, vs 2019 professional.

I faced this "Error at host: Error code:126" problem while loading the libudf.
Does anyone have any clue how to solve this problem?
I deleted the folder "libudf" and recompile it, it doesnt works.

Thanks a lot.
ChaoLW is offline   Reply With Quote

Old   August 26, 2022, 03:15
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
udf was compiled in other fluent version

you should compile it again,even though you say its not a solution -> you didn't recompile probably
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   August 26, 2022, 05:44
Default
  #3
New Member
 
Liu Wenchao
Join Date: Jan 2021
Posts: 15
Rep Power: 5
ChaoLW is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
udf was compiled in other fluent version

you should compile it again,even though you say its not a solution -> you didn't recompile probably
Thanks for your reply!
Here is the message from Ansys Fluent:
....
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj edc-scale.obj
link /Libpath:"D:\Program Files\ANSYS Inc\v212\fluent"\fluent21.2.0\win64\2ddp_node /Libpath:"D:\Program Files\ANSYS Inc\v212\fluent"\fluent21.2.0\multiport\win64\mpi\ shared /dll /out:libudf.dll udf_names.obj edc-scale.obj mport.lib fl_mpi2120.lib
Microsoft (R) Incremental Linker Version 14.28.29336.0
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp

Done.

DESKTOP-6CP1L1E: Opening library "D:\P.Marge et al\ukomega\Frolov4.edc.2016\libudf"...
Error at host: Error code: 126


Error: Error code: 126\n
Error Object: #f

I also attach the .c file below.
Is there something wrong with the compilation?
Attached Files
File Type: c edc-scale.c (447 Bytes, 3 views)
ChaoLW is offline   Reply With Quote

Old   August 26, 2022, 15:30
Default
  #4
New Member
 
Liu Wenchao
Join Date: Jan 2021
Posts: 15
Rep Power: 5
ChaoLW is on a distinguished road
Problem solved.

It's hard to know why. But I uninstall the 2021r2 and install 2019 version. UDF is successfully loaded.
ChaoLW is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating source term total cell-zone volume parallel computation RobV Fluent UDF and Scheme Programming 2 May 30, 2022 04:46
Host Node Allocation (-ssh and -cx) on Linux HPC bloodflow FLUENT 3 October 10, 2019 11:46
CFX parallel computing questions w784370882 CFX 3 January 1, 2019 01:40
Problem to run simpleFoam using qsub? be_inspired OpenFOAM 1 December 22, 2015 13:53
[OpenFOAM] Color display problem to view OpenFOAM results. Sargam05 ParaView 16 May 11, 2013 01:10


All times are GMT -4. The time now is 12:24.