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

How to get yPlus with LaunderSharmaKE turbulence model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2010, 08:08
Default How to get yPlus with LaunderSharmaKE turbulence model
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Hello,

I have a working case with the LaunderSharmaKE turbulence model.

Now I'd like to get the yPlus to see if it's <1 like required for a low-re simulation. But apparently the yPlusRAS command doesn't work ...

I've seen posts related to this and users have created their own function to calculate it. But I don't understand why the yPlusRAS command doesn't work with the LaunderSharmaKE model and I don't know how to make my own function to calculate it ... I'm new to openFoam.

Your help would be much appreciated.
Thanks in advance.
Gearb0x is offline   Reply With Quote

Old   January 27, 2010, 08:40
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
There's a function RASModel::yPlus which returns the yPlus values for a given patch and value of Cmu:
Code:
        //- Return yPlus for the given patch
        virtual tmp<scalarField> yPlus
        (
            const label patchI,
            const scalar Cmu
        ) const;
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   January 27, 2010, 08:44
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Thanks for the answer

But this is not very practical since you can only have yPlus @patch and not everywhere.

I need it on the first cell after the wall to see if it's <1 there and there is not a patch there
Gearb0x is offline   Reply With Quote

Old   January 27, 2010, 09:03
Default
  #4
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Oh, it's a low RE model. I don't know much about those so I'll shut up. You can alter yPlusRAS slightly so that it uses the wall shear stress directly to calculate y+ I suppose, instead of assuming the logarithmic profile.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   January 27, 2010, 09:10
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Yup,
Apparently that's what people have done from what I've read... If I don't get other answers I'll try to look at this

Thanks for your help & tips
Gearb0x is offline   Reply With Quote

Old   January 31, 2010, 04:56
Default
  #6
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Maybe the yplus can be get from the file /OpenFOAM-1.6/applications/utilites/preProcessing/applyBoundaryLayer/applyBoundaryLayer.C .
sandy 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
Adding a Turbulence Model doug OpenFOAM Running, Solving & CFD 11 May 21, 2018 14:54
Eul-Eul flow, k-e-kp-ep-Theta Turbulence model us FLUENT 5 April 5, 2011 03:29
KOmega Turbulence model from wwwopenFOAMWikinet philippose OpenFOAM Running, Solving & CFD 30 August 4, 2010 11:26
Turbulence Model GG Siemens 3 March 3, 2008 20:06
v2-f turbulence model in CFX? flga CFX 14 November 23, 2006 07:12


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