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

Error about UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 26, 2003, 17:53
Default Error about UDF
  #1
zhou
Guest
 
Posts: n/a
I defined a constant density for mixture material by UDF as follow, but there are some errors information as following. Do you know what is problem? Thanks.

DEFINE_PROPERTY(cell_density,c,t) {

real den;

den=2967.7679;

return den; } cc: "den.c", line 4: error 1000: Unexpected symbol: "den". cc: "den.c", line 4: error 1588: "real" undefined. cc: "den.c", line 5: error 1588: "den" undefined. *** Error exit code 1
  Reply With Quote

Old   September 27, 2003, 07:52
Default Re: Error about UDF
  #2
ap
Guest
 
Posts: n/a
Just change the name of the variable den to something different, like "rho_mix", or easier, write the function as follow:


DEFINE_PROPERTY(cell_density,c,t)
{
return(2967.7679);
}

From the error message, it seems that the internal compiler of FLUENT has some problem to manage the symbol you have choosen for the variable.

Hi

ap
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 00:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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