CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   help on UDF compile and load (https://www.cfd-online.com/Forums/fluent/38388-help-udf-compile-load.html)

Sherry October 26, 2005 11:02

help on UDF compile and load
 
I am a new learner. When I tried the case given by the tutorial, it always has the following problem when I use the UDF (compile and load). Could anybody tell me what is the problem? Thanks.

(system "copy E:\PROGRA~1\CFD_FL~1\Fluent.Inc\fluent6.2.16\src\m akefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (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.

Done. "f:/hu/example/ozone-decomposition-files"

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

Error Object: ()

edi October 26, 2005 12:26

Re: help on UDF compile and load
 
At first sight: the directory "libudf" must be located in the same folder where the case is. If you unpack some tutorial examples from a .zip file, extract all the files in the same folder.

Hope it helps

Edi.

Sherry October 26, 2005 12:53

Re: help on UDF compile and load
 
Thanks.

I tried it. If I copy all of the files including the libudf folder Fluent gives for this case into my folder. I can load it. But when I delete the libudf and want to build it by myself, it still has the same problems. I compared the two libudf folders. The libudf folder I produced lacks the lnx86 folder compared the libudf folders given by Fluent for this case. So what's the problem?

thanks again.


Allan Walsh October 26, 2005 15:52

Re: help on UDF compile and load
 
Search this forum for nmake, as many beginners have had the same problem. nmake is not part of Fluent. If you have C++, there should be a version of nmake in that directory - you need to set the evironment variables so it can be found.

Manoj Kumar October 27, 2005 00:02

Re: help on UDF compile and load
 
HI Sherry

I too faced the same problem once. Your c++ environment variables are not set correctly. You can set the environment variables on your window's system properties panel/Advanced.

I would advice you to reinstall visual c++, it you are using it. You will asked if you want the installer to set the environment variables.

Regards

Manoj

sai shiva muppur October 29, 2005 11:37

Re: help on UDF compile and load
 
hi,

thought of demystifying once for all.

1. make sure u START fluent from your working directory 2. way to do it is by going to the command prompt and switching to your directory and typing fluent there. 3. if you cannot do it, go to program files---> fluent--->set environment and just click it. select yes. it will allow you to start from command prompt then. 4. try to use .Net for compiling as it eliminates some tedious steps of setting environment variables. 5. lemme know if u run into any problems


All times are GMT -4. The time now is 20:06.