CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF Problem (When Using mixture_species_loop) (https://www.cfd-online.com/Forums/fluent/44439-udf-problem-when-using-mixture_species_loop.html)

hesam April 14, 2007 02:04

UDF Problem (When Using mixture_species_loop)
 
Hi I have a problem with UDF. When I want use mixture_species_loop an error occured: "structure reference not implemented" Even when I want interpret Manual's code this error occured.

#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; }

**** Error occured in line 9 (mixture_species_loop)********


sudhakar April 14, 2007 10:13

UDF Problem (When Using mixture_species_loop)
 
hi i am trying to use mass fraction weighted density for the mixture material. i used the udf given in fluent6.2 manual replacing ,thermal conductivity with density.It worked well with single phase but not with multiphase. It is showing ACCESS VIOLATION error. please help me thanks a lot

sudhakar April 14, 2007 10:19

species index
 
hi everybody how to get species index? thanks



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