CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

compiling UDF for a dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By hultman
  • 1 Post By Tameem1
  • 1 Post By yashganatra

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2011, 04:19
Default compiling UDF for a dynamic mesh
  #1
New Member
 
Wael
Join Date: Jan 2011
Posts: 2
Rep Power: 0
Tameem1 is on a distinguished road
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
Tameem1 is offline   Reply With Quote

Old   January 28, 2011, 09:14
Default
  #2
New Member
 
Erik Hultman
Join Date: Apr 2010
Posts: 2
Rep Power: 0
hultman is on a distinguished road
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.
memeces likes this.
hultman is offline   Reply With Quote

Old   February 6, 2011, 16:36
Default
  #3
New Member
 
Wael
Join Date: Jan 2011
Posts: 2
Rep Power: 0
Tameem1 is on a distinguished road
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
pranab likes this.
Tameem1 is offline   Reply With Quote

Old   July 20, 2011, 17:03
Default
  #4
New Member
 
mecamor
Join Date: Jul 2011
Posts: 23
Rep Power: 14
mecamor is on a distinguished road
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
mecamor is offline   Reply With Quote

Old   June 18, 2012, 09:59
Default
  #5
Member
 
George Pichurov
Join Date: Jul 2010
Posts: 52
Rep Power: 15
jorkolino is on a distinguished road
Quote:
Originally Posted by Tameem1 View Post
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
jorkolino is offline   Reply With Quote

Old   June 19, 2012, 04:17
Default
  #6
New Member
 
Blake
Join Date: Jun 2012
Posts: 2
Rep Power: 0
gy846608002 is on a distinguished road
Quote:
Originally Posted by hultman View Post
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 !
gy846608002 is offline   Reply With Quote

Old   February 20, 2013, 12:22
Default
  #7
New Member
 
Massinissa OUGHLISSI
Join Date: Feb 2013
Posts: 4
Rep Power: 13
massi.oughlissi is on a distinguished road
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 is offline   Reply With Quote

Old   February 21, 2013, 09:38
Default
  #8
New Member
 
Massinissa OUGHLISSI
Join Date: Feb 2013
Posts: 4
Rep Power: 13
massi.oughlissi is on a distinguished road
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...
massi.oughlissi is offline   Reply With Quote

Old   June 2, 2013, 07:25
Default Udf
  #9
New Member
 
Hadi kafil
Join Date: Apr 2013
Location: Istanbul
Posts: 8
Rep Power: 13
grayeagle is on a distinguished road
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-....
grayeagle is offline   Reply With Quote

Old   July 6, 2013, 02:42
Default
  #10
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
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
massi.oughlissi likes this.
yashganatra is offline   Reply With Quote

Old   August 22, 2013, 03:57
Default
  #11
New Member
 
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 12
tranvantrung551987 is on a distinguished road
Quote:
Originally Posted by Tameem1 View Post
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
tranvantrung551987 is offline   Reply With Quote

Old   July 8, 2015, 22:39
Default
  #12
New Member
 
Nisar Fatima
Join Date: Dec 2014
Posts: 5
Rep Power: 11
nisarfatimaaeroengr@gmail is on a distinguished road
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
nisarfatimaaeroengr@gmail is offline   Reply With Quote

Old   August 5, 2015, 05:47
Default
  #13
New Member
 
Vinh Ha Tien
Join Date: Feb 2014
Posts: 5
Rep Power: 12
Havinh is on a distinguished road
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
Havinh is offline   Reply With Quote

Old   December 28, 2015, 05:50
Default Ya folwed Havinh's Guidelines and i got solution
  #14
New Member
 
Chotai Nikhil
Join Date: Aug 2015
Posts: 7
Rep Power: 10
nikhilchotai@gmil.com is on a distinguished road
Havinh's Solution is Correct As Followed it and i m able to solve all Tutorial
nikhilchotai@gmil.com is offline   Reply With Quote

Old   May 24, 2016, 11:19
Default
  #15
New Member
 
Apiano Morais
Join Date: Apr 2016
Posts: 10
Rep Power: 10
Apiano is on a distinguished road
Quote:
Originally Posted by nisarfatimaaeroengr@gmail View Post
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!
Apiano is offline   Reply With Quote

Reply

Tags
dynamic mesh, udf compilation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Dynamic mesh UDF problem Peter FLUENT 2 November 12, 2007 02:10
writing a dynamic mesh udf ALPER ALBAYRAQ FLUENT 0 October 24, 2005 08:41
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 09:29
UDF problem for dynamic mesh??? lyf FLUENT 1 April 19, 2004 06:43


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