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

udf compilation problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2004, 13:09
Default udf compilation problem
  #1
co2
Guest
 
Posts: n/a
I got the following error while compiling my udf. The same udf had compiled fine on another machine. But on the ME lab machines, it is not compiling. WHY IS THAT ?

- Charu

1 file(s) copied. (system "move user_nt.udf libudf\ntx86\3d")0 (system "copy C:\FLUENT.INC\fluent6.1\src\makefile_nt.udf libudf\ntx86\3d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\3d")() '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.

Done.

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

Error Object: ()
  Reply With Quote

Old   April 15, 2004, 18:57
Default Re: udf compilation problem
  #2
ap
Guest
 
Posts: n/a
The message


'nmake' is not recognized as an internal or external command, operable program or batch file.


tells you that you do not have the Microsoft Visual C++ compiler installed, or it's directory is not in your system PATH.

Hi

ap
  Reply With Quote

Old   April 16, 2004, 02:35
Default Re: udf compilation problem
  #3
Karthick
Guest
 
Posts: n/a
Hello ap,

Even I am facing the same problem. Can u tell me how we can specify the path to Visual studio?

Regards Karthick
  Reply With Quote

Old   April 16, 2004, 18:32
Default Re: udf compilation problem
  #4
Ajay
Guest
 
Posts: n/a
Try this You need to follow the following steps 1) set up the environmental variable This is done by going to the start menu > Programs>Fluent> Set_environment clicking this would set the path and variable. 2) set up a directory structure as follows create a dir libudf in that create "src" and "ntx86". In ntx86 create "3d".( am asuming that ur simulation is 3d) 3) copy the udf (.C file) and the required header( u can get the header files frm c:\FLUENT.INC\fluent6.*.*\ntx86\src) files into the "src" folder. 4) go to c:\FLUENT.INC\fluent6.*.*\ntx86\3d copy the contents into the 3d folder which you created. 5) go to c:\FLUENT.INC\fluent6.*.*\ntx86\src copy makefile_nt.udf and user_nt.udf to your 3d folder 6) rename makefile_nt.edf to makefile and open user_nt.udf and read the instructions and do accordingly. 7) close FLUENT . Open command prompt ( start > accessories > command prompt ) type the following C:\ CD program Files \ microsoft visual studio .net\vc7\bin 8) type :- vcvars32 9)go to the libudf\ntx86\3d which u have created 10) type nmake 11) This will compile ur code and build a lib if u dont have any errors , if errors are present it will say so u need to debug it then. 12) once this is done u can open fluent again and load the lib u have just created , in this case it would be libudf.

-Ajay
  Reply With Quote

Old   April 16, 2004, 18:34
Default Re: udf compilation problem
  #5
ap
Guest
 
Posts: n/a
I don't know it. I don't use Visual Studio anymore because I'm now on a linux platform.

However the path to the compiler is set during Visual Studio setup, if you accept to set system variables.

Hi

ap
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF PROBLEM anant FLUENT 2 January 17, 2007 01:15
parallel UDF problem kerem FLUENT 2 June 20, 2006 07:56


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