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

UDF compiling problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2008, 14:18
Default UDF compiling problem
  #1
Wouter
Guest
 
Posts: n/a
I have some problems with compiling UDF's in Fluent. I've looked around at this forum and already tried some suggested solutions but none of them could really solve the problem. At first the following error occurred when I builded and loaded the library in Fluent:

"'CANT FIND NMAKE' , 'CHNG DIRC' (chdir "libudf")() (chdir "ntx86\\2ddp")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file."

This was solved when I installed Microsoft Visual Studio 5 Express (which includes a command line compiler) and I put nmake in the path. But then the following error occured: "Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: ()" The log file in the ntx86 folder of the libudf folder shows that the following error occurs: "NMAKE : U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135' Stop."

I saw in some solutions to this problem that sometimes a little change to the environment variables has to be made to solve the problem (I already had to add to the path manually the folder in which nmake was located). I'm not an expert in this kind of things, my question is as follows: should I add/delete more information to the environment variables (user and system variables) to solve this problem and if so which variable do I have to add/delete and which corresponding value?

Maybe I'm totally wrong and it doesn't have anything to do with the environment variables. In that case, does someone have an idea what the problem could be? Maybe it's a problem related to the UDF I've written?

Best regards
  Reply With Quote

Old   August 30, 2010, 12:36
Default loading udf
  #2
New Member
 
Rafael
Join Date: Aug 2010
Posts: 2
Rep Power: 0
ranaca is on a distinguished road
Hi! I have a problem when loading the compiled udfs. I am a begginer and I am doing the tutorials from the website. The thing is, I make sure that the the .c files and the mesh and .cas dat files are in the same folder as it is requiered. Then I go to the copiled udf panel, select the .c files I need and build them, but when clicking in load, I got the following error:

Opening library "libudf"...
Error: open_udf_library: The system cannot find the specied file.

I dont know why this is happening. Maybe the program is unable to find the rute to that library or even dont have the library, but I dont think I dont have it.

Thanks for your help!!!
ranaca is offline   Reply With Quote

Old   August 30, 2010, 12:40
Default HI
  #3
New Member
 
Aerodynamist
Join Date: Aug 2010
Posts: 2
Rep Power: 0
bhupesh143g1 is on a distinguished road
Hi there
no -such file

WHERE ARE YOU RUNNING YOUR fLUENT? iF U R RUNNING IT ON UR PC THEN, the case is it doent hv a compiler to compile ur .c files and hence the error.
bhupesh143g1 is offline   Reply With Quote

Old   August 31, 2010, 04:11
Default
  #4
New Member
 
divya
Join Date: Aug 2010
Location: warangal,A.P,India
Posts: 2
Rep Power: 0
divyat is on a distinguished road
Hi ranaca,
Instead of compile, you interpret the source file by keeping the source,case,data files in one folder. Interpreting is easy than compile.you have to follow the same process to interpret as you done for the compile.
divyat is offline   Reply With Quote

Old   February 2, 2011, 03:54
Default
  #5
New Member
 
robins
Join Date: Oct 2010
Location: far far away
Posts: 2
Rep Power: 0
FrAnKeN.s. + .e!N. is on a distinguished road
hey divyat,

i tried both the methods compiling and interpreting. but while interpreting it shows Error: C:\Users\Desktop\fluent\DynMesh\valve.c: line 57: parse error.
is there anything i can do about it ?

thanks.
FrAnKeN.s. + .e!N. is offline   Reply With Quote

Old   February 2, 2011, 06:29
Default
  #6
New Member
 
Amir
Join Date: Nov 2010
Location: Shiraz,Iran
Posts: 12
Rep Power: 15
amirreza_m is on a distinguished road
Hi,
the best way is to launch fluent from Microsoft VC++ command prompt after putting fluent in the path. simply try this (~\Fluent\ntbin\ntx86\setenv.exe)
also using compiled UDFs are more conservative than interpreted ones because of many reasons.
amirreza_m is offline   Reply With Quote

Old   June 6, 2012, 05:43
Default
  #7
New Member
 
Join Date: Jun 2011
Posts: 19
Rep Power: 14
The_Architect is on a distinguished road
Hi,

on a PC you will first have to install Microsoft VC++. Once installed, you have to start Fluent from the VC++ command line. Navigate in the command line to the directory where Fluent is installed and then run the .exe file to start Fluent. After this is done, you should be able to compile .C UDF:s in Fluent.
The_Architect is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Compiling problem zhoubinwx OpenFOAM Running, Solving & CFD 3 September 3, 2008 10:00
Udf compiling problem ranjit FLUENT 1 January 26, 2007 11:03
COMPILING PROBLEM ammi FLUENT 1 December 7, 2006 05:07
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 07:45
Compiling problem Alper Albayraq FLUENT 7 August 26, 2005 02:39


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