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

how to obtain mass diffusion coefficient with UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2019, 13:32
Default how to obtain mass diffusion coefficient with UDF?
  #1
Senior Member
 
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9
Weiqiang Liu is on a distinguished road
Hi all,

I want to define different mass diffusive coefficient in different zones with UDF. For example, I need to assign effective diffusion coefficient to porous zone. To calculate effective diffusion coefficient, I need to know molecular diffusion coefficient of species which is mixture averaged or multi-component depending on models I use.

I checked UDF manual and found that C_DIFF_L(c,t,i,j) is used to obtain binary diffusion coefficient and C_DIFF_EFF(c,t,i) is used to obtain effective coefficient.
none of these two macros can be used to obtain molecular diffusion coefficient.

my question is do I have to calculate molecular diffusion coefficient based on binary diffusion coefficient I derive and then assign this molecular diffusion coefficient with DEFINE_DIFFUSIVITY (name, c, t, i)?

Or maybe some macros can be used to obtain molecular diffusion coefficient directly?

Best.

Weiqiang
Weiqiang Liu is offline   Reply With Quote

Reply

Tags
binary diffusion, macros, molecular diffusion


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
diffusion coefficient not constant? don6alfonso Main CFD Forum 0 August 24, 2017 06:09
Interface mass diffusion term/flux questions goicox Main CFD Forum 0 November 28, 2012 10:12
Simulation with UDF for species mass fraction and velocity profile virgy Fluent UDF and Scheme Programming 8 February 7, 2012 05:30
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 12:29
Species diffusion coefficient iceabc FLUENT 1 June 10, 2004 11:04


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