|
[Sponsors] |
July 9, 2013, 04:58 |
Compiling/Interpret UDF
|
#1 |
Member
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13 |
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 |
|
July 9, 2013, 09:39 |
|
#2 |
Senior Member
|
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. |
|
July 9, 2013, 10:46 |
|
#3 |
Member
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13 |
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. |
|
July 10, 2013, 00:43 |
|
#4 |
Member
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13 |
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 |
|
July 10, 2013, 03:40 |
|
#5 |
Senior Member
|
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.
|
|
July 10, 2013, 05:06 |
|
#6 |
Senior Member
|
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, |
|
July 11, 2013, 10:28 |
|
#7 |
Member
Christopher Hershey
Join Date: Feb 2012
Location: East Lansing, Michigan
Posts: 41
Rep Power: 14 |
Please see my post on setting up the UDF environment here:
http://www.cfd-online.com/Forums/flu...l-command.html |
|
July 12, 2013, 00:36 |
|
#8 |
Member
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13 |
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 |
|
August 8, 2013, 01:33 |
how to start fluent in the visual studio frompt
|
#9 |
New Member
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 13 |
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 |
|
August 8, 2013, 02:43 |
|
#10 | |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
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. |
||
August 8, 2013, 05:30 |
|
#11 |
Senior Member
|
What error do you get?
|
|
August 8, 2013, 06:02 |
question
|
#12 |
New Member
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 13 |
||
August 8, 2013, 06:41 |
|
#13 |
Senior Member
|
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.
|
|
August 9, 2013, 05:50 |
|
#14 | |
New Member
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 13 |
Quote:
you can tell me with using microsoft SDk to start Fluent. |
||
August 10, 2013, 04:24 |
Hi Anantharishnan
|
#15 | |
New Member
tran trung
Join Date: Aug 2013
Posts: 23
Rep Power: 13 |
Quote:
my mail is tranvan_trung551987@yahoo.com. Can you give for me your flie.pdf you use to install thank you very much |
||
August 11, 2013, 16:14 |
|
#16 |
New Member
Enrico Di Cesare
Join Date: Aug 2013
Location: Verona Italia
Posts: 4
Rep Power: 13 |
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) |
|
August 11, 2013, 17:10 |
|
#17 |
New Member
Enrico Di Cesare
Join Date: Aug 2013
Location: Verona Italia
Posts: 4
Rep Power: 13 |
Goooooooooooooooooood job
It works. So if you need some advise you just have to ask for. Bye |
|
March 31, 2014, 13:20 |
problem with compiling udf
|
#18 | |
New Member
mohammadjavad zeidi
Join Date: Dec 2013
Posts: 1
Rep Power: 0 |
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 |
||
April 1, 2014, 06:12 |
|
#19 | |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Quote:
|
||
May 3, 2014, 08:06 |
me too
|
#20 | |
New Member
sarighulikhan
Join Date: Mar 2014
Posts: 15
Rep Power: 12 |
Quote:
thank u very much |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |