|
[Sponsors] |
February 10, 2007, 05:42 |
UDF´s
|
#1 |
Guest
Posts: n/a
|
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! |
|
February 10, 2007, 14:45 |
Re: UDF´s
|
#2 |
Guest
Posts: n/a
|
I answered in your first post.
I hope this will solve your problem. Best regards Antoine |
|
February 11, 2007, 03:49 |
Re: UDF´s
|
#3 |
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! |
|
February 13, 2007, 17:11 |
Re: UDF´s
|
#4 |
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 |
|
|
|