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

UDF COMPILATION

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 24, 2005, 10:45
Default UDF COMPILATION
  #1
T.Hariharanath
Guest
 
Posts: n/a
hi to all of you, iam facing a problem with UDF,

CAN ANY ONE HELP ME,iam tryig work the example of dynamic mesh, but iam not able to do it as when iam compiling the UDF iam getting th following error,

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.

thanks in advance
  Reply With Quote

Old   July 25, 2005, 09:39
Default Re: UDF COMPILATION
  #2
Alec Eiffel
Guest
 
Posts: n/a
This error message is a result of not having the Microsoft Visual Studio C + + environment variables set up OR you do not have a Microsoft compiler installed.

http://www.fluentusers.com/support/i...nfaq/nmake.htm
  Reply With Quote

Old   July 25, 2005, 11:47
Default Re: UDF COMPILATION
  #3
T.Hariharanath
Guest
 
Posts: n/a
I got by 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 "2d".( MY simulation is 2d) 3) copy the udf (.C file) and the required header( u can get the header files from c:\FLUENT.INC\fluent6.*.*\ntx86\src) files into the "src" folder. 4) go to c:\FLUENT.INC\fluent6.*.*\ntx86\2d copy the contents into the 2d folder which you created. 5) go to c:\FLUENT.INC\fluent6.*.*\ntx86\src copy makefile_nt.udf and user_nt.udf to your 2d folder 6) rename makefile_nt.udf 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 \vc98\bin 8) type :- vcvars32 9)go to the libudf\ntx86\2d 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. -T.HARIHARANATH
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compilation error Szabolcs Varga Fluent UDF and Scheme Programming 3 April 11, 2015 13:49
UDF compilation problem on Linux System Nitin Pathak FLUENT 1 July 10, 2014 11:41
UDF Compilation Error Karthik FLUENT 4 February 9, 2009 12:42
UDF compilation problem -- "undeclared variable" Henrik Ström FLUENT 1 September 21, 2005 05:25
Compiled UDF / Compilation problem mikhail FLUENT 1 October 13, 2000 06:12


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