CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   mass diffusivity (http://www.cfd-online.com/Forums/fluent/48341-mass-diffusivity.html)

pour May 26, 2008 11:46

mass diffusivity
 
Hi all I am using binary diffusion model , I use DEFINE_DIFFUSIVITY to enter mass diffusivity, but I recieve this error: DOMAIN_MULTICOMP_DIFF: undeclared variable my udf is :

#include "udf.h" DEFINE_DIFFUSIVITY(uds_diff,c,t,i) { real d; C_DIFF_L(c,t,0,1)= 12345; d = C_DIFF_L(c,t,0,1); return d; }

How I must use C_DIFF_L(c,t,i,j)in udf?

thanks


pour May 29, 2008 07:15

Re: mass diffusivity
 
Hi all I am using binary diffusion model , I use DEFINE_DIFFUSIVITY to enter mass diffusivity, but I recieve this error: DOMAIN_MULTICOMP_DIFF: undeclared variable. my udf is :

#include "udf.h" DEFINE_DIFFUSIVITY(uds_diff,c,t,i) { real d; C_DIFF_L(c,t,0,1)= 12345; d = C_DIFF_L(c,t,0,1); return d; }

How I must use C_DIFF_L(c,t,i,j)in udf?

thanks



All times are GMT -4. The time now is 00:02.