1 Attachment(s)
Thanks for quick reply ....I am sending you the code with line number for the better understanding.
Thanks , Sonu. |
It looks like my guess was correct. You used the wrong style of commenting in line 67.
|
ok, I will change those lines and will compile again.
Thanks Again. |
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 |
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.
|
Quote:
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 |
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 |
Quote:
best regards |
Quote:
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. |
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 |
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. |
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.) |
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 |
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. |
|
|
Quote:
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: () |
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. |