Compiling/Interpret UDF
Hi all,
I would like to ask when I have the UDF file (the .c file), how should I compile/intergret it into FLUENT? When I try what I had read from the tutorial, these messages pop out: 1) the udf library you are trying to load is not compiled. 2) nmake is not recognized as an internal or external command, operable program or batch file. I'm currently new to ANSYS and still learning how to use it, thank a lot for your helps. Regards, Bin |
Hi,
I dont know what nmake means but i am guessing that probably nmake is not supported within Fluent's compiler so you will have to compile and run the code instead of just intepreting it. You will have to install Visual C++ and microsoft SDK and lauch fluent from the command promt of sdk. May be someone else can give a more accurate reply to your problem. |
Thanks a lot Ananthakrishnan, I will try it. So it means that my computer does not has a proper compiler to 'cooperate' with FLUENT is it?
By the way, I'm using "compiled...", sorry for causing any confusion. |
Hi all and Ananthakrishnan,
I had installed visual studio and Microsoft SDK tools. But I'm still not sure about lauching fluent from the command promt of sdk. There are many things in the newly install visual studio and SDK tools, and i'm not sure which one is the right one to use. Can some one kindly shows some steps for this? Thanks a lot in advance. Best regards, Bin |
The icon for the item should be a miniature of the command prompt "cmd.exe", i.e., a black rectangle with C:\ in it. Click that item and a command prompt will appear. Issue the "set" command in the prompt and you will see the PATH and other variables have been modified to access the source, library and executables provided by MS.
|
Hi,
In addition to previous reply, if you want still more details please give me your email id. I will send the pdf files which i used for installing and applying the environment variables in my computer.. :) Bye, |
Please see my post on setting up the UDF environment here:
http://www.cfd-online.com/Forums/flu...l-command.html |
Hi Ananthakrishnan,
This is my email: bin6331@hotmail.com Sorry for causing so much trouble to you and thank you for your helps. Best regards, Bin |
how to start fluent in the visual studio frompt
hello everybody
I am tring to run fluent in the visual studio frompt but me not yet been working. I add C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\, C:\Program Files\Microsoft Visual Studio 10.0\VC\bin, C:\Program Files\ANSYS Inc\v140\fluent\ntbin\win32 but failed. Can you help me ! thank verry much |
Quote:
Once you open the command prompt enter the path where fluent is installed. The path must be with in double quotation mark. e.g. "C:/Program/#####/fluent.exe". If you are not sure about the path just right click the fluent icon and you will see the exact path. |
What error do you get?
|
question
Quote:
i get error " 'nmake' is not recognized as an internal or external command " when i compiled UDF. To correct this error, i start fluent in visual studio frompt by not Can you help me?. thank you very much |
You should not use the visual studio promt..You need to start fluent from "Microsoft windows SDK " promt..You need the compiler Windows SDK to compile the UDF. You can find windows sdk available for free in windows site.
|
Quote:
you can tell me with using microsoft SDk to start Fluent. |
Hi Anantharishnan
Quote:
my mail is tranvan_trung551987@yahoo.com. Can you give for me your flie.pdf you use to install thank you very much |
Hello
I had the same problem and I am trying to fix it follwing the advices of the discussion that you can find in this forum (http://www.cfd-online.com/Forums/flu...oad-error.html) I am not yet finished to download the tool needed to fix the problem, so I can be sure that It will work, (if It will work I will contact you, in order to explain step by step the procedure) |
Goooooooooooooooooood job
It works. So if you need some advise you just have to ask for. Bye |
problem with compiling udf
Quote:
while i was compiling my udf i encountered this message "The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (ntx86)." i have install microsoft visual studio 2012 ultimate version and i have run fluent with it's command but i don't know why i cannot load my udf :( |
Quote:
|
me too
Quote:
thank u very much |
All times are GMT -4. The time now is 13:25. |