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

pressure driven flow in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2015, 09:38
Default
  #21
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
The tutorial "capillary rise" of interfoam uses two pressure bc at inlet and outlet, flow is driven by hydrostatic pressure (and capillary forces) and it works fine. If you have only 1 phase at the boundaries i think there is no problem. If you have 2 phases in contact with inlet or outlet then it becomes more tricky.

Best,
Andrea
Andrea_85 is offline   Reply With Quote

Old   November 13, 2015, 13:22
Default
  #22
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
I tried to replicate as close as to capillaryRise case.
It looks to get some shape but still there seems to be some problem.

I used the following bcs: {2D case and no influence of 'g'.}
P_rgh {inlet: 500Pa, outlet:0Pa, fixedWalls: fixedFluxPressure}
U {inlet/ outlet: pressureInletOutletVelocity, fixedWalls: (0 0 0)}
Alpha {inlet: inletOutlet {based on phase number for value}, outlet: zeroGradient, fixedWalls: equilibrium ca of 30}.

Everything looks fine until the drop/ bubble flows out of the channel. Soon there is a change in the phase representation. That is if i have a water drop passing out of the channel the channel is being filled by water and air starts to displacing from the inlet again. See pictures 1 and 2 (successive time steps data with the provided bcs). This looks quite nonphysical. How can water enter the system? Any ideas over this.

Thanks;
Saideep
Attached Images
File Type: jpg fig1.jpg (16.7 KB, 83 views)
File Type: jpg fig2.jpg (17.9 KB, 62 views)
Saideep is offline   Reply With Quote

Old   November 16, 2015, 04:39
Default
  #23
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Not sure i have understood well your problem. I don't think the 2 pictures are successive time-step since in the first one the water bubble is still far from the boundary. Try to put fixedvalue 0 at inlet for alpha. Which version of OF are you using?

Btw, as i said before, at the breakthorugh you have multiple phases on the outlet boundary and the constant pressure bc might be no longer correct.

best,
andrea
Andrea_85 is offline   Reply With Quote

Old   November 16, 2015, 08:35
Default
  #24
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Thanks Andrea,

Sorry I was not clear in my previous post. I am using OF2.3.1. In my bcs for alpha i mention alpha(0-> air) injection at inlet and zeroGradient at outlet.

As you mentioned earlier, specifying fixedPressure at outlet {along with the inlet face pressure} seems not a good option. Attached are two time steps with glyphs just to be clear what is happening within the system.
fig0.jpg

fig1.jpg

To adjust pressures at inlet and outlet to fixed values, a pressure gradient developed is causing backward flow possibly.

So, is fixing the inflow at inlet and fixing pressure at outlet only solution?

Saideep

Last edited by Saideep; November 16, 2015 at 08:39. Reason: Text missing.
Saideep is offline   Reply With Quote

Old   November 16, 2015, 09:34
Default
  #25
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Can you show also the pressure field of those 2 pictures.
or alternatively, if you provide the test case i can give it a try.

andrea
Andrea_85 is offline   Reply With Quote

Old   November 16, 2015, 09:45
Default
  #26
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Attached is the test case.

Best;
Saideep

channelFlowFixedP.zip

Last edited by Saideep; November 16, 2015 at 09:46. Reason: File.
Saideep is offline   Reply With Quote

Old   November 16, 2015, 10:44
Default
  #27
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Ok, now i see what is going on.
Your channel is very small (R=2.5 micormeter) and capillary pressure is very large. If you don't provide a pressure force (between inlet and outlet) larger than the capillary force (which points to the negative x-axis after the first meniscus has left the domain) you will have flow from right to left (negative x-axis). Note that when the bubble is full inside the domain, the total capillary force is approximatively zero (if you assume that the 2 menisci are perfect circles) and the bubble moves correctly from left to right.

Just check the forces (after the first meniscus has left the domain).

-capillary force
Fc = gamma*cos(theta)*L = 6e-7 N (L is lenght of the contat line)

-pressure force
Fp = deltaP*A = 1.25e-8 N (A cross-sectional area of the channel)


There's nothing wrong with your simulation

Best,
Andrea
Saideep and mizzou like this.
Andrea_85 is offline   Reply With Quote

Old   November 18, 2015, 09:14
Default
  #28
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Thanks for that explanation Andrea.

I just made the case more complex, {plus channel}: instead of fixing pressures at inlet and outlet, I now try to inject at constant rate(water displacing air) and have fixed Pressure at outlets.

In figa, you can see injecting water (left face inlet and all remaining faces are outlets) into the system. In figb, i guess the capillary force that spread out into the top and bottom channels is balanced but there could be capillary force acting normal at the junction point which is acting along the direction of the pressure force.

I am confused of what is causing air to flow into the system from the outlet face on the right side? {figb}

figa.png figb.png

In figc, as you mentioned there is a two phase outflow and is defining fixed pressure bc a good option? I am just wondering how can water flow inwards from the outlets{top and bottom faces} for this case. I am using pressureInletOutletVelocity which is like a zeroGradient for outlet for U as bc for outlets.
figc.png

Best,
Saideep
mizzou likes this.
Saideep is offline   Reply With Quote

Old   November 18, 2015, 09:54
Default
  #29
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Try using inletOutlet for alpha with inletValue 0 (which is air in your case if i am not wrong) instead of zeroGradient to prevent water coming in from the top and bottom boundary and yes, in my opinion, it is not a good idea fix the pressure on those boundaries. I would fix it on the right boundary where you have only 1 fluid.

Best,
andrea
mizzou likes this.
Andrea_85 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
Compressible flow, no data at the outlet mireis FLUENT 6 September 3, 2015 03:10
Simulating a high pressure flow through a valve Kromagnsss FLUENT 8 July 2, 2010 06:20
pressure BC in buoynacy driven flow Sasha FLUENT 3 October 11, 2006 11:08
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 14:19


All times are GMT -4. The time now is 16:48.