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

how to solve the problem of "Error: The UDF library you are trying to load (libudf) "

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2023, 06:52
Default how to solve the problem of "Error: The UDF library you are trying to load (libudf) "
  #1
New Member
 
Lianggen Shao
Join Date: Mar 2023
Posts: 3
Rep Power: 3
Melancholy is on a distinguished road
hey!guys, i am new in fluent,so i am so confused when the message "Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64)."show firstly.
may anyone can help me to find the mistakes i have done in the UDF or somewhere,pelase bro.
Melancholy is offline   Reply With Quote

Old   March 3, 2023, 06:57
Default
  #2
New Member
 
Lianggen Shao
Join Date: Mar 2023
Posts: 3
Rep Power: 3
Melancholy is on a distinguished road
Quote:
Originally Posted by Melancholy View Post
hey!guys, i am new in fluent,so i am so confused when the message "Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64)."show firstly.
may anyone can help me to find the mistakes i have done in the UDF or somewhere,pelase bro.
hey guys,i have find so many thread before,and someone think the errors in UDF maybe the reason for "Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64)."
so,i give the UDF code and the message from fluent after building the UDF.
the code:
#include "udf.h"

DEFINE_PROFILE(u_velocity,t,i)

{
real x[ND,ND];
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTRIOD(x,f,t);
y=x[1];
F_PROFILE(f,t,i)=20+y^2;
}
end_f_loop(f,t)
}


the message from fluent:



"F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\text.c" is not found Copied F:/CFD Simulation/to confirm how to connect the visual studio and fluent/11_files/dp0/FFF/Fluent/text.c to libudf\src
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\sconstruct.udf "libudf\win64\3ddp_host\SConstruct" ")
????? 1 ???????
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\scons_default.bat "libudf\win64\3ddp_host\scons_test.bat" ")
????? 1 ???????
Creating user_nt.udf file for 3ddp_host ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3ddp_host\makefile" ")
????? 1 ???????
(chdir "libudf")(chdir "win64\3ddp_host")
F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_h ost>rem

F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_h ost>rem Copyright 1987-2021 ANSYS, Inc. All Rights Reserved.

F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_h ost>rem
???? x64 ?? Microsoft (R) C/C++ ????????? 19.00.23026 ??
???????(C) Microsoft Corporation???????????????

?��?: cl [ ???... ] ?????... [ /link ???????... ]

Microsoft (R) ?????????��??? 14.00.23026.0 ??
??????? (C) Microsoft Corporation?? ?????????????

NMAKE : fatal error U1073: ????????????��?..\..\src\text.c??
Stop.
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\sconstruct.udf "libudf\win64\3ddp_node\SConstruct" ")
????? 1 ???????
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\scons_default.bat "libudf\win64\3ddp_node\scons_test.bat" ")
????? 1 ???????
Creating user_nt.udf file for 3ddp_node ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3ddp_node\makefile" ")
????? 1 ???????
(chdir "libudf")(chdir "win64\3ddp_node")
F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_n ode>rem

F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_n ode>rem Copyright 1987-2021 ANSYS, Inc. All Rights Reserved.

F:\CFD Simulation\to confirm how to connect the visual studio and fluent\11_files\dp0\FFF\Fluent\libudf\win64\3ddp_n ode>rem
???? x64 ?? Microsoft (R) C/C++ ????????? 19.00.23026 ??
???????(C) Microsoft Corporation???????????????

?��?: cl [ ???... ] ?????... [ /link ???????... ]

Microsoft (R) ?????????��??? 14.00.23026.0 ??
??????? (C) Microsoft Corporation?? ?????????????

NMAKE : fatal error U1073: ????????????��?..\..\src\text.c??
Stop.

Done.
Melancholy is offline   Reply With Quote

Reply

Tags
compile error, udf - warning c2223

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the gxu2 Fluent UDF and Scheme Programming 13 August 10, 2018 17:38
Problem loading UDF in Linux environment hjan23 FLUENT 0 December 15, 2017 04:09
Can I use UDF function to solve this problem? bright181 Fluent UDF and Scheme Programming 3 December 10, 2010 04:46
extremely simple problem... can you solve it properly? Mikhail Main CFD Forum 40 September 9, 1999 09:11


All times are GMT -4. The time now is 08:44.