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

udf not compiling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mamad7192

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2017, 11:55
Default udf not compiling
  #1
New Member
 
Join Date: Mar 2015
Posts: 28
Rep Power: 11
mamad7192 is on a distinguished road
hello guys,
i am trying to simulate missile silo launch in fluent and i get errors while trying to compile the udf, i used both 6.3.26 and fluent 18 64bits. this is the error for 6.3.26 and sth similar in v18

Deleted old libudf\ntx86\2ddp\libudf.dll
1 file(s) copied.
(system "copy c:\fluent.inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")
1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\2ddp")()
silo.c
c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2143: syntax error : missing '{' before ':'
c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2059: syntax error : ':'
c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2061: syntax error : identifier 'CX_DLL_GetProc'
c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : ';'
c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : 'type'

i used my v18 to compile other udfs and it works fine so i think its not a vs issue.

anybody can help me?
thanks a lot

here is the udf
http://cae-club.ru/sites/default/fil...es/2322/silo.c
Svetlana likes this.
mamad7192 is offline   Reply With Quote

Old   October 3, 2017, 06:31
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
The indicated problem is in not in your UDF but in the code included with Fluent. So this suggests it is a configuration issue.
pakk is offline   Reply With Quote

Old   October 3, 2017, 12:00
Default
  #3
New Member
 
Join Date: Mar 2015
Posts: 28
Rep Power: 11
mamad7192 is on a distinguished road
Quote:
Originally Posted by pakk View Post
The indicated problem is in not in your UDF but in the code included with Fluent. So this suggests it is a configuration issue.
do you have any suggestions?
mamad7192 is offline   Reply With Quote

Old   January 15, 2018, 22:54
Default
  #4
New Member
 
sajjad ghahari
Join Date: Sep 2016
Posts: 4
Rep Power: 10
sajjad.gh is on a distinguished road
Quote:
Originally Posted by mamad7192 View Post
do you have any suggestions?
hello, any solution?
if the answer is yes, could you plz share it with me?
sajjad.gh is offline   Reply With Quote

Old   January 16, 2018, 11:00
Default
  #5
New Member
 
Join Date: Mar 2015
Posts: 28
Rep Power: 11
mamad7192 is on a distinguished road
i think you should use a 32bit windows&fluent,although i did not try anymore.
mamad7192 is offline   Reply With Quote

Old   January 23, 2018, 14:12
Default
  #6
New Member
 
Wael
Join Date: Jan 2018
Location: Manchester
Posts: 3
Rep Power: 8
saadyw is on a distinguished road
Hi

I don't know a lot about udf. However, I know that for compiling a udf, you should have Microsoft visual studio installed on your computer (complete setup). you can check the appropriate version of visual studio according to your fluent version. I mean, for fluent 16 and 17.1, visual studio 2012 works with me. May be earlier versions of visual studio work with earlier fluent versions as visual studio 2008 and 2010
saadyw is offline   Reply With Quote

Old   January 25, 2018, 11:52
Default 32 bit or 64 bit
  #7
New Member
 
mengtangli
Join Date: Dec 2017
Location: TN
Posts: 5
Rep Power: 9
Hakuna_lee is on a distinguished road
ntx86 means 32 bit. But you are using a 64 bit machine. Make sure you use the correct compiler.
Hakuna_lee is offline   Reply With Quote

Old   January 25, 2018, 11:56
Default suggestion
  #8
New Member
 
mengtangli
Join Date: Dec 2017
Location: TN
Posts: 5
Rep Power: 9
Hakuna_lee is on a distinguished road
I guess if it were me, i would install Fluent 180+ and Visual Studio 2017. Use x64 VS2017 cross tool command prompt to open Fluent (remember set your path correctly), which will compile your UDF correctly.
Hakuna_lee 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
fluent udf error while compiling: unknown type name __locale_t aditya.pandare Fluent UDF and Scheme Programming 3 April 12, 2014 15:52
ERROR in compiling UDF stefanos Fluent UDF and Scheme Programming 1 April 25, 2012 08:37
Problem with compiling the UDF raghu mohan Fluent UDF and Scheme Programming 10 December 17, 2011 00:34
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13


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