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

problem in compoile UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2008, 03:57
Default problem in compoile UDF
  #1
h.daniyel
Guest
 
Posts: n/a
hi everyone could any one help me i want compile a UDF in fluent and i installed visual c++ Visual c++ is installed in D and fluent is installed in c version of fluent is 6.3.26 i saved case file and udf file in one folder and shared it. i set Enviroment in fluent but when i load udf in compile section fluent show an error and write: Error: open_udf_library:The system cannat find the file specified . Error object: ( ) i have run fluent by dos but problem is not solve? this problem is appear for every udf and i cannot compile any udf.

thanks
  Reply With Quote

Old   June 2, 2008, 07:44
Default Re: problem in compoile UDF
  #2
Rajan
Guest
 
Posts: n/a
Assuming that u have set all environment variables, first compile the udf and then load it. When u compile it visual c++ creats a object file which will be used by fluent. Once u compile without any error the link between fluent and visual c++ breaks there, after that its all fluent that uses the object file.

Regards Rajan
  Reply With Quote

Old   June 2, 2008, 11:19
Default Re: problem in compoile UDF
  #3
h.daniyel
Guest
 
Posts: n/a
thanks for your answer and your attention i guess my visual c++ has a problem .and you are right. when i want compile my udf in vc++ in computer,which has both of fluent and vc++ ,it cannot do that and show this error (in vc++): ""fatal error C1083: Cannot open include file: 'udf.h': No such file or directory Error executing cl.exe."" i think i must copy udf.h file from \Fluent.Inc\fluent6.3.26\src and paste it in vc++.but i do not know where exactly. what is your opinion ?is the essential my problem in vc++? with best regards

  Reply With Quote

Old   June 3, 2008, 06:42
Default Re: problem in compoile UDF
  #4
novice
Guest
 
Posts: n/a
Hi,

I am notsure whether it helps but try once. Open the command prompt of vc++ and start fluent from this(copy the path of the fluent location and paste in the command prompt of VC++)

best regards

  Reply With Quote

Old   June 6, 2008, 21:53
Default Re: problem in compoile UDF
  #5
Sean
Guest
 
Posts: n/a
In the FLUENT UDF document, there is a note: "Note that if you are running serial or parallel FLUENT on a Windows system, then you must have Microsoft Visual Studio installed on your machine and have launched FLUENT from the Visual Studio console window to compile a UDF"

But how to start command prompt of VC++?

Regards

  Reply With Quote

Old   June 12, 2008, 06:06
Default Re: problem in compoile UDF
  #6
novice
Guest
 
Posts: n/a
If C++ is installed in ur computer...do the following:

go to STRAT--> Programs--> VC++ --> visual studio tools --> visualstudio command prompt

hope this helps

regards,

Novice
  Reply With Quote

Reply


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
Problem in Modelling Heat Transfer Problem Deepak R FLUENT 1 December 6, 2007 10:37
Problem in cavity flow problem saad Main CFD Forum 4 November 1, 2007 08:45
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 10:57
problem in solving "wave generation" problem san FLUENT 2 April 4, 2006 00:37


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