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

Defining diffusivity within a particular zone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Amir

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2011, 19:28
Default Defining diffusivity within a particular zone
  #1
New Member
 
Clayton
Join Date: Jul 2010
Posts: 3
Rep Power: 15
chires is on a distinguished road
Hello to all the smart people out there,

I've made a simple model of two counter flow channels separated by a membrane region. The fluid on both sides is water. A certain concentration of Urea is dissolved in one flow stream which I've represented as a UDS. I've defined the membrane region as a porus media and by manipulating the viscous and inertial resistance parameter I recieve a flow field conceptually close to what I'm expecting.
Currently i have the diffusivity of my UDS defined in water via the material properties of water. I would like to customize that diffusivity to a different value within the membrane region. I expect this can be done via a written UDF and I have attempted to do so using the DEFINE_DIFFUSIVITY macro. As far as I can tell this only hooks to the material properties menu which alters the value in all three regions (since they all contain water), not just the membrane region.
As a novice learning UDF coding does anyone have a coding suggestion or a different approach to achieving this?

Thanks in advance :-)
chires is offline   Reply With Quote

Old   June 22, 2011, 02:03
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi,
maybe it's better to define 2 material with the same properties except diffusivity and use them in desired region.

Amir
yashganatra likes this.
Amir is offline   Reply With Quote

Old   June 22, 2011, 13:16
Default
  #3
New Member
 
Clayton
Join Date: Jul 2010
Posts: 3
Rep Power: 15
chires is on a distinguished road
Ok, I think I can see how that would work.

Basically define materials Urea(1) for the channel region and Urea(2) for the membrane region. Write a UDF to create a positive source of Urea(2) equal to the value of Urea(1) on the membrane side of the channel/membrane boundary. Then create a source sink for Urea(1) on channel side setting the magnitude to 0...

Well, I expect that would work as long as the flow was in one direction (from the channel to membrane side) but not in the opposite direction.

Can you simply state the value of Urea(1) on one side of the boundary is equal to Urea(2) on the opposite side? and if so what about velocity direction and momentum? Do those properties also have to be assigned across the boundary from Urea(1) to Urea(2)?

Thanks for the reply!!! Really helps me think through this.
chires is offline   Reply With Quote

Old   June 23, 2011, 02:37
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by chires View Post
Ok, I think I can see how that would work.

Basically define materials Urea(1) for the channel region and Urea(2) for the membrane region. Write a UDF to create a positive source of Urea(2) equal to the value of Urea(1) on the membrane side of the channel/membrane boundary. Then create a source sink for Urea(1) on channel side setting the magnitude to 0...

Well, I expect that would work as long as the flow was in one direction (from the channel to membrane side) but not in the opposite direction.

Can you simply state the value of Urea(1) on one side of the boundary is equal to Urea(2) on the opposite side? and if so what about velocity direction and momentum? Do those properties also have to be assigned across the boundary from Urea(1) to Urea(2)?

Thanks for the reply!!! Really helps me think through this.
Hi,
If you use 2 materials as discussed above, you won't need to write any UDFs as sinks or sources!!!
When you set a material for a region, the properties of that material are used for solving equations in that region's control volumes,i.e. these properties belongs to that specific region. In other words, the properties do not convect or diffuse, so it doesn't depend on flow direction. Check it for a simple case to understand.

Regards
Amir is offline   Reply With Quote

Old   July 11, 2012, 13:32
Default
  #5
Member
 
Ftab
Join Date: Sep 2011
Posts: 87
Rep Power: 14
ftab is on a distinguished road
Dear Amir,
I read through this reply you have made a year ago.
What I do not understand is that if you define two different material to include difference of diffusivity inside porous and fluid domain, then how the conservation of momentum will be satisfied there as the same material leaves the fluid domain and enters the porous one and other way around.

To make it simple lets suppose I have an artery with a thick porous wall and diffusivity of an UDS is not the same inside the blood flow zone (inside lumen where blood flows) and inside the wall. How I can set two different diffusivity then? The flow inside porous wall is happening because of blood infiltration (passing) from lumen to the wall.
Thanks for your help
ftab is offline   Reply With Quote

Old   July 12, 2012, 02:50
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by ftab View Post
how the conservation of momentum will be satisfied there as the same material leaves the fluid domain and enters the porous one and other way around.
The discussion was about solving UDS in 2 different zones which can be considered decoupled from momentum eq. Note that the density and viscosity of these 2 material are the same, just UDS diffusivity is different. In the other word, at interfaces we need interpolations of density which obtained equal to each material density.
Quote:
Originally Posted by ftab View Post
To make it simple lets suppose I have an artery with a thick porous wall and diffusivity of an UDS is not the same inside the blood flow zone (inside lumen where blood flows) and inside the wall. How I can set two different diffusivity then? The flow inside porous wall is happening because of blood infiltration (passing) from lumen to the wall.
That's the same situation; just note that UDS values do not affect velocity field ....

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   February 7, 2014, 09:45
Default Define_diffusivity
  #7
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
hi,

I am trying to use DEFINE_DIFFUSIVITY funtion in eulerian gas-solid flow but it gives me Access Vialotation Error. Is there anyone who use this function for multiphase flows?
thanks in advance!
Kanarya is offline   Reply With Quote

Reply

Tags
membrane, porous diffusivity, udf


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
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 01:08
Defining Rotor Zone NTM FLUENT 1 September 4, 2008 02:03
Defining a zone CFDNewbie FLUENT 3 July 18, 2007 16:31
Error to re-open fluent case file J.Gimbun FLUENT 0 April 27, 2006 08:42
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 15:52


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