CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   The UDF library you are trying to load (libudf) is not compiled for 3d on the current (https://www.cfd-online.com/Forums/fluent-udf/152332-udf-library-you-trying-load-libudf-not-compiled-3d-current.html)

yash.aesi June 8, 2016 04:26

1 Attachment(s)
Thanks for quick reply ....I am sending you the code with line number for the better understanding.

Thanks ,
Sonu.

pakk June 8, 2016 05:59

It looks like my guess was correct. You used the wrong style of commenting in line 67.

yash.aesi June 8, 2016 06:19

ok, I will change those lines and will compile again.

Thanks Again.

kywong5 March 2, 2017 10:36

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

pakk March 2, 2017 10:53

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.

kywong5 March 2, 2017 11:11

Quote:

Originally Posted by pakk (Post 639209)
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

elaf_2003 November 28, 2017 04:54

udf compiled
 
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

AlexanderZ November 28, 2017 05:02

Quote:

Originally Posted by elaf_2003 (Post 673137)
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

pakk November 28, 2017 05:14

Quote:

Originally Posted by elaf_2003 (Post 673137)
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.

elaf_2003 November 28, 2017 05:16

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 November 28, 2017 15:04

udf compiled
 
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.

pakk November 29, 2017 06:12

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.)

elaf_2003 November 29, 2017 09:17

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 December 3, 2017 00:52

udf compiled
 
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.

enayath December 20, 2017 17:18

https://www.youtube.com/watch?v=xt2hnE9_LdM

enayath December 20, 2017 17:19

https://www.youtube.com/watch?v=xt2hnE9_LdM

cobra666 October 3, 2019 02:49

Quote:

Originally Posted by pakk (Post 544243)
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: ()

pakk October 3, 2019 06:16

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.)


All times are GMT -4. The time now is 18:17.