|
[Sponsors] |
A rising bubble in a stagnant liquid with two-fluid-model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 4, 2015, 04:18 |
|
#21 | ||
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Quote:
Quote:
Fabian |
|||
December 4, 2015, 09:01 |
|
#22 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Dear Hoyt
is it possible to share a working set-up? Or do you use my set-up attached to my first post? kind regards, Fabian |
|
December 4, 2015, 13:06 |
|
#23 |
New Member
Join Date: Dec 2010
Posts: 4
Rep Power: 15 |
Hi Fabian,
I've been using the 2-D bubble rise benchmark scenario that can be found here: http://www.featflow.de/en/benchmarks...ng/bubble.html The case entails comparison of the interface shape after allowing an initially spherical bubble to rise for a fixed amount of time. I've attached a plot to this post showing the interface shape that is predicted by interFoam, by the original multiphaseEulerFoam, and by the fixed version of multiphaseEulerFoam. Give me a day or two and I'll post the case and the updated solver. I agree with Anton that a bug report should definitely be made at some point. Best regards, Nathan bubbleRiseInterface.png |
|
December 6, 2015, 13:37 |
|
#24 |
New Member
Join Date: Dec 2010
Posts: 4
Rep Power: 15 |
See the attached files for the bubble rise case and an updated version of multiphaseEulerFoam.
In updating the solver to OpenFoam 3.0.0, I've realized that the interfacial smoothing that I talked about earlier isn't quite as critical as I'd remembered. The drag between the phases is actually what seems to cause the bubbles to “explode” and distort non-physically. Along with smoothing and the fixed velocity reconstruction, the version I've attached also multiplies the interphase drag for a given phase pair by the respective value of (1-cAlpha). This seems to make the rising bubble case and other high capillary number cases work fine, but additional investigation probably needs to be done into this issue. It is possible that the free-surface drag formulation that Fabian was attempting may be a better way to go. Alternatively, cAlpha switching (as in Shonibare, O., Wardle, K., “Numerical Investigation of Vertical Plunging Jet Using a Hybrid Multifluid–VOF Multiphase CFD Solver” International Journal of Chemical Engineering, Volume 2015 (2015)) is another approach that could also work. |
|
December 7, 2015, 04:21 |
|
#25 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Thanks a lot for sharing the set-up and the solver. I will give it a try and post my results.
The problem is to my opinion that the rising or more simplified the stagnant (no gravitation) bubble case is a limiting case for the two-fluid model. As alpha is always multiplied in all terms of the momentum equation one will have the result 0=0 except in the vicinity of the interface. To avoid this the drag is set to a small but always present value (residualPhaseFraction and residualSlip). I have the feeling that this destabalizes the numerics, and, henceforth, the bubble due to the small velocity which is always present. Unfortunatly, I do not have a proper solution yet. kind regards Fabian |
|
December 8, 2015, 09:27 |
|
#26 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Allright, after some quick and dirty tests, it seems to work with OF 3.0.x. However, with OF 2.4.x it still do not work. I tried Nathans solver with the his bubble test case and this works fine. Nathans solver with my bubble test case (scheme and solution settings taken from Nathans case) works well, but gives wrong results in terms of bubble shape, but this might be due to the simple drag model. Now, backporting Nathans changes (nHatfvSmooth and K function) to my solver in OF 2.4.x (with fixed surface tension) does not work. As in 2.4.x the p_rgh pressure does not exist I tried to implement it as well. First I thought this should be easy, but now after spending some hours on it and it still not work, it seems to be more challenging
kind regards Fabian Edit: I found the problem, but currently I do not understand the reason for it. In Nathans solver is another modification in the dragCoeffs function. The line of interest is Code:
max ( dm.phase1()*dm.phase2()*(1-cAlpha()), dm.residualPhaseFraction() ) Last edited by fs82; December 8, 2015 at 11:05. |
|
December 10, 2015, 11:49 |
|
#27 |
New Member
Join Date: Dec 2010
Posts: 4
Rep Power: 15 |
Hi Fabian,
Sorry for the confusion. As i mentioned in my earlier message, the drag term is more important than I had thought in my original post. In the solver that I posted the (1-cAlpha) term does serve to reduce the drag for the phase pair with interface compression turned on. This is perhaps too drastic a step for cases where the phases might be dispersed in some regions of the simulation; for those cases treating cAlpha as a field variable and setting it to 1 or 0 locally depending on the ability of the solver to resolve interfacial features is an approach that I can confirm does work for more general problems. Best regards, Nathan |
|
January 21, 2016, 12:48 |
|
#28 |
New Member
Join Date: Sep 2015
Location: Germany
Posts: 11
Rep Power: 11 |
Hi Nathan,
Thanks a lot for sharing the solver. I have one question: treating cAlpha as a field variable is not possible in the release version of the solver? Best regards, Francesco |
|
January 22, 2016, 03:20 |
|
#29 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
It's not (it's defined as a scalar), but the code change is trivial: define a volScalarField IOobject cAlpha, read it from a file.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
August 18, 2016, 04:57 |
|
#30 | |
New Member
Daniele Dovizio
Join Date: Feb 2011
Posts: 6
Rep Power: 15 |
Quote:
I am interested in treating cAlpha as a non constant value. Did you try that as well? Thanks, Daniele |
||
August 18, 2016, 13:27 |
|
#31 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
Anton, you are mostly correct in saying that the changes needed are straightforward. One challenging point is that cAlpha is not used as a volScalarField in most places--it is actually a surfaceScalarField--though there are places that it needs to be used as a volScalarField and so some switching back and forth through interpolation/averaging is required. Additionally, cAlpha is defined for each phase pair so it needs to be constructed as a PtrDictionary lookup similar to some other properties in transportProperties. This perhaps makes it less trivial but still straightforward.
I am hopeful that we can open-source release our modified solver in some form at some point. Nathan will continue working on this front. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rising bubble with interFoam | tayo | OpenFOAM Running, Solving & CFD | 16 | March 12, 2020 13:11 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
bubble rising problem | swamysrikanth | ANSYS Meshing & Geometry | 3 | May 31, 2016 12:09 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |