# Getting a concentration field around a bubble in InterFoam

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 22, 2008, 14:51 Hi all, I have been playin #1 New Member   Azman Join Date: Mar 2009 Location: Aachen, Germany Posts: 3 Rep Power: 17 Hi all, I have been playing around with the InterFOAM solver for about 2 weeks now to simulate a rising bubble (my bubbles rise! all thanks to Sebastian Gatze's contribution to this Forum), and was toying with the idea of solving the concentration field of oxygen bubble rising in water using InterFOAM. A OpenFoam user has been sharing his work on rising bubbles in another thread using InterFOAM, and I was thinking whether it makes sense to get a concentration field around a bubble. The first strategy that came to my mind was ..just adding the scalarTransport equation (just like how it was defined in the ScalarTransportFoam) in my InterFoam solver, after the gamma equation and velocity equation is solved. solve ( fvm::ddt(C) + fvm::div(U, C) - fvm::laplacian(DT, C) ); with DT = gamma*D02_liquid + (1-gamma)*DO2_air I am however not sure how I can include a jump condition at the interface, such that CO2_liquidinterface = HenrysKoeff*C02_gasinterface. I fear that this is not possible with the VOF method since VOF doesnt track the interface per se, but just the vol. fraction of each cell, and magically reconstruct the interface. Am I right? I recently came across a paper from Bothe et al., about direct numerical simulation of mass transfer between rising bubbles and the surrounding liquid that can be accessed through the link below. http://chemie.uni-paderborn.de/filea...ecke/Literatur /bubblyflows.pdf In their work with a self-built fvm code, the VOF method was used too, with the PLIC method to reconstruct the interface. The scalar transport equation was solved as follows: Inside each phases: dC'/dt + div(C'*u) = DT.grad(C') whereby C' = C_liq at the liquid phase C' = C_gas/H at the gas phase DT (as above) at the interphase: C'_L = C'_G D02_liquid*grad(C').n = H*D02_Gas*grad(C').n Does anyone know what to include in the solver, such that the condition at the interphase is fulfilled. raj kumar saini likes this.

 March 16, 2012, 07:26 Mass transfer + Interfoam #2 Member   Hanniel Freitas Join Date: Jan 2012 Location: Natal, Brazil Posts: 34 Rep Power: 14 Hi, azman. Could you send me your case of mass transfer coupled with interFoam? My email is: hanniel88(at)gmail(dot)com Replace (at) for @ And (dot) for .

 January 7, 2013, 13:47 #3 Senior Member     Anton Kidess Join Date: May 2009 Location: Germany Posts: 1,377 Rep Power: 30 For future reference: http://www.cfd-online.com/Forums/ope...one-phase.html __________________ *On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer.

June 7, 2022, 04:21
#4
Member

Join Date: Feb 2021
Location: Austria
Posts: 39
Rep Power: 5
Quote:
 Originally Posted by azman Hi all, I have been playing around with the InterFOAM solver for about 2 weeks now to simulate a rising bubble (my bubbles rise! all thanks to Sebastian Gatze's contribution to this Forum), and was toying with the idea of solving the concentration field of oxygen bubble rising in water using InterFOAM. A OpenFoam user has been sharing his work on rising bubbles in another thread using InterFOAM, and I was thinking whether it makes sense to get a concentration field around a bubble. The first strategy that came to my mind was ..just adding the scalarTransport equation (just like how it was defined in the ScalarTransportFoam) in my InterFoam solver, after the gamma equation and velocity equation is solved. solve ( fvm::ddt(C) + fvm::div(U, C) - fvm::laplacian(DT, C) ); with DT = gamma*D02_liquid + (1-gamma)*DO2_air I am however not sure how I can include a jump condition at the interface, such that CO2_liquidinterface = HenrysKoeff*C02_gasinterface. I fear that this is not possible with the VOF method since VOF doesnt track the interface per se, but just the vol. fraction of each cell, and magically reconstruct the interface. Am I right? I recently came across a paper from Bothe et al., about direct numerical simulation of mass transfer between rising bubbles and the surrounding liquid that can be accessed through the link below. http://chemie.uni-paderborn.de/filea...ecke/Literatur /bubblyflows.pdf In their work with a self-built fvm code, the VOF method was used too, with the PLIC method to reconstruct the interface. The scalar transport equation was solved as follows: Inside each phases: dC'/dt + div(C'*u) = DT.grad(C') whereby C' = C_liq at the liquid phase C' = C_gas/H at the gas phase DT (as above) at the interphase: C'_L = C'_G D02_liquid*grad(C').n = H*D02_Gas*grad(C').n Does anyone know what to include in the solver, such that the condition at the interphase is fulfilled.

Hello azman,

I hope you are doing well. I would have a similar question.
I am trying to simulate a single bubble movement in a solution of water and sugar with interIsoFoam solver, OF2112. I modified the solver and coupled the density, surface tension and viscosity of solution to the concentration of sugar which is different in various parts of the domain. In order to solve the distribution of sugar (a passive scalar) in the geometry, I added a new equation to the solver as below:

fvScalarMatrix CEqn
(
fvm::ddt(C)
+ fvm::div(phi, C)
- fvm::laplacian(dc,C)
==
fvOptions(C)
);

CEqn.relax();
fvOptions.constrain(CEqn);
CEqn.solve();
fvOptions.correct(C);

Now, the problem is, sugar concentration penetrates inside the bubble which is not correct. I would like to know how can I prevent sugar entering the bubble? I would be more than happy if you share your opinion with me.