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

UDF´s

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2007, 06:42
Default UDF´s
  #1
HSeldon
Guest
 
Posts: n/a
Hi, sorry for post this again, but unfortanetly I couldnt solve the problem. Basically, my UDFs which compile OK in linux doesnt do it in Windows. I have XP with Fluent 6.3.26. Also I have MS Visual Studio. Do I need to set another enviroment variable? Please help me!

Thank you!
  Reply With Quote

Old   February 10, 2007, 15:45
Default Re: UDF´s
  #2
Antoine
Guest
 
Posts: n/a
I answered in your first post.

I hope this will solve your problem.

Best regards

Antoine
  Reply With Quote

Old   February 11, 2007, 04:49
Default Re: UDF´s
  #3
HSeldon
Guest
 
Posts: n/a
Antoine, thank you very much for the imput, but I already have those vars, so the problem is still there...

Thank you!
  Reply With Quote

Old   February 13, 2007, 18:11
Default Re: UDF´s
  #4
Antoine
Guest
 
Posts: n/a
I have already compiled udf with visual studio 6 but using Fluent 6.2. With this version, I remember it worked since the four environment variables I detailed were defined.

So if the compilation doesn't work from the Fluent panel, you can compile it manually. The procedure is described in Fluent udf user's guide, and to sum up the steps are:

1)Create the library folder (ex: "libudf")and create inside it 2 folders: a "src" folder and a "version_name" folder where you replace version_name with 2d, 3d, 2ddp, or 3ddp.

2)You copy your *.c file in the "src" folder

3)You copy from the path "\Fluent.Inc\fluent6.3.26\src" the following 2 files in the "version_name" folder:

-the "makefile_nt.udf" file which you rename as "makefile"

-the "user_nt.udf" file which contains:

SOURCES = $(SRC)"file name" where file name is the name of your udf

VERSION = "2d | 3d | 2d_host | 2d_node | 3d_host | 3d_node" where you choose the version you want to use

PARALLEL_NODE = "none | smpi | vmpi | net | nmpi" where you choose "none" for the serial version of Fluent

4) you open a command prompt, you place it in the file containing the makefile file and type nmake

If this method doesn't work anymore, you can try to define other variable environment for Fluent that you can see typing in the command prompt (placed in the file where the fluent executable is installed [surely "\Fluent.Inc\ntbin\ntx86"]) the command "fluent version -env" where version is 2d, 3d ...

I hope this will work

Regards

Antoine

  Reply With Quote

Reply

Thread Tools
Display Modes

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



All times are GMT -4. The time now is 23:39.