CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   'nmake' is not recognized as an internal or external command ... (http://www.cfd-online.com/Forums/fluent/107467-nmake-not-recognized-internal-external-command.html)

adambarfi September 27, 2012 15:54

'nmake' is not recognized as an internal or external command ...
 
hi everybody,

I have some problem with compiling my udf. I didn't work before with udfs. I searched the forum for my problem but I cannot solve it.

when I want to build my udf the this error apears:

Code:

Deleted old libudf\ntx86\2d\libudf.dll
        1 file(s) copied.
        1 file(s) copied.
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile")
        1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\2d")()
'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.

I think this error originates from Env. variables.
Is anybody here that can help me?!?!?!? what should I do???

adambarfi September 28, 2012 09:13

OK! I solved it.:cool:
I Installed the VS and ran the Fluent in its command prompt.

oinch October 1, 2012 02:15

Hello!!!

I am facing the same problem that you used to!! And this is exactely what I wanted to ask in this forum!

Can you help me please because I don't know what is VS ? And what is the method to run Fluent in its command prompt?

Thank you very much for your help!

Samia

blackmask October 1, 2012 03:49

VS = (Microsoft) Visual Studio
First you should make sure that you have at least one C compiler installed in your OS, MSVC is a common choice in windows. Then you should make sure that the directory containing "nmake.exe" is in the "Path" variable, otherwise you have to edit the Path manually. Search "manage environment variable windows" for more information.
You don't have to run Fluent from the "Visual Studio Command Prompt" if your path variable is set correctly.

oinch October 1, 2012 08:00

Thanks for your answer!

Well, I am using CVI in order to write the UDF, from the National Instrument, and it seems that the compiler is in the package. I searched "manage environment variable windows" and I openned the window path variables and there is nothing called nmake.exe or even nmake.

So I have to create the nmake.exe as a path variable?

blackmask October 6, 2012 03:54

It seems that CVI don't ship a Makefile-capable utility like "nmake.exe". You have to install MSVC in order to compile your UDF under Win* environment. There is a work-around that to compile the library manually instead of invoking the Makefile, but to install MSVC is simpler. You can use "interpreted UDF" instead if there is no restriction to do that in your UDF.

clarkie_49 October 6, 2012 04:00

Also, if you are using Windows 7 64-bit you may also need to download SDK for Windows 7 and launch fluent from the SDK command prompt (as i had to).

http://www.cfd-online.com/Wiki/Fluen...at_is_wrong.3F

mali28 October 6, 2012 06:53

Quote:

Originally Posted by adambarfi (Post 383968)
hi everybody,

I have some problem with compiling my udf. I didn't work before with udfs. I searched the forum for my problem but I cannot solve it.

when I want to build my udf the this error apears:

Code:

Deleted old libudf\ntx86\2d\libudf.dll
        1 file(s) copied.
        1 file(s) copied.
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile")
        1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\2d")()
'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.

I think this error originates from Env. variables.
Is anybody here that can help me?!?!?!? what should I do???

See the solution here:

http://www.eureka.im/68.html

oinch October 8, 2012 02:03

Well thank you very much I will try to do that !

hzsme October 8, 2012 07:52

refer to below link and solve your problom


http://www.question-defense.com/2009...-or-batch-file

nkme2007 October 10, 2012 06:19

Hello All,

I want to do analysis of heat transfer from water flowing through pipes submerged inside concrete. I am modelling in GAMBIT and wish to analyse it on Ansys FLUENT.

Can anybody help me out, how to model and simulate?

Does any tutorials exist?


All times are GMT -4. The time now is 22:46.