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

outletPhaseMeanVelocity: Interpretation

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By clapointe
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 03:04
Default outletPhaseMeanVelocity: Interpretation
  #1
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
I struggle understanding the meaning of this boundary condition.
I have two fluids.
I use the following BCs for the velocity

Code:
internalField   uniform ($mUmean  0 0); 
 
boundaryField 
{ 
    outlet 
    { 
        type            outletPhaseMeanVelocity; 
        alpha           alpha.water; 
        Umean           $Umean; 
        value           $internalField; 
 
    } 
    inlet 
    { 
        type                    fixedValue; 
        value                   $internalField; 
    }
Am I right when I am saying that the alpha.water at the outlet is set "Umean" and that the velocity of the other phase adjusts so that there is mass conservation of both phases?

In case this is important information, I use the following BCs for the alpha:

Code:
internalField   uniform 0;

    outlet
    {
        type            variableHeightFlowRate;
        lowerBound      0;
        upperBound      1;
        value           $internalField;
    }
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }
kaaja is offline   Reply With Quote

Old   May 3, 2018, 12:31
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
Searching the code for the corresponding file (https://github.com/OpenFOAM/OpenFOAM...VectorField.H)) is a good place to check. Quoting the provided information :

"This boundary condition adjusts the velocity for the given phase to achieve
the specified mean thus causing the phase-fraction to adjust according to
the mass flow rate.".

Caelan
aow and ms.hashempour like this.
clapointe is offline   Reply With Quote

Old   May 3, 2018, 13:08
Default
  #3
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
I have seen that definition, but I am not fully sure what it means.

As far as I understand, the velocity for alpha.water becomes the value one presicribes, "Umean", correct?

Then it says "... thus causing the phase-fraction to adjust according to
the mass flow rate."
Does this mean that the value of alpha.water at the outlet changes so that the mass flow rate over the whole outlet equals the mass flow rate over the whole inlet?
kaaja is offline   Reply With Quote

Old   May 3, 2018, 13:21
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
There is nothing about the other patches -- if the velocity is changed on the patch, the phase fraction is also adjusted on the patch to conserve mass :

Code:
    // Set the refValue and valueFraction to adjust the boundary field
    // such that the phase mean is Umean_
    if (Uzgmean >= Umean_)
    {
        refValue() = Zero;
        valueFraction() = 1.0 - Umean_/Uzgmean;
    }
    else
    {
        refValue() = (Umean_ + Uzgmean)*patch().nf();
        valueFraction() = 1.0 - Uzgmean/Umean_;
    }
clapointe is offline   Reply With Quote

Old   May 4, 2018, 08:03
Default
  #5
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
Am I right when I say

1)that the BC sets U = Umean everywhere on the outlet, and that alpha.water is adjusted so that mass conservation is obtained?

or

2) A velocity assuming zeroGradient is calculated. This velocity is adjusted by a factor so that the mean of this velocity equals Umean. Finally the alpha.water is adjusted so that mass conservation is maintained.

edit: Added guess 2.

Last edited by kaaja; May 4, 2018 at 10:22.
kaaja is offline   Reply With Quote

Old   May 4, 2018, 10:56
Default
  #6
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
Scanning the code, it looks like the latter. I would encourage you to run a test using this bc and visualize the velocity on the patch (eg in paraview). If it's non-uniform, we'll know it's the latter. You could also use the patchAverage function object for further reassurance.

Caelan
aow likes this.
clapointe is offline   Reply With Quote

Old   May 5, 2018, 00:50
Default
  #7
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
I will try your suggestion.
Thanks for helping, Caelan!
kaaja is offline   Reply With Quote

Reply

Tags
outletphasemeanvelocity


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
Interpretation of some results - Heat transfer-Incompressible flow around an object startingWithCFD CFD Freelancers 4 September 4, 2013 13:44
Riemann invariants....Any physical interpretation? Farouk Main CFD Forum 3 July 11, 2013 07:58
Interpretation of turbulent kinetic energy chmurillor FLUENT 0 June 30, 2013 17:32
gambit mesh interpretation kamal chauhan FLUENT 0 February 20, 2009 12:18
Fractional Step Method interpretation Jean-François Corbett Main CFD Forum 2 March 1, 2006 10:38


All times are GMT -4. The time now is 21:05.