|
[Sponsors] |
April 19, 2011, 18:08 |
interpret or compile
|
#1 |
Senior Member
raymond
Join Date: Nov 2009
Posts: 149
Rep Power: 17 |
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 |
|
|
|
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 |