CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   mass diffusivity C_DIFF_L(c,t,i,j) (http://www.cfd-online.com/Forums/fluent/48367-mass-diffusivity-c_diff_l-c-t-i-j.html)

pour May 29, 2008 07:16

mass diffusivity C_DIFF_L(c,t,i,j)
 
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


Belhadef May 29, 2008 09:51

Re: mass diffusivity C_DIFF_L(c,t,i,j)
 
you can test

DEFINE_DIFFUSIVITY(alo,c,t,i) { return 12345; }


pour May 31, 2008 15:00

Re: mass diffusivity C_DIFF_L(c,t,i,j)
 
thanks , but I want to use binary diffusion Di,j not Di,m. I have four species in flow field as H2,O2,H2o,N2.


All times are GMT -4. The time now is 06:11.