CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   question about Species diffusivity (http://www.cfd-online.com/Forums/fluent/32427-question-about-species-diffusivity.html)

zhou1 November 1, 2003 21:15

question about Species diffusivity
 
I defined a species diffusivity using "DEFINE_DIFFUSIVITY" and i try to use this species diffusivity value in my UDF. I have confused about how to use "C_DIFF_L(c,t,i,j)". Where, "i" denotes the species "i" that I want to use and "j" denotes what? How can I obtain the species "i" diffusivity by "C_DIFF_L(c,t,i,j)"? Thanks.

nounou November 4, 2003 07:10

Re: question about Species diffusivity
 
may be you can help naima

I like te difine the UDS Diffusivity with a UDF but i have some problems. so, I used the udf given by fluent :

# include "udf.h" DEFINE_DIFFUSIVITY(mean_age_diff, c, t, i) { return C_R(c,t) * 2.88e-05 + C_MU_EFF(c,t) / 0.7; }

also with this udf(fluent) Ihave the same error : Error: C:\work\tt.c: line 1: parse error. I'd appreciate your help, think you


zhou1 November 4, 2003 13:07

Re: question about Species diffusivity
 
Hi,I think you should begin your "DEFINE_DIFFUSIVITY" at the first column. Don't leave blank in front of this UDF and then try it again.

nounou November 5, 2003 03:39

Re: question about Species diffusivity
 
Thank you a lot for your response, you know, the problem is I don't write this UDF, it is from the chapter 4 page 4-17 "define Macro" in the documentation of Fluent, I just copy and past the sentenses, like naima did. Sincerly Yours


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