CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Fluent doesn´t compile UDF on Windows (http://www.cfd-online.com/Forums/fluent/43673-fluent-doesna-t-compile-udf-windows.html)

HSeldon February 8, 2007 23:23

Fluent doesn´t compile UDF on Windows
 
Hi all, Im having problems with Windows. Basically, I cant compile UDFs. I have Microsoft Visual Studio 6 installed.

I know that the UDF is ok because I can compile it without problems in Suse.


chakradhar February 9, 2007 01:10

Re: Fluent doesn´t compile UDF on Windows
 
HELLO!!! hseldon in order to run your udf you to create a directory named libudf in C DRIVE and save your ".c" in that directory it will work.


HSeldon February 9, 2007 01:44

Re: Fluent doesn´t compile UDF on Windows
 
Thank you for the input! Tried it but it still doesnt work...


Antoine February 10, 2007 15:42

Re: Fluent doesn´t compile UDF on Windows
 
If you want to compile your udf with Fluent using the Microsoft Visual Studio 6, you have to set the environment variables in Windows. So add the four variables as below (where for each variable the first line is the variable and the other lines constitue the value):

include C:\Program Files\Microsoft Visual Studio\VC98\ATL\Include;C:\Program Files\Microsoft Visual Studio\VC98\MFC\Include;C:\Program Files\Microsoft Visual Studio\VC98\Include

lib C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib;C:\Program Files\Microsoft Visual Studio\VC98\Lib

MSDevDir C:\Program Files\Microsoft Visual Studio\Common\MSDev98

path C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\Bin


Ali February 15, 2007 00:01

Re: Fluent doesn´t compile UDF on Windows
 
I have some problem with compiling a udf which is exactly the example of fluent itself for surface reaction.

I use DEFINE_SR_RATE( ..... ) I tried to interprete it but it has problem with wherever I have r->name or structure type data. with compiling I cant compile at all the error is like this :

Deleted old libudf1\ntx86\2ddp\libudf.dll The system cannot find the file specified.

1 file(s) copied.

1 file(s) copied.

1 file(s) copied.

1 file(s) copied. (system "copy C:\CFD\Fluent621.Inc\fluent6.2.16\src\makefile_nt. udf libudf1\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf1")() (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.

Interrupting... Done.

>

Would you please help me, I really need help


All times are GMT -4. The time now is 04:33.