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

The UDF library you are trying to load (libudf) is not compiled for 3d on the current

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2016, 04:26
Default
  #21
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 10
yash.aesi is on a distinguished road
Thanks for quick reply ....I am sending you the code with line number for the better understanding.

Thanks ,
Sonu.
Attached Images
File Type: jpg error code lines.jpg (74.8 KB, 29 views)
yash.aesi is offline   Reply With Quote

Old   June 8, 2016, 05:59
Default
  #22
Senior Member
 
Join Date: Nov 2013
Posts: 1,913
Rep Power: 23
pakk will become famous soon enough
It looks like my guess was correct. You used the wrong style of commenting in line 67.
pakk is offline   Reply With Quote

Old   June 8, 2016, 06:19
Default
  #23
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 10
yash.aesi is on a distinguished road
ok, I will change those lines and will compile again.

Thanks Again.
yash.aesi is offline   Reply With Quote

Old   March 2, 2017, 10:36
Default
  #24
New Member
 
Join Date: Dec 2015
Location: Japan
Posts: 25
Rep Power: 7
kywong5 is on a distinguished road
Hi Pakk, I'm not able to compile UDF into fluent. Could I know where is the problem?

Copied c:\users\0wner\desktop ry ken/C:\Users\0wner\Desktop ry ken\ken.c to libudf\src
(system "copy "C:\PROGRA~1\ANSYSI~1\v140\fluent"\fluent14.0.0\sr c\makefile_nt.udf "libudf\win64\3d\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\3d")()
# Generating ud_io1.h

Done.

Opening library "c:\users\0wner\desktop\try ken\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the curent platform (win64).

The system cannot find the file specified.

c:\users\0wner\desktop ry ken\libudf\win64\3d\libudf.dll
Error Object: #f
kywong5 is offline   Reply With Quote

Old   March 2, 2017, 10:53
Default
  #25
Senior Member
 
Join Date: Nov 2013
Posts: 1,913
Rep Power: 23
pakk will become famous soon enough
The problem is that you foldername has a space in it. Fluent has a problem with folders with a space in the name. Copy everything to a different folder and work from there.
pakk is offline   Reply With Quote

Old   March 2, 2017, 11:11
Default
  #26
New Member
 
Join Date: Dec 2015
Location: Japan
Posts: 25
Rep Power: 7
kywong5 is on a distinguished road
Quote:
Originally Posted by pakk View Post
The problem is that you foldername has a space in it. Fluent has a problem with folders with a space in the name. Copy everything to a different folder and work from there.
Thank you, Pakk. I just tried it without a space in the folder name. I get the error as below:

Copied C:\Users\0wner\Desktop\ken/C:\Users\0wner\Desktop\ken\ken.c to libudf\src
(system "copy "C:\PROGRA~1\ANSYSI~1\v140\fluent"\fluent14.0.0\sr c\makefile_nt.udf "libudf\win64\3d\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\3d")()
# Generating ud_io1.h

Done.

Opening library "C:\Users\0wner\Desktop\ken\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the curent platform (win64).

The system cannot find the file specified.

C:\Users\0wner\Desktop\ken\libudf\win64\3d\libudf. dll
Error Object: #f
kywong5 is offline   Reply With Quote

Old   November 28, 2017, 04:54
Default udf compiled
  #27
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 10
elaf_2003 is on a distinguished road
Hi
I would like to compiled udf in Fluent 17.2 using Win10, 64.
I have got this error
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nC:\Users\hp\Desktop\udf1\libudf\win64\3d\libud f.dll
Error Object: #f
I have downloaded visual studio 2013 , with commend prompt tool vs 2012

can any body help me with this issue please
Regards,
Ahmed
elaf_2003 is offline   Reply With Quote

Old   November 28, 2017, 05:02
Default
  #28
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,757
Rep Power: 28
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by elaf_2003 View Post
Hi
I would like to compiled udf in Fluent 17.2 using Win10, 64.
I have got this error
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nC:\Users\hp\Desktop\udf1\libudf\win64\3d\libud f.dll
Error Object: #f
I have downloaded visual studio 2013 , with commend prompt tool vs 2012

can any body help me with this issue please
Regards,
Ahmed
try to press Functions --> compiled -> choose source file

best regards
AlexanderZ is offline   Reply With Quote

Old   November 28, 2017, 05:14
Default
  #29
Senior Member
 
Join Date: Nov 2013
Posts: 1,913
Rep Power: 23
pakk will become famous soon enough
Quote:
Originally Posted by elaf_2003 View Post
Hi
I would like to compiled udf in Fluent 17.2 using Win10, 64.
I have got this error
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nC:\Users\hp\Desktop\udf1\libudf\win64\3d\libud f.dll
Error Object: #f
I have downloaded visual studio 2013 , with commend prompt tool vs 2012

can any body help me with this issue please
Regards,
Ahmed
The error message tells you what you did, and what went wrong.

Quote:
"The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64)."[emphasis mine]
First keyword: load. This is the error message you get when you try to load the udf. Second keyword: not compiled. Your code is not compiled. The obvious solution for this: compile your code.
If you have problems compiling your code, show the message you get when you try to compile your code. Not the error message you get when you try to load your code.
pakk is offline   Reply With Quote

Old   November 28, 2017, 05:16
Default
  #30
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 10
elaf_2003 is on a distinguished road
Hi
Thanks a lot mate
Yes indeed I have done this, therefore I have got this error
I could not find the ali udf.dll file in the folder that generated after compiler
elaf_2003 is offline   Reply With Quote

Old   November 28, 2017, 15:04
Default udf compiled
  #31
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 10
elaf_2003 is on a distinguished road
Hi Pakk
Firstly, thanks for response.
When I Build Library I have got this message
(Copied C:\Users\hp\Desktop\udf1/C:\Users\hp\Desktop\udf1\fixtempvisc_304.c to libudf\src
Creating user_nt.udf file for 3d ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v172\fluent"\fluent17.2.0\sr c\udf\makefile_nt.udf "libudf\win64\3d\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3d")# Generating ud_io1.h
fixtempvisc_304.c
C:\PROGRA~1\ANSYSI~1\v172\fluent\fluent17.2.0\tgri d\src\hash.h(16) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory)

However, I have used this code before when I was using Fluent 14.5, also when I used interpret in stead of compiled the code went wrong.
It is important for me to use compile method because I have 4 udf in my case and as you know that impossible to run them by using interpret method.
If you have got this problem before and sort it out please guide me.
Kind regard,
Ahmed.
elaf_2003 is offline   Reply With Quote

Old   November 29, 2017, 06:12
Default
  #32
Senior Member
 
Join Date: Nov 2013
Posts: 1,913
Rep Power: 23
pakk will become famous soon enough
The compiler complains that it can not find the file "basetsd.h".
This file belongs to 'Microsoft Windows SDK'.

So the Fluent compiler does not know where to find files from SDK. You made an error in installing this, or using this.

I am no expert in SDK, so I can not help you with that, but I can guarantee you that the current problem that you see has nothing to do with the code inside your udf.

(By the way: if you put the four UDFs in one file, you might be able to interpret them all four at the same time. But in general, compiling is better, so it is useful to solve this problem.)
pakk is offline   Reply With Quote

Old   November 29, 2017, 09:17
Default
  #33
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 10
elaf_2003 is on a distinguished road
Hi Parkk
Thanks for this helpful information
I will re installing the vs 2013
I will let you know if it will be sorted
Regards
elaf_2003 is offline   Reply With Quote

Old   December 3, 2017, 00:52
Default udf compiled
  #34
New Member
 
elaf
Join Date: May 2013
Posts: 15
Rep Power: 10
elaf_2003 is on a distinguished road
Hi
I would like to inform you that my problem has been solved, I went through your suggestion. Just re instill VS 2012, it was missing program which is windows kit develop.
Thanks guys for helpful advice.
Best wishes to all.
pakk and kywong5 like this.
elaf_2003 is offline   Reply With Quote

Old   December 20, 2017, 17:18
Default
  #35
Senior Member
 
Joe
Join Date: Feb 2012
Location: Canada
Posts: 109
Rep Power: 11
enayath is on a distinguished road
https://www.youtube.com/watch?v=xt2hnE9_LdM
enayath is offline   Reply With Quote

Old   December 20, 2017, 17:19
Default
  #36
Senior Member
 
Joe
Join Date: Feb 2012
Location: Canada
Posts: 109
Rep Power: 11
enayath is on a distinguished road
https://www.youtube.com/watch?v=xt2hnE9_LdM
enayath is offline   Reply With Quote

Old   October 3, 2019, 02:49
Default
  #37
New Member
 
Konstantin
Join Date: Oct 2019
Posts: 1
Rep Power: 0
cobra666 is on a distinguished road
Quote:
Originally Posted by pakk View Post
The error message tells you what you did, and what went wrong.



First keyword: load. This is the error message you get when you try to load the udf. In your post you say it is the error message when you try to compile, but that is simply not true.

Second keyword: not compiled. Your code is not compiled. The obvious solution for this: compile your code.
If you have problems compiling your code, show the message you get when you try to compile your code. Not the error message you get when you try to load your code.
Please tell me, a mistake of a similar nature, but I can not figure it out myself




Copied C:\Users\Admin\Desktop\4554\cobra_files\dp0\FLU\Fl uent/C:\Users\Admin\Desktop\4554\oil-den.c to libudf\src
Copied C:\Users\Admin\Desktop\4554\cobra_files\dp0\FLU\Fl uent/C:\Users\Admin\Desktop\4554\vane.c to libudf\src
Creating user_nt.udf file for 3ddp ...
(system "copy "C:\Games\ANSYSI~1\v171\fluent"\fluent17.1.0\src\u df\makefile_nt.udf "libudf\win64\3ddp\makefile" ")
‘஢ * : 1.
(chdir "libudf")(chdir "win64\3ddp")"nmake" *  *** **
*, ᯮ*塞 ண * .

Done.

Opening library "C:\Users\Admin\Desktop\4554\cobra_files\dp0\FLU\F luent\C:\Users\Admin\Desktop\4554\cobra_files\dp0\ FLU\Fluent\libudf"...RPC RCX_SC_SET_ERR_MSG failed: RPC: Can't encode arguments


Error: The UDF library you are trying to load (C:\Users\Admin\Desktop\4554\cobra_files\dp0\FLU\F luent\libudf) is not compiled for 3ddp on the current platform (win64).

.

C:\Users\Admin\Desktop\4554\cobra_files\dp0\FLU\Fl uent\C:\Users\Admin\Desktop\4554\cobra_files\dp0\F LU\Fluent\libudf\win64\3ddp\libudf.dll

Error: EOF in string read
Error Object: ()
cobra666 is offline   Reply With Quote

Old   October 3, 2019, 06:16
Default
  #38
Senior Member
 
Join Date: Nov 2013
Posts: 1,913
Rep Power: 23
pakk will become famous soon enough
I'm sorry, I can't really help here. You are using a language with non-ascii characters, so the error messages show up like strange signs, which I can't read.

Based on the length, I would guess that they say that Fluent cannot find the compiler, so your compiler setup is wrong, but that is not much more than a guess.

(Please don't see this as an insult to your language. If anybody did something wrong, it is the programmer who made non-ascii codes show up in these strange signs.)
pakk is offline   Reply With Quote

Reply

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
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 9 April 2, 2018 02:27
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
cannot load UDF library jayilosa Fluent UDF and Scheme Programming 3 November 16, 2011 12:44
Error in opening UDF library anon_d Fluent UDF and Scheme Programming 4 May 21, 2011 02:10
error open udf library adjie_mesin06 Main CFD Forum 1 October 27, 2010 01:49


All times are GMT -4. The time now is 21:34.