|
[Sponsors] |
September 19, 2012, 16:07 |
Rising bubble with interFoam
|
#1 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Hello Foamers,
Please I need your advice here. I'm doing a 2D simulation on rising bubble using interFoam. To simplify it for now, my boundary condition is zero velocity at inlet, zero pressure (p_rgh) on outlet and zero gradient for all other sides. Zero gradient also used on all sides of the alpha1. Volume fraction and pressure (p_rgh) inside is initialized with funkySetfField all identical to what was used in a previous trend. http://www.cfd-online.com/Forums/ope...elocity-2.html Bubble position is initially placed at center of the 100 mm^2 domain. nCells is 260480. Time step is 1e-4s (adjustableTimeStep also activated). liquid and gas phases are water and air, gravity is set to (0 -9.81 0). surface tension is 0.0728. Infact, I only slightly modified the damBreak tutorial to set up this case. What else. During simulation, I noticed the pressure (p_rgh) inside the bubble jumps from what I initialized (sigma/radius) to about 150N/m2. It runs fine but here is the problem, the bubble fails to rise, infact it sinks like a free fall (~0.75m/s). I've also tried to run without initializing the pressure inside the bubble, and it still sinks. I've tried changing the bubble size too, (and also actually flipped the sign of the gravity-makes no sense though but it rises with the same mag. of velocity as it falls when g is negative). How do I get the bubble to rise (with negative g ofcourse)? I've run out of ideas. Could the problem be with this p_rgh? Please I need your help/advice |
|
September 19, 2012, 18:09 |
|
#3 | |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Quote:
|
||
September 19, 2012, 23:32 |
|
#4 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
OK. I've tried my test case on bubbleFoam (one of the few solvers on OF 2.1.1 that still computes pressure as p0+rho*gh) and my bubble rises and behaves as expected. But I still need to use interFoam because it is easier to include the complexities of my cases in the interFoam solver (I'm a newbie to OF). Moreover, bubbleFoam solves Euler-Euler equation (continuity & momentum equations for each phase) which I don't desire. So back to my original question:
How do I include the effects of rho*gh to my pressure (p_rgh)? I honestly still don't see the importance of the change from p to p_rgh. Someone please reply. Thanks |
|
September 20, 2012, 00:57 |
|
#5 | |||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
BC are mentioned there!, i guess i used fixed pressure for top and no slip for bottom of geometry Quote:
Quote:
i guess, first you should refine your mesh, then you should apply the BC i mentioned above! meanse put BC zeroGradient for All variable then put noSlip condition for velocity at the bottom and fixedPressure for top of your geometry |
||||
September 20, 2012, 01:00 |
|
#6 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
|
||
September 20, 2012, 02:21 |
|
#7 | |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Quote:
As per adding a p file to my 0 dir, how do I add the rho*gh to it. I've tried it by specifying a random rho*gh value at outlet and internal field but it simply adds up but seems not to have any effect on the physics and the bubble still sinks. Think I might not be doing it right too but the point is how do I get buoyancy for my bubble? Thanks Last edited by tayo; September 20, 2012 at 03:20. |
||
September 20, 2012, 18:50 |
|
#9 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Hi nima. I've fixed the issue and it's rising. The problem was not with the p_rgh as I earlier thought. Actually, defining either p_rgh or p does not not affect the behavior. Thank you.
|
|
September 21, 2012, 03:45 |
|
#10 |
Senior Member
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17 |
Hi tayo,
You can also check the wiki http://openfoamwiki.net/index.php/Tw...28two_cases%29 and the references therein. |
|
September 21, 2012, 13:20 |
|
#11 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Thanks. Now the issue is computing the bubble position / velocity at each time step.
|
|
September 21, 2012, 13:45 |
|
#12 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hi tayo
look at here for swak4Foam http://openfoamwiki.net/index.php/Contrib/swak4Foam and its utilities : swakFunctionObjects or simpleSwakFunctionObjects |
|
September 26, 2012, 21:40 |
|
#13 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
Hi,
I'm a little confused using simpleSwakFunctionObjects or simpleFunctionObjects. Please I need enlightenment. Do I add the code to my case's controlDict file before or after running the case or do I activate it afterwards using a command just like it's done in funkySetFields? Does it prints out the averaged values or how do I obtain these values? Finding the average rise velocity for the bubble, do I need to define the initial position of the bubble? I really don't understand. I intend to try the code below for my 2d & 3d bubble. Thanks U { type patchAverage; functionObjectLibs ( "libsimpleFunctionObjects.so" ); verbose true; patches ( inlet wall outlet ); fields (U); } |
|
September 27, 2012, 00:12 |
|
#14 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
These libraries are executing meanwhile run-time and printout the result, for this case you wrote above average o U in patches inlet, wall and outlet will be saved in folder U,
however, it will execute in each timestep iteration after all! calculations, to calculate rise velocity of bubble, you should calculate the position of bubble gravity center in each time step |
|
September 28, 2012, 09:57 |
|
#15 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Have a look at http://openfoamwiki.net/index.php/Co...unctionObjects and tell me which information you're missing
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 5, 2014, 04:49 |
Boundary Conditions
|
#16 |
New Member
praveen kumar sharma
Join Date: Jun 2014
Posts: 17
Rep Power: 12 |
Hi,
As this problem is posted 2 yrs before so, I am expecting you already completed this in openFoam and I am new in openfoam I want to know that what are boundary condition you applied in side walls of the bubble rising problem in openFoam. thank you. Please I need your advice here. I'm doing a 2D simulation on rising bubble using interFoam. To simplify it for now, my boundary condition is zero velocity at inlet, zero pressure (p_rgh) on outlet and zero gradient for all other sides. Zero gradient also used on all sides of the alpha1. Volume fraction and pressure (p_rgh) inside is initialized with funkySetfField all identical to what was used in a previous trend. http://www.cfd-online.com/Forums/ope...elocity-2.html Bubble position is initially placed at center of the 100 mm^2 domain. nCells is 260480. Time step is 1e-4s (adjustableTimeStep also activated). liquid and gas phases are water and air, gravity is set to (0 -9.81 0). surface tension is 0.0728. Infact, I only slightly modified the damBreak tutorial to set up this case. What else. During simulation, I noticed the pressure (p_rgh) inside the bubble jumps from what I initialized (sigma/radius) to about 150N/m2. It runs fine but here is the problem, the bubble fails to rise, infact it sinks like a free fall (~0.75m/s). I've also tried to run without initializing the pressure inside the bubble, and it still sinks. I've tried changing the bubble size too, (and also actually flipped the sign of the gravity-makes no sense though but it rises with the same mag. of velocity as it falls when g is negative). How do I get the bubble to rise (with negative g ofcourse)? I've run out of ideas. Could the problem be with this p_rgh? Please I need your help/advice[/QUOTE] |
|
March 12, 2020, 13:11 |
|
#17 | |
New Member
Masoud Kahnooji
Join Date: Sep 2017
Location: Iran
Posts: 5
Rep Power: 9 |
Quote:
Please explain, how could you fix your problem? Last edited by masoudbme90; March 13, 2020 at 04:05. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting a concentration field around a bubble in InterFoam | azman | OpenFOAM Running, Solving & CFD | 3 | June 7, 2022 05:21 |
bubble rising problem | swamysrikanth | ANSYS Meshing & Geometry | 3 | May 31, 2016 12:09 |
VOF single bubble rising velocity! | Lincoln | Main CFD Forum | 3 | April 10, 2012 11:04 |
interTrackFoam for rising bubble | michielm | OpenFOAM | 3 | March 6, 2011 13:27 |
bubble rising in a column | swamysrikanth | Main CFD Forum | 2 | September 27, 2010 09:59 |