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

interpret or compile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2011, 18:08
Default interpret or compile
  #1
Senior Member
 
raymond
Join Date: Nov 2009
Posts: 149
Rep Power: 17
wlt_1985 is on a distinguished road
I would like to define the user-defined mixing law. The UDF is as below which is UDF provided by UDF manual:

#include "udf.h"
DEFINE_PROPERTY(mass_wtd_k,c,t)
{
real sum = 0.; int i;
Material *sp;
real ktc;
Property *prop;
mixture_species_loop(THREAD_MATERIAL(t),sp,i)
{
prop = (MATERIAL_PROPERTY(sp));
ktc = generic_property(c,t,prop,PROP_ktc,C_T(c,t));
sum += C_YI(c,t,i)*ktc;
}
return sum;
}

Once I interpret the file, error message appears as below:

structure reference not implemented

Somebody please help me to solve my problem. Is compilation should be used instead of interpretation? Or any other appropriate solution for it?

Thanks for help.

Best regards
wlt_1985 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
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
interpret works fine but compile doesn't Jan Balemans FLUENT 0 March 14, 2008 10:41
interpret or compile an UDF (emergency) Lotfi FLUENT 1 August 26, 2007 13:58
why results different for Compile and Interpret? Joey FLUENT 3 April 6, 2004 18:19


All times are GMT -4. The time now is 05:46.