CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

UDF to constrain one of the phase to stay in the domain

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 21, 2012, 11:44
Default UDF to constrain one of the phase to stay in the domain
  #1
New Member
 
Kolela Lela
Join Date: Aug 2012
Posts: 9
Rep Power: 5
Koromajor is on a distinguished road
Has anyone ever written a UDF to constrain one of the phase (in a multiphase simulation) not to leave the domain?
I have got this two-phase simulation where my secondary phase (solid particles) are prevented from coming out the the flow cell with a wire mesh and I would like to simulate that with a UDF.

Any help and/or ideas are very welcome.

Cheers
Koromajor is offline   Reply With Quote

Old   August 21, 2012, 11:46
Default
  #2
New Member
 
Kolela Lela
Join Date: Aug 2012
Posts: 9
Rep Power: 5
Koromajor is on a distinguished road
Just to mention that my outlet is a pressure outlet boundary condition.

Cheers
Koromajor is offline   Reply With Quote

Old   August 23, 2012, 02:10
Default UDF to constrain one of the phase to stay in the domain
  #3
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 133
Rep Power: 8
mvee is on a distinguished road
Hi Koromajor

What do you mean by flow cell?

If you mean to say that your secondary phase does not come out of the domain then at the outlet you have to define volume fraction as zero which resist the outward flow of secondary phase.

best wishes
Mvee
mvee is offline   Reply With Quote

Old   August 23, 2012, 04:48
Default
  #4
New Member
 
Kolela Lela
Join Date: Aug 2012
Posts: 9
Rep Power: 5
Koromajor is on a distinguished road
Hi Mvee,

Thanks for your reply. By flow cell I meant my computational domain, so you understood it right
How do you define a zero volume fraction at a pressure outlet? You can define the backflow volume fraction but this is different from the actual volume fraction of the phase.

The other option would be to change the outlet boundary to mass flow inlet, then you can specify zero mass flow rate of secondary phase through the outlet, but I don't want to do that because the next step of my project is to introduce another secondary phase that will have no constraint unlike my first secondary phase.
So if one changes the outlet boundary to mass flow inlet, you will still be stuck on what mass flow rate you will need to specify for the primary phase and the second secondary phase at the outlet.

My feel is that, the solution of the problem is through a UDF, but like I said any help /suggestions are welcome, either via UDF or other ways of doing it.

Cheers,
Koromajor
Koromajor is offline   Reply With Quote

Old   August 31, 2012, 05:43
Default
  #5
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 133
Rep Power: 8
mvee is on a distinguished road
I suggest to define the back flow volume fraction as 1 which will resist the secondary phase to go out. Why do you feel this as different from realistic picture?
Through UDF (DEFINE_ADJUST) you can adjust the volume fraction as zero.

Best wishes
MVee
mvee is offline   Reply With Quote

Old   August 31, 2012, 07:08
Default
  #6
New Member
 
Kolela Lela
Join Date: Aug 2012
Posts: 9
Rep Power: 5
Koromajor is on a distinguished road
The backflow volume fraction is only used by the solver in case reverse flow occurs during calculation, so backflow volume fraction set to 1 cannot prevent the secondary phase to exit the domain.

I don't think DEFINE_ADJUST (setting volume fraction to 0) can solve the problem because what you will only do is telling the solver to use 0 volume fraction at the outlet at the beginning of every iteration, but at the end of the iteration the solver could calculate non-zero volume fraction of secondary at the outlet (which means flow out).
Koromajor is offline   Reply With Quote

Old   June 17, 2014, 15:58
Default
  #7
New Member
 
khaled yousef
Join Date: Apr 2013
Posts: 8
Rep Power: 4
Khaled yousef is on a distinguished road
Hi Koromaor,
Did you solve your problem? i face the same problem that i am trying to model steam condensation inside shell and tube condenser. I face reverse flow problem that when i set the back flow volume fraction for secondary phase equal to 1 , the domain is filled with secondary phase. So i want to prevent any phases to enter the domain when reverse flow. Also, the pressure outlet can permit any phases to go out and nothing enter the domain.
Thanks
Khaled yousef is offline   Reply With Quote

Old   October 16, 2014, 23:28
Thumbs up
  #8
New Member
 
Mechanical Engineer
Join Date: Sep 2014
Posts: 11
Rep Power: 2
Mechanical Engineer is on a distinguished road
Go to Cell Zone conditions>select the phase>edit>mark fixed values>select constant in x and y velocity> put values to zero.

Now, after putting velocity and volume fraction to zero at inlet boundary condition, initialize the system with volume fraction of stationary phase as zero. you can then patch the domain with required volume fraction of stationary phase

Hope this helps.
Mechanical Engineer is offline   Reply With Quote

Old   October 30, 2014, 09:46
Default
  #9
Member
 
Ebrahim
Join Date: Feb 2014
Posts: 57
Rep Power: 3
sirpolar is on a distinguished road
Hi dear all
I have the same proble
I want that secondary phase displce the primary phase but the volume fraction of primary phase doesn't go below the predefined value in each cell or voulme fraction of secondary phase never goes above the certain value

I would be appreciated if you could help me
sirpolar is offline   Reply With Quote

Reply

Tags
mesh, multiphase, udf

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX domain comparison Kiat110616 CFX 4 April 3, 2011 22:43
phase fraction part of domain RBJ OpenFOAM Post-Processing 0 July 6, 2010 09:33
Discrete Phase Modeling: UDF law for particles bjcfd FLUENT 0 January 13, 2010 17:46
Domain Initialization in 2 phase flow using VOF moas CFX 3 February 17, 2008 06:19
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


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