CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (

T.Hariharanath July 24, 2005 10:45

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

Alec Eiffel July 25, 2005 09:39

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.

T.Hariharanath July 25, 2005 11:47

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

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