CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

about define_diffusivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2006, 03:54
Default about define_diffusivity
  #1
shuqin
Guest
 
Posts: n/a
I am modeling the transport of multi-conponents along two different zones,and the following code for setting different diffusivities : DEFINE_DIFFUSIVITY(mass_diff, c, t, i) {

if (THREAD_ID(t)==ZONE_1)

D = 12345;

if (THREAD_ID(t)==ZONE_2)

D = 67890;

return D; }

then what does the value D stands for,is it the diffusivity for species i in the mixture?if it is the case ,i suppose the Fick's law approximation is adopted by default,how should i set the binary diffusivity with UDF if i want to model in full multicomponent model?

  Reply With Quote

Old   April 12, 2006, 22:30
Default Re: about define_diffusivity
  #2
Jun
Guest
 
Posts: n/a
Hi, Shuqin,

YOu need to hook the mass_diff to the diffusivity of the species i.

  Reply With Quote

Old   April 13, 2006, 08:06
Default Re: about define_diffusivity
  #3
shuqin
Guest
 
Posts: n/a
hi,jun thanks for you attention,can you tell me how should i to hook the mass_diff to the diffusivity of the species i?

  Reply With Quote

Old   April 13, 2006, 22:36
Default Re: about define_diffusivity
  #4
Jun
Guest
 
Posts: n/a
Hi,

Follow these steps:

Define => Materials => Mass Diffusivity => user-defined => mass-diff

Enjoy
  Reply With Quote

Old   April 13, 2006, 23:00
Default Re: about define_diffusivity
  #5
shuqin
Guest
 
Posts: n/a
Jun,I am afraid you have not understand my problem. Thanks anyway! my question is about the UDF;

DEFINE_DIFFUSIVITY(mass_diff, c, t, i) {

if (THREAD_ID(t)==ZONE_1)

D = 12345;

if (THREAD_ID(t)==ZONE_2)

D = 67890;

return D; } does the value D stand for Di,m(the diffusivity of species i in the mixture)?if it is the case ,how shall I define Di,j which I can access through C_DIFF_L(c,t,i,j)?

  Reply With Quote

Old   April 14, 2006, 01:57
Default Re: about define_diffusivity
  #6
Jun
Guest
 
Posts: n/a
Hi Shuqin,

The value D stand for a single Di,m. I think the same value will be used for the diffusivity of each species in the mixture.

You cannot define the several Di,j with UDF. This might be the limitation of the FLUENT, and FLUENT will improve this in next version with my opinion.

Instead, you could find other methods which the FLUENT have already had to input Di,j.

This forces me learn more about the FLUENT.

Thanks

Jun

(the diffusivity of species i in the mixture)?if it is the case ,how shall I define Di,j which I can access through C_DIFF_L(c,t,i,j)?

  Reply With Quote

Old   April 17, 2006, 08:40
Default Re: about define_diffusivity
  #7
shuqin
Guest
 
Posts: n/a
by the way,jun.I got a problem when defining the diffusivity and actually I did post before,unfortunately I have not yet got the answer. I use following code to define two different diffusivity in two different fluid zones,but In Fluent ,since the two neighbouring cells have different diffusivities with a step change.there is a gradient between the two zones,and automatically Fluent will use interpolation between the face diffusivities. will this disarrange the species flux at the interface(defined as interior face) between the two zones ,if it is the case ,how shall I remove the gradiant? thanks ! /*********The code***********/ DEFINE_DIFFUSIVITY(uds_diff, c, t, i) {

real D;

if (THREAD_ID(t)==ZONE1)

D = 12345;

if (THREAD_ID(t)==ZONE2)

D = 67890;

return D; }
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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