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

problem with two phase flow (air injected in water)

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

Like Tree1Likes
  • 1 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2011, 08:50
Default problem with two phase flow (air injected in water)
  #1
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi

I am simulating the flow in a water box equipped with a nozzle in the bottom.
The nozzle injects a mix of air and water (alpha = 0.1)
After some reading on this kind of flow on this forum I have chosen the twophaseeuler solver.
To initialize the flow I have taken the velocity distribution for a case with only water.
I have reproduced the settings of the bubble column tuto. Except for the drag force.

A t=0, I start to inject some air.

What i do not understand is that after a few iteration I get a full air velocity field even in region in which the air is not present
I have the impression that this strange behavior is due to the fact that OF calculates my air velocity by scaling the water velocity.
Why is this happenning?


If any body has some advice I'd be glad.

Another question concerns the pressure field. Since the box is filled with water the pressure changes with altitude.
So I don't want to impose pressure at the outlet of the domain.
What alternative type could I put?
If I put an inletoutlet velocity condition what is the corresponding condition I should use for pressure?


Thanks a lot

The picture illustrating my case are given.
Attached Images
File Type: jpg ua_air_vel.jpg (47.7 KB, 360 views)
File Type: jpg ub_water_vel.jpg (45.1 KB, 281 views)
File Type: jpg alpha_air_fraction.jpg (33.0 KB, 281 views)
File Type: jpg pressure.jpg (80.8 KB, 270 views)
miles_davis is offline   Reply With Quote

Old   September 21, 2011, 09:44
Default
  #2
Member
 
Join Date: Nov 2010
Posts: 41
Rep Power: 16
grjmell is on a distinguished road
You've fixed the pressure at the top, so zeroGradient on your outlet should work...
grjmell is offline   Reply With Quote

Old   September 21, 2011, 11:21
Default
  #3
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Thanks for your answer.
I put a zero gradient at the outlet but due to the recirculation I have some flow in and out the exit surface, So I may try a inletoutlet BC.

Do you have any guess why Ua is indexed on Ub even when specie A (i.e. air) is not present? In should be zero in such case.

Thanks again.
miles_davis is offline   Reply With Quote

Old   September 22, 2011, 14:14
Angry
  #4
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi
I have solved my pressure distribution problèms.
What I do not get it's why and how a velocity of a phase that is not present in a fluid domain (i.e. vol fraction alpha=0.0) can be non equal to zero????!!!!
I am using twophaseeulerfoam.
I have reproduced the tuto of the bublle column and i have found the same issue when velocity is set to zero at the beginning.
Please has anyone any guess where it might come from?

regards,
miles_davis is offline   Reply With Quote

Old   September 23, 2011, 23:24
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi Miles,

Quote:
Originally Posted by miles_davis View Post
What i do not understand is that after a few iteration I get a full air velocity field even in region in which the air is not present
I have the impression that this strange behavior is due to the fact that OF calculates my air velocity by scaling the water velocity.
Why is this happenning?
This is due to how the momentum equation has been written. OpenFOAM uses the phase-intensive form of the momentum equation, meaning that the original phase momentum equation is manipulated so that it can be divided by the phase fraction.

This is a quite common approach in many codes for nuclear safety applications and it was also adopted by Oliveira and Issa in one of their papers.

The phase-intensive momentum equation has the (correct) property that it makes the velocity tend to the particle terminal velocity if interaction terms are removed.

In other words, seeing a non-zero velocity where alpha is zero, is expected. However this should not lead to problems since all the terms depend on alpha.

Best,
Alberto
Jun_93 likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 25, 2011, 14:22
Default
  #6
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Dear all,


Thanks a lot for your answers.
I have another question.
I try to reproduce a two phase flow simulation made with Fluent.
It is the same case as described above except the fact that I do not simulate the air volume above the free surface of water.
I have concerns about the BC to define for the free surface and the outlet.
For the free surface for principal phase (i.e. water, phaseB) I use the slip BC on Ub.
I am confused for the air (phase a). The air can flow out of the domain at the free surface. Therefore witch BC do you think would be suitable for velocity Ua and alpha?

I have the same concern for the outlet.
I enclose to my post a picture of my test case and the BC I want to define.
Thanks a lot for your help and advices.

Regards,
Attached Images
File Type: jpg water-box-air-nozzle-injection.jpg (39.8 KB, 347 views)
miles_davis is offline   Reply With Quote

Old   September 25, 2011, 23:07
Default
  #7
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by miles_davis View Post
Dear all,


Thanks a lot for your answers.
I have another question.
I try to reproduce a two phase flow simulation made with Fluent.
It is the same case as described above except the fact that I do not simulate the air volume above the free surface of water.
I have concerns about the BC to define for the free surface and the outlet.
For the free surface for principal phase (i.e. water, phaseB) I use the slip BC on Ub.
I am confused for the air (phase a). The air can flow out of the domain at the free surface. Therefore witch BC do you think would be suitable for velocity Ua and alpha?

I have the same concern for the outlet.
I enclose to my post a picture of my test case and the BC I want to define.
Thanks a lot for your help and advices.

Regards,

here are few questions:

1# Alpha = 0.1 , means that 0.1 x Water + 0.9 x Air? Am I right.

2# Wouldn't it be better to define a new fluid with properties derived from alpha x Water + (1-Alpha) * Air , should be called Steam and solve for this fluid. So main phase would be steam and secondary phase would be water. At inlet Alpha = 1 then.

Am I wrong about it, are there problems in this approach that would give wrong results? Please correct me.

3# what are the geometric dimensions of box you presented as domain. This I am asking because currently I am trying to write VOF code myself and if I get time would like to run your case myself. (If possible, just for pleasure and fun).
arjun is offline   Reply With Quote

Old   September 26, 2011, 14:44
Default
  #8
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi,

sorry for the delay of answer

Quote:
Originally Posted by arjun View Post
here are few questions:

1# Alpha = 0.1 , means that 0.1 x Water + 0.9 x Air? Am I right.
sorry I was'nt clear enough:
alpha is the vol fraction of air
so in fact it's the opposite:
0.9 watter
0.1 air

Quote:
Originally Posted by arjun View Post
2# Wouldn't it be better to define a new fluid with properties derived from alpha x Water + (1-Alpha) * Air , should be called Steam and solve for this fluid. So main phase would be steam and secondary phase would be water. At inlet Alpha = 1 then.


Am I wrong about it, are there problems in this approach that would give wrong results? Please correct me.
No
I can't do that.
It's a filtration process.
So I want to see how air and water separate.
So I don't want to define a mixture of air+water.

Quote:
Originally Posted by arjun View Post
3# what are the geometric dimensions of box you presented as domain. This I am asking because currently I am trying to write VOF code myself and if I get time would like to run your case myself. (If possible, just for pleasure and fun).
It is a square box of 2mx2m
inlet: 0.5m
outlet: 0.25m

Regards,

Miles
miles_davis is offline   Reply With Quote

Old   September 26, 2011, 19:00
Default
  #9
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by miles_davis View Post
Hi,


It is a square box of 2mx2m
inlet: 0.5m
outlet: 0.25m

Regards,

Miles

I was able to run your case. So far it is 'Colourful Fluid Dynamics', it does show me some results. Look alright to me. (off course not usable).

There are few things:
1. I did not know the nozzle design so i just used slit of 10mm as inlet. My guess is that inlet is smaller than this in diameter.
2. About the free surface at top, I used outflow condition. That is in this case flow can go out and some of it can come in.

Question: Can flow really come in and go out of it. OR it is closed??

3. I extended the outlet part and fixed it to a pressure boundary condition.

Anyway i do not have problems, SO FAR, solver runs fine (at least for last 10 minutes that i tried ).


PS: I did not run it fully, but here is where i stopped it.






Last edited by arjun; September 26, 2011 at 19:24.
arjun is offline   Reply With Quote

Old   September 27, 2011, 13:39
Default
  #10
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi
Great simulations.
Is it made with your own code? What method it is? VOF?

The problem is the BC at the top of the domain.
Since it is air in a water box, the water can't escape from the upper surface.
That's why I need to fix a different BC for water phase and air phase!!!
And since I need two study diameter sensibility, I am stuck with twophaseeulerfoam model.

Another question:
what did you put as a BC for the outlet?
p=0?
Why did you add this long duct at the outlet?


regards,

P.S.: does anyone know what is pressure in OF2.0.1?
I have read that in previous version of the code it was in fact Pstatic-rho*g*h, than in antother version it was just Pstatic. What is the actual statement for OF 2.0.1?

Last edited by miles_davis; September 27, 2011 at 14:00.
miles_davis is offline   Reply With Quote

Old   September 27, 2011, 23:38
Default
  #11
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by miles_davis View Post
Hi
Great simulations.
Is it made with your own code? What method it is? VOF?
Yaa, I am trying to learn and implement VOF methods. I am finally able to validate the explicit version.
I am following this paper:

http://webfea.fea.aub.edu.lb/cfd/pdf...S-Complete.pdf

The code is same as discribed in this paper with a minor change from my side, instead of SUPERBEE , I am using Bounded Downwind of HRIC scheme.

Results are impressive so far, but I would now try to make it implicit.

Quote:
Originally Posted by miles_davis View Post
The problem is the BC at the top of the domain.
Since it is air in a water box, the water can't escape from the upper surface.
That's why I need to fix a different BC for water phase and air phase!!!
You see, since volume fraction only convects by advection equation, it could only go through top if velocity across it is finite. But if velocity across it is finite water can escape and enter from top.
I think partial blocking of water , though possible by modifying code, is not suggested.




Quote:
Originally Posted by miles_davis View Post
And since I need two study diameter sensibility, I am stuck with twophaseeulerfoam model.

Another question:
what did you put as a BC for the outlet?
p=0?
Why did you add this long duct at the outlet?
the outlet is at the moment pressure outlet, this is why I extended it. (other reason to extend it was possible recirculation of flow at exit you had that might create problems with solver).


BUT, I could switch to outflow conditions instead of pressure outlet, where pressure at only 1 point is fixed (not at whole outlet).


Usually in the solver when you have outflow conditions solver tries to balance the mass flux and make it equal to flow coming in through inlets.

For running your case I had to switch that thing off.

So thanks, now I can provide user an option to switch forcing of mass balance at outflow. Before your case it did not occur to me.


PS:

I am solving for air and water is my secondary phase. This means VOF equations are solved for air and water C = 1 - Air_C
arjun is offline   Reply With Quote

Old   September 30, 2011, 07:35
Default
  #12
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi ,

I have kept on trying to simulate air injection with the Twophaseeulerfoam.
After having performed a transient simulation of the water injection, I added the air.
The air bublles diameter is 150µm.
I take into account drag with a shcillerneuman model (I have reproduced the bubble column tutorial for drag interaction but I hope the reading of Rush thesis will give me a better rule of choice for bubble drag).
Lift and virtual mass. Are on as well.
I get a rising air flow (see picture)

What I do not understand is why the velocity of the buble remain strictly aligned on the water velocity.
it seems that drag effects are very high and so bubbles stay in close contact with the air flow.
I was expecting buoyancy effect to help bubble to rise faster than the water flow!

I am currently reading
Numerical aspects of an algorithm for the Eulerian simulation
of two-phase flows
Paulo J. Oliveira
Raad I. Issa
and the thesis from Rush.

It seems that buoyancy effects are indeed taken into acount.
So I do not understand why I can't reproduce these effects with the model.
Maybe I misunderstood something in the model.

Thanks for your help.


Regards,

Miles
Attached Images
File Type: jpg test_2_alpha_20s.jpg (69.3 KB, 223 views)
File Type: jpg test_2_alphaUa_vs_Ub_20s.jpg (63.0 KB, 191 views)
miles_davis is offline   Reply With Quote

Old   October 7, 2011, 12:46
Default
  #13
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi,

I have made a test: a simple volume of air in the domain at the beginning of the calculation.
It appears that the air is rising in the water due to buoyancy effect.
So this is not the problem in my simulation.

I have run another tests and in every case for d<500µm, the velocity field for watter and air are exactly the same. As if the drag force of water on air bubbles tends to infinity.
I have checked and read the solver, I do not see anything strange in its formulation.

Has anyone ever encountered such problems?

Thanks for your help.


Regards,
miles_davis is offline   Reply With Quote

Old   October 8, 2011, 02:10
Default
  #14
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
What is the injection velocity of the air in the real system you are simulating? Is it consistent with your setup?

If the air is injected at a high enough velocity, it will clearly create a sort of jet.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 11, 2011, 18:53
Default
  #15
Member
 
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15
miles_davis is on a distinguished road
Hi,

The air enters at the same velocity as water: 0.2 m/s.
And it does create a jet.
I am ok with that.
My concern is on the fact that at the free surface of water, I was expecting the bubble of 150µm to continue rising and escape!
But they reach the surface and slip on the free surface as the water.
Besides the air velocity is strictly alined on water velocity.
I have to check Stokes number but it seems wired.

Regards,
miles_davis is offline   Reply With Quote

Old   March 31, 2021, 10:36
Default nozzle geometry
  #16
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 9
cyw is on a distinguished road
I want to simulate bubble injection from a nozzle in the bottom. Could you please tell me how did you build the geometry of the nozzle? Thanks for your help!



Quote:
Originally Posted by miles_davis View Post
Hi ,

I have kept on trying to simulate air injection with the Twophaseeulerfoam.
After having performed a transient simulation of the water injection, I added the air.
The air bublles diameter is 150µm.
I take into account drag with a shcillerneuman model (I have reproduced the bubble column tutorial for drag interaction but I hope the reading of Rush thesis will give me a better rule of choice for bubble drag).
Lift and virtual mass. Are on as well.
I get a rising air flow (see picture)

What I do not understand is why the velocity of the buble remain strictly aligned on the water velocity.
it seems that drag effects are very high and so bubbles stay in close contact with the air flow.
I was expecting buoyancy effect to help bubble to rise faster than the water flow!

I am currently reading
Numerical aspects of an algorithm for the Eulerian simulation
of two-phase flows
Paulo J. Oliveira
Raad I. Issa
and the thesis from Rush.

It seems that buoyancy effects are indeed taken into acount.
So I do not understand why I can't reproduce these effects with the model.
Maybe I misunderstood something in the model.

Thanks for your help.


Regards,

Miles
cyw is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:21
introduce air to water flow masoudarami FLOW-3D 10 September 13, 2016 10:15
Problem of air bubbles in water. Please help !!! xc FLUENT 4 February 6, 2008 06:05
Is there any one working on two phase flow problem sina FLUENT 2 October 6, 2004 07:55
Problem on boundry of two phase flow youngan CFX 2 June 30, 2003 03:11


All times are GMT -4. The time now is 22:20.