CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Compiling/Interpret UDF (https://www.cfd-online.com/Forums/fluent-udf/120531-compiling-interpret-udf.html)

Bin July 9, 2013 03:58

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

Ananthakrishnan July 9, 2013 08:39

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.

Bin July 9, 2013 09:46

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.

Bin July 9, 2013 23:43

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

blackmask July 10, 2013 02:40

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.

Ananthakrishnan July 10, 2013 04:06

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,

Hershey July 11, 2013 09:28

Please see my post on setting up the UDF environment here:

http://www.cfd-online.com/Forums/flu...l-command.html

Bin July 11, 2013 23:36

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

tranvantrung551987 August 8, 2013 00:33

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

vasava August 8, 2013 01:43

Quote:

Originally Posted by tranvantrung551987 (Post 444485)
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

Where exactly you add these path?

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.

Ananthakrishnan August 8, 2013 04:30

What error do you get?

tranvantrung551987 August 8, 2013 05:02

question
 
Quote:

Originally Posted by Ananthakrishnan (Post 444521)
What error do you get?

hello everybody
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

Ananthakrishnan August 8, 2013 05:41

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.

tranvantrung551987 August 9, 2013 04:50

Quote:

Originally Posted by Ananthakrishnan (Post 444539)
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.

thank you so much
you can tell me with using microsoft SDk to start Fluent.

tranvantrung551987 August 10, 2013 03:24

Hi Anantharishnan
 
Quote:

Originally Posted by Ananthakrishnan (Post 438832)
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,

Hi
my mail is tranvan_trung551987@yahoo.com. Can you give for me your flie.pdf you use to install
thank you very much

Enricodex August 11, 2013 15:14

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)

Enricodex August 11, 2013 16:10

Goooooooooooooooooood job

It works. So if you need some advise you just have to ask for.

Bye

mohammadjavad313 March 31, 2014 12:20

problem with compiling udf
 
Quote:

Originally Posted by Enricodex (Post 444997)
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)

hello enrico
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 :(

ghost82 April 1, 2014 05:12

Quote:

Originally Posted by mohammadjavad313 (Post 483055)
hello enrico
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 :(

Retain the source file and delete the libudf folder; then recompile the source on your pc.

hane May 3, 2014 07:06

me too
 
Quote:

Originally Posted by Ananthakrishnan (Post 438832)
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 sent them to my id too
thank u very much


All times are GMT -4. The time now is 13:25.