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/)
-   -   compile_udf (https://www.cfd-online.com/Forums/fluent-udf/99648-compile_udf.html)

thuhangbk48 April 8, 2012 16:32

compile_udf
 
Dear all,
As Mohsin and Maciek's advice, I tried to compile (GUI) by: installed Visual Studio and Set the correct environment variables. However, I can not run Fluent from Visual studio.
The path in my computer: C:\Program files\ANSYS Inc. The case & data and udf are placed in D.
I tried to run fluent by: all program/Microsoft visual studio/visual studio tools/visual studio command prompt. Then I typed Fluent or path, but it did not run! the error (it not recognized as internal or external command, operable program or bath file).
Did you have any experience in this problem? Please share to me?
I am looking forward your reply,
Kind regards,
Tran Hang

Daniel Tanner April 9, 2012 07:56

It is unable to find the executable to launch fluent. This means that it is probably not set properly in environmental variables.
Right-click on "my computer" icon -> go to advanced tab, find the variable PATH. Check that this list contains the directory to the fluent executable.
You can find the directory by right-clinking on the fluent icon -> go to properties. Look at the target directory, this must be set in PATH.
On my computer this is H:\fluent\ANSYS Inc\v140\fluent\ntbin\ntx86\ (note that you leave out the fluent.exe part).
You can also try to navigate to this in command prompt.
Also you need to be careful as changes to the environmental variables only effect new command prompts that are opened (if you already have one open close it and open it again).

Let me know how it goes and good luck.

thuhangbk48 April 9, 2012 11:31

Dear Daniel Tanner,
Thank you so much. It is done! you help me to deal with the problem which I spent some sleepless night!
Best wishes for you
Quote:

Originally Posted by Daniel Tanner (Post 353768)
It is unable to find the executable to launch fluent. This means that it is probably not set properly in environmental variables.
Right-click on "my computer" icon -> go to advanced tab, find the variable PATH. Check that this list contains the directory to the fluent executable.
You can find the directory by right-clinking on the fluent icon -> go to properties. Look at the target directory, this must be set in PATH.
On my computer this is H:\fluent\ANSYS Inc\v140\fluent\ntbin\ntx86\ (note that you leave out the fluent.exe part).
You can also try to navigate to this in command prompt.
Also you need to be careful as changes to the environmental variables only effect new command prompts that are opened (if you already have one open close it and open it again).

Let me know how it goes and good luck.



All times are GMT -4. The time now is 16:53.