CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF´s (https://www.cfd-online.com/Forums/fluent/43697-udfa-s.html)

HSeldon February 10, 2007 06:42

UDF´s
 
Hi, sorry for post this again, but unfortanetly I couldn´t solve the problem. Basically, my UDFs which compile OK in linux doesn´t 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!

Antoine February 10, 2007 15:45

Re: UDF´s
 
I answered in your first post.

I hope this will solve your problem.

Best regards

Antoine

HSeldon February 11, 2007 04:49

Re: UDF´s
 
Antoine, thank you very much for the imput, but I already have those vars, so the problem is still there... :(

Thank you! :)

Antoine February 13, 2007 18:11

Re: UDF´s
 
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



All times are GMT -4. The time now is 18:56.