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

Error compile file udf

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2009, 06:34
Default Error compile file udf
  #1
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Hi everybody

I have problem with compile udf in Windows XP x64bit.
I compiled and used a UDF succesfully on Linux, but it fails to compile on Windows. So Iīm using Fluent version Fluent-ntx86-6.3.26.
This is my file whose I need compile:

Code:
http://rapidshare.com/files/245477895/manualUDFexmaple_2.3.27__ex1_.c.html

And here is error messages from Fluent:



Could you please somebody help or tell me what I need for right compile.

PS:sorry my english is bad
czfluent is offline   Reply With Quote

Old   June 17, 2009, 08:54
Default
  #2
Member
 
laurentb's Avatar
 
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 17
laurentb is on a distinguished road
What compiler do you use ? you need a 32 bits compiler with fluent ntx86.
laurentb is offline   Reply With Quote

Old   June 17, 2009, 09:50
Default
  #3
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Iīm try to use windows c sdk ... but I donīt know how itīs working ... please could you send me step by step how to compile ?
czfluent is offline   Reply With Quote

Old   June 17, 2009, 10:25
Default
  #4
Member
 
laurentb's Avatar
 
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 17
laurentb is on a distinguished road
See instructions in the pdf file attached

Microsoft C++
2008 Express Edition
which can be located at this link:
http://www.microsoft.com/downloads/d...DisplayLang=en
Attached Files
File Type: pdf winfaq_print.pdf (47.9 KB, 285 views)
laurentb is offline   Reply With Quote

Old   June 18, 2009, 18:11
Default
  #5
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
I have still same problem ...
czfluent is offline   Reply With Quote

Old   June 19, 2009, 00:22
Default
  #6
los
Member
 
Tiago Macarios
Join Date: Mar 2009
Posts: 35
Rep Power: 17
los is on a distinguished road
I ask myself why would you use a 32 bits fluent in a 64 bits environment...
Anyway it looks like you compiler is not set in the system path, that's why fluent cannot find it.
Try to concatenate you compiler directory at the system path, if it doesn't work, I think that Visual studio 2008 professional can compile 32 bits too, why don't you give it a try?
los is offline   Reply With Quote

Old   June 19, 2009, 03:31
Default
  #7
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Quote:
Originally Posted by los View Post
I ask myself why would you use a 32 bits fluent in a 64 bits environment...
Anyway it looks like you compiler is not set in the system path, that's why fluent cannot find it.
Try to concatenate you compiler directory at the system path, if it doesn't work, I think that Visual studio 2008 professional can compile 32 bits too, why don't you give it a try?

Hi,

so now Iīm using fluent 6.3.26 with Windows XP 32b. What does you mean concatenate system path with compiler directory My system path for fluent:
C:\Program Files\Fluent.Inc
and
C:\Program Files\Microsoft Visual Studio 9.0\VC\

"Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: VC Express
Microsoft Visual C++ 2008 91909-152-0000052-60589
"

Where I can compile file in Microsoft Visual C++ 2008


Iīm try to use Interpreted UDFs from Fluent:


cpp -I"C:\PROGRA~1\Fluent.Inc\fluent6.3.26/src" -I"C:\PROGRA~1\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\PROGRA~1\Fluent.Inc\fluent6.3.26/client/src" -I"C:\PROGRA~1\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "C:\working\man
alUDFexmaple_2.3.27_[ex1].c"
Error: C:\working\manualUDFexmaple_2.3.27_[ex1].c: line 51: structure reference not implemented

Last edited by czfluent; June 19, 2009 at 04:23.
czfluent is offline   Reply With Quote

Old   June 23, 2009, 03:40
Default
  #8
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Could you help me please, anyone?

When I try to load my case and data Fleunt answer me:

Building...
grid,
Cell Centroid is xc 3.733333 yc 0.200000
WARNING: no face with given nodes. Thread 2, cell 9
Error: Build_Grid: grid error.
Clearing partially read grid.

Error: Null Domain Pointer

Error Object: ()



But the other PC working ... maybe wrong install ?
czfluent is offline   Reply With Quote

Old   July 7, 2009, 17:02
Default
  #9
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
so now I know why the FlUENT write me:

Building...
grid,
Cell Centroid is xc 3.733333 yc 0.200000
WARNING: no face with given nodes. Thread 2, cell 9
Error: Build_Grid: grid error.
Clearing partially read grid.

Error: Null Domain Pointer

Error Object: ()


I have a bad case data and files ... but still compile donīt working ...
czfluent is offline   Reply With Quote

Old   July 8, 2009, 17:21
Default
  #10
New Member
 
SK
Join Date: Jul 2009
Posts: 8
Rep Power: 17
friends.sk is on a distinguished road
Please Start Fluent from c++ command prompt.

It should work. best wishes.
friends.sk is offline   Reply With Quote

Old   July 26, 2009, 16:09
Default
  #11
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Quote:
Originally Posted by friends.sk View Post
Please Start Fluent from c++ command prompt.

It should work. best wishes.
but, how to do that? please some screen? thank you!
czfluent is offline   Reply With Quote

Old   July 30, 2009, 04:59
Default
  #12
Member
 
laurentb's Avatar
 
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 17
laurentb is on a distinguished road
print screen : visual c++ command prompt

then launch fluent, for example :
C:\Fluent.Inc\ntbin\ntx86\fluent.exe -r6.3.26
Attached Images
File Type: jpg vc_prompt.jpg (60.8 KB, 123 views)
laurentb is offline   Reply With Quote

Old   July 31, 2009, 02:54
Default
  #13
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
ok thank itīs working but ...



The system have not find this file ... or something like this write me fluent -...
(system "copy C:\PROGRA~1\Fluent.Inc\fluent6.3.26\src\makefile_n t.udf libudf\ntx86\2ddp\makefile")
1 copy file …
(chdir "libudf")()
(chdir "ntx86\2ddp")()

Done.
"c:/"





Opening library "libudf"...
Error: open_udf_library: The system have not find this file ...

Error Object: ()

Last edited by czfluent; July 31, 2009 at 02:58. Reason: added picture
czfluent is offline   Reply With Quote

Old   August 18, 2009, 08:10
Default
  #14
New Member
 
matth
Join Date: Aug 2009
Posts: 8
Rep Power: 17
dahu007 is on a distinguished road
Did you find a solution ? I have the same problem with visual C++ 2008 express !
dahu007 is offline   Reply With Quote

Old   August 21, 2009, 05:06
Default
  #15
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Quote:
Originally Posted by dahu007 View Post
Did you find a solution ? I have the same problem with visual C++ 2008 express !

No, I have still problem with error ...
Please could you anyone help me ad my dahu007 ?
czfluent is offline   Reply With Quote

Old   August 21, 2009, 05:26
Default
  #16
New Member
 
SK
Join Date: Jul 2009
Posts: 8
Rep Power: 17
friends.sk is on a distinguished road
I think your udf file is not in the same directory as your cas and data file. Pls. Check
friends.sk is offline   Reply With Quote

Old   August 21, 2009, 06:04
Default
  #17
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Quote:
Originally Posted by friends.sk View Post
I think your udf file is not in the same directory as your cas and data file. Pls. Check

No I have ... look

czfluent is offline   Reply With Quote

Old   August 21, 2009, 06:12
Default
  #18
New Member
 
matth
Join Date: Aug 2009
Posts: 8
Rep Power: 17
dahu007 is on a distinguished road
I reinstaled Microsoft visual C++ and Nox it works !!
dahu007 is offline   Reply With Quote

Old   August 21, 2009, 08:02
Default
  #19
New Member
 
Join Date: Jun 2009
Posts: 13
Rep Power: 17
czfluent is on a distinguished road
Quote:
Originally Posted by dahu007 View Post
I reinstaled Microsoft visual C++ and Nox it works !!

yes, me tooĻ.. still same problem ...
czfluent is offline   Reply With Quote

Old   August 22, 2009, 16:31
Default
  #20
New Member
 
matth
Join Date: Aug 2009
Posts: 8
Rep Power: 17
dahu007 is on a distinguished road
when I instaled Microsoft visual C++ I picked all the option. You have to install microsoft.net framework 3.5 ans above all the msdn library !
Good luck !
dahu007 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
Convection discretization schemes for LES sek OpenFOAM Running, Solving & CFD 38 July 31, 2017 15:30
[OpenFOAM] Paraview command not found hardy ParaView 7 September 18, 2008 05:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
UDF source file zhou FLUENT 3 September 29, 2003 12:53


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