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

UDF with Visual C++ 2005 Express Edition

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

Like Tree1Likes
  • 1 Post By kokoory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2007, 05:30
Default UDF with Visual C++ 2005 Express Edition
  #1
Martin
Guest
 
Posts: n/a
Hi everybody,

I have the following problem: I cannot load the UDF in Fluent. The reason is the installtion of the C Compiler didn't work. I wrote a very simple test-udf.c : #include <udf.h>

DEFINE_ON_DEMAND(test_demand) {

Message("Hello world!\n");

}

I used Windows XP and installed Fluent 6.2.26, Visual C++ 2005 Express Edition and MS Framework Network SDK v1.1. I want to work with Fluent on a single node, so there shouldn't be problems of parallel compiling and so on.

I start Flund on command line mode, read a sample case file, then Define/User Defined/Functions compiled/add.. hello-udf.c, click on BUILD:

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.

Fluent doesn't say anything about an error, but also nothing about the compilation process. A folder libudf was created in the same sub-directory.

Then Loading the UDF:

"D:/"

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

Error Object: ()

What did I do wrong? With Visual Toolkit 2003 I worked former times, I didn't have problems, now this MS 2007 Express version makes so much trouble. Does anyone of you have experience with setting up Fluent UDF for Visual C++ 2005 Express Edition?
  Reply With Quote

Old   July 25, 2007, 06:55
Default Re: UDF with Visual C++ 2005 Express Edition
  #2
Joe.
Guest
 
Posts: n/a
Set your environment variables correctly in your user profile.

Verify by betting a return from "cl.exe" on a freshly opened command line.
  Reply With Quote

Old   July 25, 2007, 07:48
Default Re: UDF with Visual C++ 2005 Express Edition
  #3
Martin
Guest
 
Posts: n/a
Hi, thanks for the advice, but still it does not work. Calling cl.exe from command line, I get an error message, saying cl.exe can't be executed cause mspdb80.dll is missing.

The pathes were configured like this: Environment variables: FLUENT_INC c:\fluent.inc;C:\Program Files\Microsoft Visual Studio 8\ and System Variables MSVC C:\program files\Microsoft Visual Studio 8\

Do you still have any advices?
  Reply With Quote

Old   July 25, 2007, 09:42
Default Re: UDF with Visual C++ 2005 Express Edition
  #4
Joe
Guest
 
Posts: n/a
You have only set 2 of the 10+ required environment variables.
  Reply With Quote

Old   July 25, 2007, 09:49
Default Re: UDF with Visual C++ 2005 Express Edition
  #5
Martin
Guest
 
Posts: n/a
so, which environment variables I still have to set? Where can I find a list?
  Reply With Quote

Old   July 27, 2007, 03:44
Default Re: UDF with Visual C++ 2005 Express Edition
  #6
flga
Guest
 
Posts: n/a
I don't remember the command right now, but in the Visual C++ manual is explained how to set the enviroment variables to compile using the command prompt.
  Reply With Quote

Old   July 27, 2007, 05:54
Default Re: UDF with Visual C++ 2005 Express Edition
  #7
Martin
Guest
 
Posts: n/a
Hi,

I just dowloaded this free version of C-compiler. There's no manuale etc. The problem is on Fluent-side. There must be someone in the world, who used Fluent 6.2.23 + Visual c++ Express version and configured the environment variables correctly. Plese, tell me the configurations. Thanks in advance.
  Reply With Quote

Old   February 9, 2011, 06:39
Default
  #8
New Member
 
Joseph Duff
Join Date: Feb 2011
Posts: 1
Rep Power: 0
josephduff is on a distinguished road
Quote:
Originally Posted by Martin
;143849
Hi, thanks for the advice, but still it does not work. Calling cl.exe from command line, I get an error message, saying cl.exe can't be executed cause mspdb80.dll is missing.

any advices?
hi,
http://www.fix-all-dll-errors.com/mspdb80.dll/

u can go to this site...this will help in case of missing or for downloading dll's or also if there is errors in dll's..!
I also registered few dll's from this site...worked in my case
josephduff is offline   Reply With Quote

Old   February 12, 2011, 05:00
Default
  #9
New Member
 
denny lee
Join Date: Feb 2011
Posts: 7
Rep Power: 15
kokoory is on a distinguished road
Please go to 'system varibles'

Next, add the below properly to path

C:\Program Files\Microsoft Visual Studio 8(Here is your version)\VC\bin;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

Finally, add the new variables to the system variables.

variable name : INCLUDE
variable value : C:\Program Files\Microsoft Visual Studio 8\VC\include

variable name : LIB
variable value : C:\Program Files\Microsoft Visual Studio 8\VC\lib

I should be worked, if u have installed Fluent and VS.

Oh.... and also, Find the setevn at Ansys / fluent / fluent 12.** and run.
Amir likes this.
kokoory is offline   Reply With Quote

Old   April 19, 2011, 10:25
Default
  #10
New Member
 
alven
Join Date: Mar 2009
Location: Malaysia
Posts: 25
Blog Entries: 1
Rep Power: 17
alven299 is on a distinguished road
Hi Kokoory,

May I know how can I access the 'system varibles'?

thanks
alven299 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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
how to access a variable in DPM within a UDF patrick FLUENT 13 September 15, 2010 08:38
How do you express UDF below equation? Sang Seok Han FLUENT 1 June 2, 2008 09:47


All times are GMT -4. The time now is 12:26.