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

Problem with compiling the UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2011, 15:10
Default Problem with compiling the UDF
  #1
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
I followed the steps posted by amir here:
http://www.cfd-online.com/Forums/blo...fluent-vc.html

to compile udf. I have fluent 6.3.26 and MSVC++ 2008 express (which has visual studio 9.0, which consists of INCLUDE and LIB folder).

when I compile UDF fluent gives these commands:
-----------------------------------------------------------------
Deleted old libudf\ntx86\3d\libudf.dll
1 file(s) copied.
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3d\makefile")
1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\3d")()

Done.
-------------------------------------------------------------------

When I load UDF I get these commands:
-----------------------------------------------------------------
"c:/users/raghu mohan reddy/desktop/gambit tut"

Opening library "libudf"...
Error: open_udf_library: The system cannot find the file specified.

Error Object: ()
------------------------------------------------------------------

The log file in the libudf file created shows this:
----------------------------------------------------------
NMAKE : U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0xc0000135'
Stop.
-----------------------------------------------------

Please help me in this issue

Thank You,
Raghu
raghu mohan is offline   Reply With Quote

Old   November 28, 2011, 05:53
Default
  #2
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17
Josyula is on a distinguished road
Raghu,
If you are using a 64 bit machine,
(a) download and install Microsoft Windows SDK v.7.1
(b) set the FLUENT environment variables
(c) open Windows SDK v.7.1 command prompt and type 'fluent'. You'll get the FLUENT launcher.

Try compiling now and see.
Josyula is offline   Reply With Quote

Old   November 29, 2011, 22:04
Default
  #3
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
Thank You very much for your suggestion.

With the help of first two steps (a,b) itself the compiling and loading worked out well. I just copied one of the libraries necessary for compiling from SDK library to VS10 library.
raghu mohan is offline   Reply With Quote

Old   November 29, 2011, 23:15
Default
  #4
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
I am posting how the above problm got solved here (May be a solution for 64-bit machine users only):


Actually I figured out VC++2008 which I was using was not compiling even as simple program in my PC, So I installed the VS2010 and ran a simple program and it was compiling and running good.

Then I changed the system variables as suggested by the Amir's link (I gave in 1st post).

Even though I was suffering with compatability issues bcoz Fluent I installed has Windows Xp compatability mode ON. I turned it OFF. (Error in Fluent:'IDB' is illegal extension for PDB file)

Then came another Error: " LINK1104: cannot open file 'kernel32.lib' " . I just copied this library from Program Files (X86)--->MS SDKs---->Windows----->v7.0A--->Lib-->Kernel32 and pasted in MSVS10.0-->VC-->lib

That's it done. Thanks for reading.

Thank You,
Raghu
raghu mohan is offline   Reply With Quote

Old   December 9, 2011, 01:23
Default udf
  #5
Member
 
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 15
kabilan is on a distinguished road
hai mr.ragu
i have same problem while compile my udf.
actually i m using win 7 64bit.
could u pls send me microsoft windows sdk v.7.1?
(hareesh.aero@gmail.com)

very thanks......
also one doubt, for my dynamic mesh problem i need udf,for compiling shall i need both visual studio c++ and microsoft windows sdk v.7.1?
thanks
kabilan is offline   Reply With Quote

Old   December 15, 2011, 23:03
Default
  #6
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
hi,
Sorry for the late reply. Are you done with the problem you had?
raghu mohan is offline   Reply With Quote

Old   December 15, 2011, 23:22
Default
  #7
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
Actually I downloaded the MSVS from MS Dream Spark so they gave me whole package which consists of Microsoft SDK V7.0A. If you want that folder I will try to send you.

I don't know exactly whether both of them(sdk and vc++) are required to compile UDF but as I have copied a file ("kernel32") from MS sdk folder to MSVS library I am guessing that both are needed.

Thanks,
Raghu
raghu mohan is offline   Reply With Quote

Old   December 16, 2011, 15:13
Default
  #8
Member
 
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 15
kabilan is on a distinguished road
very thanks for reply..
could u pls help to work udf for win 7 64bit?
pls send me needed files.
thanks
kabilan is offline   Reply With Quote

Old   December 16, 2011, 15:18
Default
  #9
Member
 
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 15
kabilan is on a distinguished road
hai
i have downladed as u told but in working with command prompt error shows and shows x64compiler not installed in ur system
could u pls rectify my problem?
kabilan is offline   Reply With Quote

Old   December 16, 2011, 16:37
Default
  #10
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
raghu mohan is on a distinguished road
I don't know much of this. But I will try to give you information based on the way I did it. Also, it is better if you post this separately on the discussion forum so that others can help you.

Coming to your problem, Are you talking about the command prompt opened from MSVS or opened in normal way. Can you please let me know more details what you r doing. I think you have downloaded the MSVS for 32-bit(x64). It is x86(64-bit) which you need to download.

Thanks,
Raghu
raghu mohan is offline   Reply With Quote

Old   December 16, 2011, 23:34
Default udf
  #11
Member
 
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 15
kabilan is on a distinguished road
actually i m trying to load my compiled udf c file.
i m using w7 64bit...
i told already my errors could u pls solve my problem?

Thanks,
Raghu[/QUOTE]
kabilan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 15 November 4, 2019 18:05
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
what's the problem with my udf zzyan FLUENT 0 November 4, 2010 03:56
HELP! Problem compiling UDF function Syrakus FLUENT 6 April 7, 2006 10:48
UDF compiling problem for 3D simulation Marijo FLUENT 1 March 28, 2006 03:21


All times are GMT -4. The time now is 23:20.