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

UDF Compilation Error for Fluent 12.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Amir
  • 1 Post By lei

Reply
 
LinkBack Thread Tools Display Modes
Old   June 15, 2011, 22:36
Default UDF Compilation Error for Fluent 12.1
  #1
New Member
 
Join Date: May 2011
Posts: 4
Rep Power: 6
carteblanche is on a distinguished road
Hi

I am trying to compile a UDF for CG motion using fluent 12.1. When I build the library file and try to load it, it shows me the error open_udf_library:system cannot find the file specified. I searched a lot regarding this issue and found out that this error is Visual Studio related. I have Visual Studio 2010 Ultimate installed and tried starting fluent from the command prompt by visual studio, but it still gives me the same error. I have also tried all the solutions previously mentioned in this forum, but that was for Fluent 6.3 and none of those works for 12.1. Is this some problem with the environment variables? Can someone help me regarding this?

thanks in advance
CB
carteblanche is offline   Reply With Quote

Old   June 16, 2011, 03:26
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
ensure you have linked FLUENT with VC++ by setting its environment, for checking that, it's better to compile and load another simple UDF.
Amir is offline   Reply With Quote

Old   September 24, 2011, 05:08
Default
  #3
New Member
 
Mohammad Iman Khozeymeh
Join Date: Sep 2011
Posts: 2
Rep Power: 0
imankhozeymeh is on a distinguished road
hello
I have the same problem, but how can I link fluent with VC++?
thanks
imankhozeymeh is offline   Reply With Quote

Old   September 24, 2011, 07:41
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Quote:
Originally Posted by imankhozeymeh View Post
hello
I have the same problem, but how can I link fluent with VC++?
thanks
http://www.cfd-online.com/Forums/blo...fluent-vc.html
__________________
Amir
Amir is offline   Reply With Quote

Old   September 24, 2011, 08:46
Default
  #5
New Member
 
Mohammad Iman Khozeymeh
Join Date: Sep 2011
Posts: 2
Rep Power: 0
imankhozeymeh is on a distinguished road
Hi Amir

I copied the variables to the FLUENT folder..(not sure if you meant this)
I am using Visual studio 10 prof. and FLUENT 12.1.4
when i start Fluent , at UDF compiler setup I link it to Microsoft Visual Studio 10.0\VC\vcvarsall.bat
I did everything where suggest in the forum, but steel this error comes out.

Error: open_udf_library: The system cannot find the file specified.
Error Object: #f

Can you help me with this, thank you
imankhozeymeh is offline   Reply With Quote

Old   September 24, 2011, 11:39
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
Quote:
Originally Posted by imankhozeymeh View Post
I copied the variables to the FLUENT folder..(not sure if you meant this)
you need to have FLUENT in your system path. execute "setenv.exe" which is in your FLUENT installation folder.
Quote:
Originally Posted by imankhozeymeh View Post
I am using Visual studio 10 prof. and FLUENT 12.1.4
when i start Fluent , at UDF compiler setup I link it to Microsoft Visual Studio 10.0\VC\vcvarsall.bat
I did everything where suggest in the forum, but steel this error comes out.

Error: open_udf_library: The system cannot find the file specified.
Error Object: #f
Ensure your UDF file name doesn't include any spaces.
If you cannot handle this instruction, there is another way but it's not permanent; First execute "setenv.exe" and then load FLUENT from VC++ command prompt.

Bests,
Behnam Ghadimi likes this.
__________________
Amir
Amir is offline   Reply With Quote

Old   October 3, 2011, 05:45
Default
  #7
New Member
 
behnam
Join Date: Sep 2011
Location: Iran
Posts: 20
Rep Power: 5
Behnam Ghadimi is on a distinguished road
Quote:
Originally Posted by Amir View Post
Hi,

you need to have FLUENT in your system path. execute "setenv.exe" which is in your FLUENT installation folder.

Ensure your UDF file name doesn't include any spaces.
If you cannot handle this instruction, there is another way but it's not permanent; First execute "setenv.exe" and then load FLUENT from VC++ command prompt.

Bests,
thanks a lot Amir,
i do what you said, it is work.
Behnam Ghadimi is offline   Reply With Quote

Old   November 4, 2011, 16:23
Default
  #8
lei
New Member
 
Lei Chen
Join Date: Mar 2010
Posts: 5
Rep Power: 7
lei is on a distinguished road
Thanks Amir for your discussions.
I had the same problem, had just solved it using the method mentioned by Amir. I also would like to add some comments on the environment settings, because it also depends on the operating system you use (32/64 bit windows). So, if you are using win64, the path should be in the form of "Program Files (x86)...". For example, I use winXP64/Visual Studio 10/Fluent 12.1, and the variables in "start>My computer>Properties>Advanced>Environment Variables>System variables" are set to be:

INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include;

LIB =C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64

Path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;

Lei
Amir likes this.
lei is offline   Reply With Quote

Old   July 16, 2015, 01:48
Default libudf not getting created when loading.
  #9
New Member
 
Join Date: Jul 2015
Posts: 1
Rep Power: 0
kulkarniketan.1985 is on a distinguished road
Hi
When I am trying to load my udf in Fluent it is says

(chdir "libudf")()
(chdir "win64\2DDP")()
# Generating ud_io1.h

And then it just doesn't do anything else.

Can you please advise why it is not creating libudf.dll after this step?
kulkarniketan.1985 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compilation error Szabolcs Varga Fluent UDF and Scheme Programming 3 April 11, 2015 13:49
UDF compilation problem on Linux System Nitin Pathak FLUENT 1 July 10, 2014 11:41
UDF compilation problem -- "undeclared variable" Henrik Ström FLUENT 1 September 21, 2005 05:25
udf compilation for dynamic mesh Rahul FLUENT 10 June 27, 2003 22:10
Compiled UDF / Compilation problem mikhail FLUENT 1 October 13, 2000 06:12


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