|
[Sponsors] |
May 3, 2018, 03:04 |
outletPhaseMeanVelocity: Interpretation
|
#1 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
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; } 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; } |
|
May 3, 2018, 12:31 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 14 |
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 |
|
May 3, 2018, 13:08 |
|
#3 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
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? |
|
May 3, 2018, 13:21 |
|
#4 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 14 |
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_; } |
|
May 4, 2018, 08:03 |
|
#5 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
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. |
|
May 4, 2018, 10:56 |
|
#6 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 14 |
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 |
|
May 5, 2018, 00:50 |
|
#7 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
I will try your suggestion.
Thanks for helping, Caelan! |
|
Tags |
outletphasemeanvelocity |
|
|
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 |