|
[Sponsors] |
January 24, 2011, 05:19 |
compiling UDF for a dynamic mesh
|
#1 |
New Member
Wael
Join Date: Jan 2011
Posts: 2
Rep Power: 0 |
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 |
|
January 28, 2011, 10:14 |
|
#2 |
New Member
Erik Hultman
Join Date: Apr 2010
Posts: 2
Rep Power: 0 |
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. |
|
February 6, 2011, 17:36 |
|
#3 |
New Member
Wael
Join Date: Jan 2011
Posts: 2
Rep Power: 0 |
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 |
|
July 20, 2011, 18:03 |
|
#4 |
New Member
mecamor
Join Date: Jul 2011
Posts: 23
Rep Power: 15 |
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 |
|
June 18, 2012, 10:59 |
|
#5 | |
Member
George Pichurov
Join Date: Jul 2010
Posts: 52
Rep Power: 16 |
Quote:
|
||
June 19, 2012, 05:17 |
|
#6 | |
New Member
Blake
Join Date: Jun 2012
Posts: 2
Rep Power: 0 |
Quote:
Error Object: () I need your help ..Thank you ! |
||
February 20, 2013, 13:22 |
|
#7 |
New Member
Massinissa OUGHLISSI
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
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... |
|
February 21, 2013, 10:38 |
|
#8 |
New Member
Massinissa OUGHLISSI
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
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... |
|
June 2, 2013, 08:25 |
Udf
|
#9 |
New Member
Hadi kafil
Join Date: Apr 2013
Location: Istanbul
Posts: 8
Rep Power: 13 |
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-.... |
|
July 6, 2013, 03:42 |
|
#10 |
Member
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13 |
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 |
|
August 22, 2013, 04:57 |
|
#11 | |
New Member
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 13 |
Quote:
i get the same error. Can you help me thank you |
||
July 8, 2015, 23:39 |
|
#12 |
New Member
Nisar Fatima
Join Date: Dec 2014
Posts: 5
Rep Power: 12 |
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 |
|
August 5, 2015, 06:47 |
|
#13 |
New Member
Vinh Ha Tien
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
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 |
|
May 24, 2016, 12:19 |
|
#15 | |
New Member
Apiano Morais
Join Date: Apr 2016
Posts: 10
Rep Power: 10 |
Quote:
|
||
Tags |
dynamic mesh, udf compilation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Dynamic mesh UDF problem | Peter | FLUENT | 2 | November 12, 2007 03:10 |
writing a dynamic mesh udf | ALPER ALBAYRAQ | FLUENT | 0 | October 24, 2005 09:41 |
Problem related with UDF for dynamic mesh | Ryan | FLUENT | 6 | April 29, 2004 10:29 |
UDF problem for dynamic mesh??? | lyf | FLUENT | 1 | April 19, 2004 07:43 |