compiling UDF for a dynamic mesh
Hi,
I'm trying to follow the dynamic mesh tutorial in Fluent 13 and Fluent 6.3.26 on windows7 64 bit. When I tried to compile the UDF and build it an error occurred: " 'nmake' is not recognized as an internal or external command, operable program or batch file. So I found the nmake.exe file and copy it to the Fluent\ntbin\win64 then this error vanished and the report is Deleted old libudf\win64\2d\libudf.dll 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2d")() # Generating ud_io1.h Done. Which I think is ok. But when I try to load the library "libudf" an error appears Opening library "c:\......\dynamic_mesh\dynamic_mesh\libudf".. . Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64). The system cannot find the file specified. c:\.........\dynamic_mesh\dynamic_mesh\libudf\win6 4\2d\libudf.dll Error Object: #f I've tried to install MS visual studio 2010 professional and MS visual studio 2008 with all the prerequisites but no way. Any help is appreciated, Thanks |
I have a very similar problem,
The UDF library you are trying to load (libudf) is not compiled for 3d on the curent platform (win64). \libudf\win64\3d\libudf.dll here you can find help: http://www.cfd-online.com/Wiki/Fluent_FAQ I have reinstalled the compiler as they say now i will try to download the sdk package to see if that helps me out. |
Thank you for your reply
Finally, I found a solution. It works fine when I run the fluent from the command prompt of the visual studio, But an easy way is to set the environment for the UDF in the fluent as section 5.1.2 in the user guide. Finally it works. Thanks |
hello
I have a problem to you but I do not know how you managed to solve it. GUIE what you talking about? thank you |
Quote:
|
Quote:
Error Object: () I need your help ..Thank you ! |
Hi all,
I have almost the same problem but I use LINUX. I need your help, the error message is as follows: Primitive error at node 0: the UDF library you are trying to load (libudf) is not compiled for parallel use in current platform (Inamd64). No such file in directory /work/massi/libudf/Inamd64/2d_node/libudf.so Opening library "/work/massi/libudf"... Error: the UDF library you are trying to load (libudf) is not compiled for parallel use in current platform (Inamd64). No such file in directory /work/massi/libudf/Inamd64/2d_node/libudf.so Error object: #f Thank you in advance... |
Here an other error that appears, if it helps you to help me:
error: /usr/include/bits/huge_val.h: line 52: syntax error PS: excuse my english... |
Udf
thank you for your help. I have read the CFD forums and watch the pdf.
I have Visual studio C++ 2010, and SDK v7.1> I have 4 udf (3 DEFINE_PROPERTY and 1 DEFINE_PROFILE. when I put all in one (udf) c file and compile (by using interpreted). when I use one property and one profile UDF, I don't have problem, but when I use 3 properties, there is this error: Fluent received fatal signal (Access_Violation) 1-.... 2-.... 3-.... |
Access violation error indicates the fault inside a UDF. It is trying to access a quantity which is not there, as far as I know
Yash |
Quote:
i get the same error. Can you help me thank you |
To overcome the problems related to any compiling errors, follow the ensuing steps:
1) install Microsoft visual studio 2010 express. 2) install Microsoft windows sdk v7.0 3) run setenv.exe file from ur system location C:\Program Files\ANSYS Inc\v145\fluent\ntbin\win64\setenv.exe.--(to set required environment variables) 4) Restart ur system and launch fluent using CMD shell [(start menu<<All programs<< Microsoft windows SDK v7<< CMD shell). Note :in CMD shell ,type fluent]. IMPORTANT: pay heed to the working directory while launching fluent as it should contain the source file that needs to be compiled. Gudluck |
dear
I have got this problem too. I have tried all the tutorial I can found in the internet but nothing happen However, I have installed VS 10 Ultimate version and this problem was gone So i think the problem it you are using free version of VS (i have tried all free version form VS8 to 2013 but just using VS 10 ultimate only) I have solve all my computer and my partner by this way. So try it now |
Ya folwed Havinh's Guidelines and i got solution
Havinh's Solution is Correct As Followed it and i m able to solve all Tutorial
|
Quote:
|
All times are GMT -4. The time now is 12:48. |