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

UDF compiler help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2010, 08:50
Default UDF compiler help
  #1
Member
 
Hongjin Wang
Join Date: Mar 2010
Posts: 37
Rep Power: 16
sosososo1114 is on a distinguished road
dear all;

I encountered a problem when i compile the udf in fluent's tourial champter 21. When I try to build Libary 'libudf' as it says in the tourial, Fluent always messages me that Link: fatal error Link 1104 can not find LIBCMT.lib.
What's wrong? Could u tell me what should I do? I do have this file in my visual studio 2008...

MAny thxs
sosososo1114 is offline   Reply With Quote

Old   March 27, 2010, 09:15
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Do you have set the correct PATH variables?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 27, 2010, 21:48
Default
  #3
Member
 
Hongjin Wang
Join Date: Mar 2010
Posts: 37
Rep Power: 16
sosososo1114 is on a distinguished road
Quote:
Originally Posted by sega View Post
Do you have set the correct PATH variables?
Thank ur reply. I set the system PATH variable as the path of mspdb80.dll, 'H:\program file\ microsoft visual studio9.0\VC\bin'. I am not sure wheter it is correct. And are there aother PATH variables asking a resetting?
sosososo1114 is offline   Reply With Quote

Old   March 27, 2010, 23:59
Default
  #4
Member
 
Hongjin Wang
Join Date: Mar 2010
Posts: 37
Rep Power: 16
sosososo1114 is on a distinguished road
THx dear all, by asking another experienced fluent user, I have solved my problems.

I ran the FLuent.exe in the visual studion command prompts. And then the conduct.c can be compiled.

Here is another thing I would like to share with u. I dont install my studio on the system disk. That is to say Micro SDks and M VS are in deferent disks. Thus when I load fluent in the command prompts at first time. Fluent messages another bug: Link error 1141, can not open kernel32.lib. The solution can be as essy as copying kernael32.lib into /vc/lib

regarts
sosososo1114 is offline   Reply With Quote

Old   March 28, 2010, 05:17
Default
  #5
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Ok, great. Than have fun with FLUENT.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   March 28, 2010, 23:01
Smile
  #6
Member
 
Hongjin Wang
Join Date: Mar 2010
Posts: 37
Rep Power: 16
sosososo1114 is on a distinguished road
Thanks Sega!
sosososo1114 is offline   Reply With Quote

Old   January 20, 2011, 08:03
Default
  #7
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 40
Rep Power: 17
ustbdynamic is on a distinguished road
Dear sosososo1114 ,
I have encountered the same problem you issued. Would you like to tell me how to solve this problem in detail. How to run the FLuent.exe in the visual studion command prompts?

Thank you very much!



Quote:
Originally Posted by sosososo1114 View Post
THx dear all, by asking another experienced fluent user, I have solved my problems.

I ran the FLuent.exe in the visual studion command prompts. And then the conduct.c can be compiled.

Here is another thing I would like to share with u. I dont install my studio on the system disk. That is to say Micro SDks and M VS are in deferent disks. Thus when I load fluent in the command prompts at first time. Fluent messages another bug: Link error 1141, can not open kernel32.lib. The solution can be as essy as copying kernael32.lib into /vc/lib

regarts
ustbdynamic is offline   Reply With Quote

Old   January 20, 2011, 09:34
Default
  #8
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
@xingangzheng

1. Add fluent to your Windows path (this means that if you write fluent in the Command Prompt and press Enter it will start Fluent), for adding a program to the Windows path do a search on Google.

2. Open Visual Studio 20xx Command Prompt and from here start Fluent, this way Fluent will know where to search for the C compiler.

Do
DoHander is offline   Reply With Quote

Old   January 21, 2011, 01:11
Default
  #9
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 40
Rep Power: 17
ustbdynamic is on a distinguished road
Dear DoHander,

Thank you very much for kind help!
I will try it.

Quote:
Originally Posted by DoHander View Post
@xingangzheng

1. Add fluent to your Windows path (this means that if you write fluent in the Command Prompt and press Enter it will start Fluent), for adding a program to the Windows path do a search on Google.

2. Open Visual Studio 20xx Command Prompt and from here start Fluent, this way Fluent will know where to search for the C compiler.

Do
ustbdynamic is offline   Reply With Quote

Old   January 24, 2011, 06:02
Default Udf
  #10
Member
 
Tobino
Join Date: Jan 2011
Location: Osaka,Japan
Posts: 33
Rep Power: 15
tobino is on a distinguished road
Hi everybody,

I am studying UDF, but I do not know how to run it. I am already setup Virual stdio 2008. But it is not run.

Please help me !
tobino 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
UDF compiler michilin FLUENT 2 January 3, 2007 11:24
Compile UDF with a C++ compiler Luca FLUENT 7 December 27, 2005 00:05
C++ Compiler for UDF Dmitriy Makarov FLUENT 1 December 12, 2000 03:41


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