CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

TwoPhaseEulerFoam and InletOutlet boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2007, 08:41
Default In my simulation I am modeling
  #1
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
In my simulation I am modeling packing/settling of particles in a 2D rectangular domain. At the outlet I want fluid to pass through, but particles to stop. This posts concerns a problem with the boundary condition for the fluid. If I set a zeroGradient B.C. for the fluid, I get problems with inflow of fluid at the outlet.

To remedy this, I applied the inletOutlet boundary condition, setting the inlet velocity to zero. This works as expected for the velocity field Ub, which is limited to zero in the influx faces.

However, the flux of the fluid phase phib is not zero in zero-velocity faces as they should be! Since Ub at the cell is reconstructed from phib (which has flux), there is a net influx. Attaching a picture of the unwanted behavior.


Has anyone experienced this before? I see that the tutorial cases for twoPhaseEulerFoam uses inletOutlet BC, so it should be appropriate for this application. If anybody is interested I can make the case available for download.

(This question is related to a previous one about twoPhaseEulerFoam (previous post.)
hemph is offline   Reply With Quote

Old   January 19, 2007, 08:50
Default Oops, I got no file transfer d
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Oops, I got no file transfer dialog from the forum software for the image. Attaching a link to the image instead.
outflow image

//Rasmus
hemph is offline   Reply With Quote

Old   January 19, 2007, 14:44
Default Hi Rasmus, I understand thi
  #3
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Hi Rasmus,

I understand this is a 2D case. I wouldn't mind running it over the weekend. Would be a nice little exercise. Please post the case and don't forget any special fixes you might have added to your own version of FOAM.

Cheers,
Ziad
ziad is offline   Reply With Quote

Old   January 22, 2007, 11:44
Default Hi Ziad, Very nice of you to
  #4
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Ziad,
Very nice of you to offer your help. I have put together a test case which should run on the twoPhaseEulerFoam-application that comes with OpenFOAM-1.3. When the case reaches 1.45 seconds, the influx of fluid begins at the outlet. Note that the Ub-field is zero on these faces. (I included the output results in case you do not wish to run the case from the beginning)

I put the case up for download on my homepage (1.4M). Euler packing

best regards
Rasmus H
hemph is offline   Reply With Quote

Old   January 22, 2007, 18:44
Default Hi Rasmus, I was hoping to
  #5
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Hi Rasmus,

I was hoping to get it before the weekend as I am typically vey busy over the week. Nevertheless I will try to take a shot at it sometime this week.

Cheers,
Ziad
ziad is offline   Reply With Quote

Old   January 25, 2007, 22:19
Default Hey Rasmus, what are the ph
  #6
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Hey Rasmus,

what are the physical boundary conditions for your problem? for example: pressure gradient between inlet and outlet, flow properties at the inlet and outlet, etc...

Ziad
ziad is offline   Reply With Quote

Old   January 26, 2007, 08:12
Default Hi Ziad, I am simulating par
  #7
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Ziad,
I am simulating particles settling under a fluid velocity field in a 2D-column with a top (inlet), bottom (outlet) and walls. The simulations include the influence of gravity. The physical boundary conditions I have set are:

top: gradient of pressure = 0 (should really be fixed to rho*g, but this is stable enough).
Ub, the velocity of the fluid, is constant 3mm/s. Ua, the particle velocity, is zero gradient. The particle volume fraction, alpha, is set to zero, but there are no particles at top, so this is not crucial.

bottom: Fixed pressure of zero pascal. Alpha is set to zero-gradient. The particles should stay on the bottom and pack, so zero velocity for particles (Ua). For the fluid, I want zero gradient at the outlet, but this becomes unstable and causes backflow at outlet after some time.

To remedy the backflow problem, I applied the inletOutlet-condition. My question is not so much to get the test case running properly. I am wondering if the inletOutlet condition is working properly for the twoPhaseEulerFoam code?

Even though the inletOutlet BC sets zero velocity for the fluid at the backflow faces as it should, the *flux* at these faces is still negative (as can be seen by looking at the phib-field for the outlet patch). This says that fluid is flowing in through the outlet, even though it should be fixed to zero according to the boundary condition. I am hoping to find out if this should be fixed in the twoPhaseEulerFoam code, or if it in fact is the expected behavior!

Best Regards
Rasmus
hemph is offline   Reply With Quote

Old   January 27, 2007, 17:24
Default Hi Rasmus, Thanks for the c
  #8
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Hi Rasmus,

Thanks for the clarifications. It makes a lot more sense now.

I went to your web-page to check out your setup and the schematic indicates that there should be clean fluid flowing from the outlet. A quick google search on chromatography confirmed that and indicated that the outlet should see a Stokes flow, or creeping flow, with Re~1. This will not be achieved by the InletOutlet BC. Instead I would suggest to use a fixed pressure BC equal to the hydrostatic head (or alternatively a fixed pressure gradient = rho_mixture*g). This is an acceptable approximation since dynamic pressure is negligible wrt static head in Stokes flows. You don't have to change your pressure BC at the inlet as long as your pressure BC at the outlet is restricted to the hydrostatic difference between the two planes. Of course I am assuming that your column is vertical... ;)

Nice picture by the way! Make sure you wear some sunblock

Cheers,
Ziad
ziad is offline   Reply With Quote

Old   January 29, 2007, 04:55
Default Hi Ziad, Thanks for taking the
  #9
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Ziad, Thanks for taking the time too look at the case! In order to match the experimental setup, I need a fixed velocity inlet BC with a corresponding fixed (rho*g) gradient on pressure. At the outlet however, I believe that zero gradient on velocity and fixed pressure should be applicable.

The inletOutlet condition on velocity sets a zero gradient on velocity, with the initial constrain that if the solution is develops backFlow at an outlet face, that face is limited to a fixed velocity (in this case zero).

However, my interest with this thread is not primarily to get the case running, but to find out if the inletOutlet condition is working for two fluid flows. That is, could this flow field be possible with the inletOutlet B.C ?? (small continuity errors)
http://www.tfd.chalmers.se/~md8hemra/images/outflow.png

I will put the question on the bug mailing list.
//Rasmus.
hemph is offline   Reply With Quote

Old   January 29, 2007, 10:12
Default I get your point. the thing is
  #10
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
I get your point. the thing is you are injecting fluid from the inlet and yet your outflow velocities are both zero for fluid and particles. the inletOutlet BC seems to work pretty well considering the flow is fighting it physically.
ziad is offline   Reply With Quote

Old   January 29, 2007, 10:47
Default The inletOutlet BC does not se
  #11
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
The inletOutlet BC does not set zero velocity on the whole of the outlet, that would make the case impossible to solve. It is a mixed boundary condition, meaning that on the cell-faces of the outlet where the fluid is flowing out of the domain, there is zero gradient BC in velocity. For the two or three cell-faces where the fluid is about to flow in, velocity is set to fixed value zero. My idea was to limit the unphysical influx. I since came up with a better idea, but the question still remains:

Could it be possible to get the flow field pictured in the link above with the inletOutlet BC? I expected this boundary condition to limit influx of fluid through the outlet to zero.

(I am sorry if the question was unclear!)
//Rasmus
hemph is offline   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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about the inletOutlet and outletInlet boundary conditions brooksmoses OpenFOAM Running, Solving & CFD 24 March 2, 2021 02:16
TwoPhaseEulerFoam and Boundary conditions raagh77 OpenFOAM Running, Solving & CFD 99 February 6, 2018 19:31
InletOutlet condition with arbitrary direction matteoc OpenFOAM Running, Solving & CFD 8 May 31, 2011 07:49
TwoPhaseEulerFoam wall effects and initial pressure condition alondono OpenFOAM Running, Solving & CFD 1 April 29, 2007 18:23
TwoPhaseEulerFoam and InletOutlet BC hemph OpenFOAM Bugs 0 January 29, 2007 05:57


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