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

bubble in still water without gravity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2017, 03:53
Default bubble in still water without gravity
  #1
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Hi researchers,

Anyone simulate a bubble in still water without gravity using interFoam? If so, how is the result should be?

Best Regards
CYW
cyw is offline   Reply With Quote

Old   December 11, 2017, 04:26
Default
  #2
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Without gravity you will probably get a solution that is heavily corrupted by parasitic currents.
BlnPhoenix is offline   Reply With Quote

Old   December 11, 2017, 05:10
Default
  #3
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
Without gravity you will probably get a solution that is heavily corrupted by parasitic currents.
Thank you for your reply. I have simulated such a case. But the bubble evolves in a weird direction. I do not know the reason. What is " parasitic currents"? Is that to say, interFoam cannot simulate such a case?
cyw is offline   Reply With Quote

Old   December 11, 2017, 08:46
Default
  #4
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
Thank you for your reply. I have simulated such a case. But the bubble evolves in a weird direction. I do not know the reason. What is " parasitic currents"? Is that to say, interFoam cannot simulate such a case?
Parasitic currents are a numerical problem that occur at the bubble interface where the pressure difference is high. As far as i know there is no general solution to this problem yet in VOF type solvers, even commercial codes like FLUENT. You can search this forum for more. What you see in your simulation is probably weird behaviour because of this. When you activate gravity these parastic currents get overlapped by the rising velocity of the bubble. Don't ask me how this works numerically but you can get a meaningful and accurate description of the rising behaviour (velocity, shape) nevertheless.
BlnPhoenix is offline   Reply With Quote

Old   December 11, 2017, 08:49
Thumbs up
  #5
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
Parasitic currents are a numerical problem that occur at the bubble interface where the pressure difference is high. As far as i know there is no general solution to this problem yet in VOF type solvers, even commercial codes like FLUENT. You can search this forum for more. What you see in your simulation is probably weird behaviour because of this. When you activate gravity these parastic currents get overlapped by the rising velocity of the bubble. Don't ask me how this works numerically but you can get a meaningful and accurate description of the rising behaviour (velocity, shape) nevertheless.
Thank you for your reply. I read a paper about this peoblem. https://journal.austms.org.au/V46/CT.../Har1/Har1.pdf


Also this thread helps me a lot. parasitic currents

Thank you for your kind reply
cyw is offline   Reply With Quote

Old   December 11, 2017, 08:52
Default
  #6
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
Thank you for your reply. I read a paper about this peoblem. https://journal.austms.org.au/V46/CT.../Har1/Har1.pdf


Also this thread helps me a lot. parasitic currents

Thank you for your kind reply
No problem.
BlnPhoenix is offline   Reply With Quote

Old   December 12, 2017, 14:31
Default pressure
  #7
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
No problem.
Hello, again

When I simulate this case with interFoam, do I need to set the pressure difference between the bubble and water (2*sigma/radius) at t=0?
cyw is offline   Reply With Quote

Old   December 13, 2017, 07:57
Default
  #8
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
Hello, again

When I simulate this case with interFoam, do I need to set the pressure difference between the bubble and water (2*sigma/radius) at t=0?
Hm, can you do this in OpenFoam? How?

I've never done it, since my assumption was that the pressure field is calculated with the first time step.

It would be interesting to know how we can set a pressure Field in OpenFoam, i guess with setFieldsDict...
BlnPhoenix is offline   Reply With Quote

Old   December 13, 2017, 08:02
Default
  #9
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
Hm, can you do this in OpenFoam? How?

I've never done it, since my assumption was that the pressure field is calculated with the first time step.

It would be interesting to know how we can set a pressure Field in OpenFoam, i guess with setFieldsDict...
That is true. I set different pressure in air and water phase with setFieldsDict. But the result did not get better...
cyw is offline   Reply With Quote

Old   December 13, 2017, 08:08
Default
  #10
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
That is true. I set different pressure in air and water phase with setFieldsDict. But the result did not get better...
Can you post the setFieldsDict for pressure? I'm curious to see.
BlnPhoenix is offline   Reply With Quote

Old   December 13, 2017, 08:10
Default
  #11
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
Can you post the setFieldsDict for pressure? I'm curious to see.
Here is it.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue alpha.water 1
volScalarFieldValue p_rgh 1e5
);

regions
(
sphereToCell
{
centre (0 0 0.3);
radius 0.15;

fieldValues
(
volScalarFieldValue alpha.water 0
volScalarFieldValue p_rgh 2e5
);
}
);

// ************************************************** *********************** //
cyw is offline   Reply With Quote

Old   December 13, 2017, 08:23
Default
  #12
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
Here is it.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue alpha.water 1
volScalarFieldValue p_rgh 1e5
);

regions
(
sphereToCell
{
centre (0 0 0.3);
radius 0.15;

fieldValues
(
volScalarFieldValue alpha.water 0
volScalarFieldValue p_rgh 2e5
);
}
);

// ************************************************** *********************** //
Yep, i guess that's it. Thanks.

Shame it does not help with the parasitic currents... May i ask what you need the stagnant bubble for? If you have a bubble that is perfectly shaped (depending on diameter and surface tension) you can simulate under gravity a few time steps and the bubble should not deform, than this time step should not contain parasitic currents anymore (it does contain rising velocity filed though..)
BlnPhoenix is offline   Reply With Quote

Old   December 13, 2017, 08:30
Default
  #13
cyw
Member
 
Yuanwei Cao
Join Date: Jun 2017
Location: Munich,Germany
Posts: 54
Rep Power: 8
cyw is on a distinguished road
Quote:
Originally Posted by BlnPhoenix View Post
Yep, i guess that's it. Thanks.

Shame it does not help with the parasitic currents... May i ask what you need the stagnant bubble for? If you have a bubble that is perfectly shaped (depending on diameter and surface tension) you can simulate under gravity a few time steps and the bubble should not deform, than this time step should not contain parasitic currents anymore (it does contain rising velocity filed though..)
Thank you for your help. The parasitic currents really worked for me. I changed a few things in interFoam and the result is better.
This is a preliminary research for my PhD work. My final goal is to simulate bubble condensation. Later compressibleInterFoam will be used. Do you know how to set alphaSgs file and what is it?
cyw is offline   Reply With Quote

Old   December 13, 2017, 08:42
Default
  #14
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by cyw View Post
Thank you for your help. The parasitic currents really worked for me. I changed a few things in interFoam and the result is better.
This is a preliminary research for my PhD work. My final goal is to simulate bubble condensation. Later compressibleInterFoam will be used. Do you know how to set alphaSgs file and what is it?

This seems to be related to a LES turbulence model... Not sure though..
BlnPhoenix 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
Mass imbalance problem in multiphase water and steam CFX case Antech CFX 1 October 26, 2020 04:03
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
injecting water mixed with tiny bubble willy FLUENT 3 June 18, 2001 08:50
Bubble motion in water...help Jazaul Ikhsan Main CFD Forum 8 May 31, 2001 01:35


All times are GMT -4. The time now is 14:11.