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

(porous)interFoam: Pressure in trapped air

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2014, 04:11
Default (porous)interFoam: Pressure in trapped air
  #1
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
Hi Foamers,

I'm trying to simulate the filling of a cavity, which is a porous zone. This cavity is initially filled with air. In the middle of the cavity, there is an obstacle, that creates an air trap.
Now, as I defined a pressure of 0 Pa on the outlet, which persists in the air filled zone, I would expect the trap to be filled up with liquid. At least, this is what Pam-RTM simulates and what happens in experiment.

But, after the air is trapped, its pressure increases suddenly and stops the flow from advancing.

Why does that happen?

I attached a sketch and my case (to be run blockMesh and porousInterFoam).

Thank you, Kind Regards

Peter
Attached Images
File Type: jpg HufeisenDruckPamOFCFD-online.jpg (30.8 KB, 104 views)
Attached Files
File Type: gz SepHufeisenNewMeshCFD-online.tar.gz (4.9 KB, 31 views)

Last edited by John Degenkolb; October 15, 2014 at 08:35. Reason: changed attached picture so no unpacking necessary
John Degenkolb is offline   Reply With Quote

Old   October 15, 2014, 04:24
Default
  #2
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
I've got an idea which I'd like to discuss.
Is it possible that the following happens in my problem?:

The alpha value is not EXACTLY zero in air filled regions.
The mixture rule in VOF-method now calculates the cell viscosity from air and liquid viscosities.
In the PISO-loop, this slightly raised viscosity leeds to a higher flow resistance which in turn raise the pressure in the trapped air zone.

This would explain why, when I lower the air viscosity to something ridiculously small, the air trap is nearly completely filled.

Best regards,
Peter
John Degenkolb is offline   Reply With Quote

Old   October 15, 2014, 05:31
Default
  #3
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi,

I don't know which version of OpenFOAM you may be using, but you may also need to reformulate the alpha equation, as by default it does not take porosity into account. Check this post:

http://www.cfd-online.com/Forums/ope...tml#post431805

Regarding your problem, you may want to test the influence of cAlpha in preventing the diffusion of your interface.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   October 15, 2014, 07:32
Default
  #4
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
Hi Pablo,

thank you very much for your reply.

I'm using OpenFoam version 2.3.0

To take porosity into account, I use to multiply the d value in the porosityProperties with the porosity ( d = Porosity/Permeability ).
I know this is not the clean solution, but (I hope) for incompressible, laminar and creeping flows it's ok. At least my numerical results are in accordance to analytical calculation with Darcy's law.

About cAlpha: I'll test this, thank you for the advice!

Do you think it's possible to tell the solver not to calculate any pressure in the non-filled area, but to take the outlet pressure in those cells?
And if yes: Which piece of code do I have to change: pEqn.H or createFields.H?
(createFields.H is only called right at the beginning for the calculation, not in every time step, isn't it?)

Peter
John Degenkolb is offline   Reply With Quote

Old   October 15, 2014, 07:51
Default
  #5
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
Hello John Degenkolb,
First of all I know nothing of porous material. What I am wondering if why the air will leave the cavity. If this was a tube then the pressure will increase (P*V=constant) until the P is equal to the height of the water column on the outside P=rho * g* h. But maybe this is different with porosity. To completely fill the tube you need a leak at the top of the tube so the air can escape.

Hope this helps
Wouter
wouter is offline   Reply With Quote

Old   October 15, 2014, 08:11
Default
  #6
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
Hi Wouter,

I expected something like this to happen as well... Until I did my experiments

You are right with p*V=constant, but p=0 !
Now one could saw: In that case it will be filled in zero time. Well, no, as the porous media (and to a small extent the viscous forces) slow down the fluid.

I know Openfoam only works with relative pressures. But how to teach it about vacuum?
John Degenkolb is offline   Reply With Quote

Old   October 15, 2014, 08:48
Default
  #7
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
Hello John Degenkolb,

Oke, there is no air (P=0) so do not put air in, it is just a one phase system so you do not need interFoam, but maybe a dynamic mesh system

hope this helps
Wouter
wouter is offline   Reply With Quote

Old   October 15, 2014, 09:02
Default
  #8
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
I never tried dynamic meshing, but
  • remeshing every time step is sad to be very time consuming and
  • for complex geometries to be filled very hard to do, I think
  • the commercial software is working with some kind of VOF methods as well
Thanks for your hints anyway!
John Degenkolb is offline   Reply With Quote

Old   October 16, 2014, 18:35
Default
  #9
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
hello John Degenkolb,

The Interfoam solver can be used, I think, because there are two phases: liquid and liquid vapour. Could the filling of the pores be due to condensation of the liquid vapour, because pressure increase supersaturated?

hope this gives you another thing to think about, nice problem

Wouter
wouter 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Setting Pressure Boundary Conditions in ANSYS CFX Pre saisanthoshm88 CFX 21 February 22, 2017 16:50
InterPhaseChangeFoam ERROR shipman OpenFOAM Running, Solving & CFD 37 March 23, 2014 12:43
Setting up the pressure variation due to tornado in a duct(UDF)+animation guillaume1990 FLUENT 0 March 3, 2014 11:59
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 10:52


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