CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   compiling UDF for a dynamic mesh (http://www.cfd-online.com/Forums/fluent-udf/84225-compiling-udf-dynamic-mesh.html)

Tameem1 January 24, 2011 05:19

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

hultman January 28, 2011 10:14

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.

Tameem1 February 6, 2011 17:36

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

mecamor July 20, 2011 17:03

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

jorkolino June 18, 2012 09:59

Quote:

Originally Posted by Tameem1 (Post 293874)
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

I followed your suggestion, and although it can now compile, it is not stable (when I re-load my file with compiled library fluent just crash-exits). Did you make it work stable with FLuent 6.3.26 on Win7-64bit? My suggestion is that compilation for v6.3.26 is not compatible with Win7-64bit, at least not fully compatible, but I need more people response. Thanks

gy846608002 June 19, 2012 04:17

Quote:

Originally Posted by hultman (Post 292666)
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.

Hello!Would you say that in detail? I have the same problem with you.Opening library "libudf"...The system cannot find the file specified.
Error Object: ()
I need your help ..Thank you !

massi.oughlissi February 20, 2013 13:22

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

massi.oughlissi February 21, 2013 10:38

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

grayeagle June 2, 2013 07:25

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

yashganatra July 6, 2013 02:42

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

tranvantrung551987 August 22, 2013 03:57

Quote:

Originally Posted by Tameem1 (Post 293874)
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 get the same error. Can you help me
thank you

nisarfatimaaeroengr@gmail July 8, 2015 22:39

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

Havinh August 5, 2015 05:47

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

nikhilchotai@gmil.com December 28, 2015 06:50

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

Apiano May 24, 2016 11:19

Quote:

Originally Posted by nisarfatimaaeroengr@gmail (Post 554558)
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

Thank you very very much!


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