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

Mixing length for turbulentMixingLengthFrequencyInlet BC

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 4 Post By Tobi
  • 1 Post By Tobi
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2018, 00:37
Default Mixing length for turbulentMixingLengthFrequencyInlet BC
  #1
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
Hi all,

I'm simulating a supersonic cavity using komega SST model. For Omega BC, I have used turbulentMixingLengthFrequencyInlet. I'm not sure what is the mixing length. Is it simply the cavity depth or length? I'm posting my file here. Kindly look at it and suggest corrections pls!!


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 -1 0 0 0 0];

internalField   uniform 4577132;

boundaryField
{
    outlet
    {
        type            zeroGradient;
    }
    inlet
    {
        type            turbulentMixingLengthFrequencyInlet;
	 mixingLength	  0.015;
 	  k 			  k;
          value           uniform 4577132;
    }
    wall
    {
        type            omegaWallFunction;
        value           uniform 4577132;
    }
    top
    {
        type            zeroGradient;
    }
    frontAndBackPlanes
    {
        type            empty;
    }
}

Last edited by Tobi; March 27, 2019 at 04:36.
maddy11 is offline   Reply With Quote

Old   October 12, 2018, 00:41
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

a) please use code tags
b) its the hydraulic diameter multiplied by 0.07.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 12, 2018, 07:24
Default
  #3
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
Hi Tobias,

Thank you for your kind reply!
Can I take 0.07*cavity depth as the mixing length??
maddy11 is offline   Reply With Quote

Old   January 24, 2024, 09:11
Default
  #4
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

a) please use code tags
b) its the hydraulic diameter multiplied by 0.07.
Hey Tobias,

I am writing my thesis, and I need to cite that information. Do you have any reference for it? It would be super useful.

Thank you,
Pedro
unilord is offline   Reply With Quote

Old   January 24, 2024, 11:05
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Out of the box ... No. But maybe it's in Wilcox turbulence book.
If this is a reference for you (better than nothing).

https://www.cfd-online.com/Wiki/Turbulence_length_scale
unilord likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 25, 2024, 03:49
Default
  #6
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Out of the box ... No. But maybe it's in Wilcox turbulence book.
If this is a reference for you (better than nothing).

https://www.cfd-online.com/Wiki/Turbulence_length_scale
I will have a look. I asked because I saw on CFD direct that it should be 0.07*Diameter (in a circular pipe for fully developed flow). However, I realized that maybe, in OpenFOAM, following what the page you linked says, it is 0.038*Diameter. I was using that before and I had a smaller error comparing to experimental results.

By the way, just to confirm. I am using this setup (for k and epsilon) for a 4 bladed centrifugal pump, with a circular tube as inlet. Would you change anything? It's steady state, with MRF approach.

k
Code:
"NCC.*"
    {
        type            zeroGradient;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }
    "wall.*"
    {
        type            kqRWallFunction;
        value           uniform 1e-12;
    }
    "blade.*"
    {
        type            kqRWallFunction;
        value           uniform 1e-12;
    }
    inlet
    {
        type            turbulentIntensityKineticEnergyInlet;
        intensity       0.05;
        value           $internalField;
    }
epsilon:
Code:
"NCC.*"
    {
        type            zeroGradient;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }
    "wall.*"
    {
        type            epsilonWallFunction;
        value           $internalField;
    }
    "blade.*"
    {
        type            epsilonWallFunction;
        value           $internalField;
    }
    inlet
    {
        type            turbulentMixingLengthDissipationRateInlet;
        mixingLength    0.005334;
        value           $internalField; 
    }
unilord is offline   Reply With Quote

Old   January 25, 2024, 03:53
Default
  #7
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
You can find the value of 0.07 (for mixing layers, pipes and channels) in

Quote:
H.K. Versteeg and W. Malalasekera, An Introduction to Computational Fluid Dynamics, Prentice Hall, 1995.
Note that it's an empirical value, and varies slightly with case geometry, but is typically always around 10%.
Tobermory is offline   Reply With Quote

Old   January 25, 2024, 04:11
Default
  #8
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
You can find the value of 0.07 (for mixing layers, pipes and channels) in



Note that it's an empirical value, and varies slightly with case geometry, but is typically always around 10%.
https://www.cfd-online.com/Forums/im...tor/attach.gif
Thank you!

But what about this sentence quoted in CFD Online's thread


Quote:
For codes using a turbulence length-scale based on the mixing-length (Fluent, Phoenics and CFD-ACE for example) replace 0.038 and 3.8% with 0.07 and 7%.
Should we take that into consideration for OpenFOAM, and apply 0.038 instead of 0.07?
unilord is offline   Reply With Quote

Old   January 25, 2024, 04:14
Default
  #9
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
That's talking about a specific class of turbulence model, I believe (e.g one equation k-L model?), and is not code specific. You are using kW SST, I think, so you are fine to use the real value, 0.07.
Tobermory is offline   Reply With Quote

Old   January 25, 2024, 04:16
Default
  #10
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
That's talking about a specific class of turbulence model, I believe (e.g one equation k-L model?), and is not code specific. You are using kW SST, I think, so you are fine to use the real value, 0.07.
I am using k epsilon, is that also fine to use 0.07?

And by any chance, do you know if it is more "correct" to use the eddy viscosity ration instead of the mixing length, let's say, for a centrifugal pump problem? I know that openfoam does have functions that have as input the eddy viscosity ratio. But we could implement it as a fixedValue in inlet.

Last edited by unilord; January 25, 2024 at 04:20. Reason: Asked new question regarding the eddy viscosity ratio
unilord is offline   Reply With Quote

Old   January 25, 2024, 04:43
Default
  #11
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
The two methods should be equivalent ... with a two-equation model like k-epsilon, you have 2 degrees of freedom. The simplest is to specify k and L, which have well known empirical behaviour. You could specify k and nut (or nueff/num since you are talking about the viscosity ratio), but this will just give the same data ... providing that you choose the correct nut! They are all interelated by the assumptions in the k-epsilon model.

So, TLDR - if you feel you can specify nut more accurately than L, then my all means use it ... either as a direct boundary condition, or to back-calculate a value of L that you are more confident in.
unilord likes this.
Tobermory 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
Difference between mixing length and turbulence length scale MissCFD CFX 1 May 7, 2015 12:58
How to define the turbulence intensity and mixing length at an outlet (for k-eps)? david39 OpenFOAM Running, Solving & CFD 6 February 2, 2011 03:01
mixing length mukkarum Main CFD Forum 4 July 25, 2002 05:16
Prandtl mixing length vs Isotropic assumption Mohammad Kermani Main CFD Forum 1 March 26, 2000 15:47
Prandtl Mixing length Vs. Isotropic turbulent Mohammad Kermani Main CFD Forum 0 March 23, 2000 23:06


All times are GMT -4. The time now is 08:12.