CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

compile_udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2012, 16:32
Default compile_udf
  #1
New Member
 
Join Date: Mar 2012
Posts: 9
Rep Power: 14
thuhangbk48 is on a distinguished road
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
thuhangbk48 is offline   Reply With Quote

Old   April 9, 2012, 07:56
Default
  #2
Member
 
Daniel Tanner
Join Date: Apr 2009
Posts: 54
Rep Power: 18
Daniel Tanner is on a distinguished road
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.
Daniel Tanner is offline   Reply With Quote

Old   April 9, 2012, 11:31
Default
  #3
New Member
 
Join Date: Mar 2012
Posts: 9
Rep Power: 14
thuhangbk48 is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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