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

variableHeightFlowRateInletVelocity bubbles at the inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2019, 10:16
Default variableHeightFlowRateInletVelocity bubbles at the inlet
  #1
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
Hi,

I have a multiphase interIsoFoam simulation with variableHeightFlowRateInletVelocity inlet boundary condition for U.

When I watched the results I've noticed inflow bubbles at the inlet. It looks quite random.

Why are these bubbles? Are they normal? Can I do something against them? I'm afraid that these bubbles may affect my final results.

Here is a photo of the problem (but a video would be more effective I know...)

Thank you in advance!

Griva
Attached Images
File Type: jpg jelenseg1.jpg (92.0 KB, 46 views)
GrivalszkiP is offline   Reply With Quote

Old   October 8, 2019, 03:45
Default
  #2
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Griva,

I happened to come across exactly this in the Applied OpenFOAM course (CFD-Direct) I recently attended. The bubbles are a result of air being trapped at the inlet when the water level is rising at the start of the simulation. The good news is that this can be fixed, the sad news is that I can't remember exactly how... I think it was done by setting the initial volume fraction field not only in a boxToCell region, but also in a boxToFace region, to set the volume fraction on the inlet faces:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
    volScalarFieldValue alpha.water 0
);

regions
(
    boxToCell
    {
        box     (-5 -1 -1) (0.5 1 1.3);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }
    
    boxToFace
    {
        box     (-5 -1 -1) (0.5 1 1.3);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }    
);
Hope this helps,
Sita
sita is offline   Reply With Quote

Old   October 8, 2019, 11:54
Default
  #3
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
Unfortunately it didn't work... Can you please ask for the solution among your coursemates?

Thank you!

Griva
GrivalszkiP is offline   Reply With Quote

Old   October 8, 2019, 14:30
Default
  #4
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Griva,

Ah, that's too bad, I'm fairly sure that this was the solution that was used during the course. If you want I can send you the case we did in a PM, so you can compare and try things for yourself.

Sita

P.S. I'm not sure I can see those bubbles in the images you attached. Wouldn't a phase fraction plot be more suitable here?
sita is offline   Reply With Quote

Old   October 9, 2019, 03:11
Default
  #5
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
I would be really grateful, thank you!
GrivalszkiP is offline   Reply With Quote

Old   October 9, 2019, 07:02
Default
  #6
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Griva,

The private messaging tool is throwing errors, so I put the case on Dropbox instead:

https://www.dropbox.com/s/j39gpxb4tx...rflow.zip?dl=0

I'm not sure whether the problem we prevented in this case is the same one you're encountering now, but hopefully it's useful to you anyway.

Good luck,
Sita

P.S. Please let me know when you've downloaded the case, so I can remove it from my Dropbox
sita is offline   Reply With Quote

Old   October 10, 2019, 06:55
Default
  #7
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
Thank you so much, I've downloaded it!

Griva
GrivalszkiP is offline   Reply With Quote

Old   November 7, 2019, 10:14
Default
  #8
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
It didn't work
GrivalszkiP is offline   Reply With Quote

Old   November 8, 2019, 05:30
Default
  #9
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Ah, that's too bad, sorry to hear that! I'm afraid I can't help you any further in that case.
sita is offline   Reply With Quote

Reply

Tags
bubbles, inflow, inlet, random, variableheightflowrate


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
setting the correct format of nonuniform List<vector> for inlet in 0 Folder cfdonline2mohsen OpenFOAM Running, Solving & CFD 8 July 18, 2019 08:03
Adjuting oulet pressure till inlet pressure reaches a certain value in timestep pvpnrao OpenFOAM Running, Solving & CFD 2 September 11, 2018 10:14
multiple inlet as one inlet amin_gls CFX 2 October 2, 2013 08:59
velocity inlet and ideal gas simultaneously-what's wrong? preetam69 FLUENT 0 September 28, 2013 04:51
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42


All times are GMT -4. The time now is 10:33.