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

Fluent doesn´t compile UDF on Windows

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2007, 23:23
Default Fluent doesn´t compile UDF on Windows
  #1
HSeldon
Guest
 
Posts: n/a
Hi all, I´m having problems with Windows. Basically, I can´t 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.

  Reply With Quote

Old   February 9, 2007, 01:10
Default Re: Fluent doesn´t compile UDF on Windows
  #2
chakradhar
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   February 9, 2007, 01:44
Default Re: Fluent doesn´t compile UDF on Windows
  #3
HSeldon
Guest
 
Posts: n/a
Thank you for the input! Tried it but it still doesn´t work...

  Reply With Quote

Old   February 10, 2007, 15:42
Default Re: Fluent doesn´t compile UDF on Windows
  #4
Antoine
Guest
 
Posts: n/a
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

  Reply With Quote

Old   February 15, 2007, 00:01
Default Re: Fluent doesn´t compile UDF on Windows
  #5
Ali
Guest
 
Posts: n/a
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
  Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent does not always compile UDF properly davesmith_01 Fluent UDF and Scheme Programming 3 February 10, 2011 15:09
UDF in Fluent subha_meter Main CFD Forum 0 October 18, 2009 00:54
Compiling UDF in Fluent 12 jsm FLUENT 1 July 22, 2009 08:40
Any Luck with 64-bit FLUENT on 64-bit Windows? Dylan FLUENT 4 October 17, 2007 12:14
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 04:07


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