CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Target a specific Y+ ?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By triple_r

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2015, 09:21
Default Target a specific Y+ ?
  #1
New Member
 
Join Date: Jun 2015
Location: Great Britain
Posts: 16
Rep Power: 10
cfdblender is on a distinguished road
Is there any way to command STAR CCM+ to target a specific range of Y+ values (ie., between 30 to 100) on a surface?

So far, I've been doing 'trial and error' with the number of prisms and thickness of the prism layer, but it's turned into 'trial and horror'!

Surely, there must be a better way ?
cfdblender is offline   Reply With Quote

Old   December 29, 2015, 11:07
Default
  #2
Senior Member
 
Reza
Join Date: Mar 2009
Location: Appleton, WI
Posts: 116
Rep Power: 17
triple_r is on a distinguished road
To calculate y+, you need to know the wall shear stress, and usually you don't know that before solving for the problem, so I'm afraid the best you can do is trial-and-error.

But there are better ways to go about it:

Estimating the wall shear:
Based on your simulation and the problem, you might be able to find some correlations to estimate the shear stress at the wall. For example, if it is a pipe flow, you can use the Moody chart to estimate the friction factor, and from that you can calculate the wall shear stress. This is going to be for the fully developed part of the fluid, so your actual shear will be different, so the y+ value will not be exactly what you are shooting for, so be careful and account for non-developed regions (for example, in entrance region, y+ will be a lot higher than what you shoot for because of higher shear).
If you don't have a good estimate, run the simulation with coarse mesh, and see what the shear is, use that to calculate y+ :-) again, because the elements are coarse near the wall in your first mesh, the actual shear will, in general, be higher than what you calculate in your coarse simulation, so take that into account.

Calculating near wall element thickness:
When you have an estimate of wall shear, you can use the definition of y+ to find out what the thickness of first layer has to be to get you in the range of y+ that you need.

first layer thickness = (desired y+) * (kinematic viscosity) / (friction velocity)

where friction velocity is:

square root of (wall shear stress / density)

Setting parameters in StarCCM+:
Instead of using total thickness and stretch factor, use "Wall Thickness" distribution model for prism layers:

If you are using part-based meshing, under "automated mesh" > Meshers > Prism Layer Mesher, change the Distribution Mode to Wall Thickness. Then under "Defaul Controls" you can set the total thickness, number of layers, and Near Wall Thickness (which should be what you calculated in the previous step).

Look-outs:
In this method you won't be able to set the stretch factor, and usually you want the stretch factor to be small (just a tad over 1.0, something like 1.1 for example). To make sure that is the case, you can use the following formula to estimate the number of layers (this works with geometric progression, which is the default stretching function):

(total thickness) = (near wall thickness) x ( (stretch factor)^n - 1) / (stretch factor - 1)
cfdblender and kuabay like this.
triple_r is offline   Reply With Quote

Old   December 29, 2015, 16:11
Default
  #3
New Member
 
Join Date: Jun 2015
Location: Great Britain
Posts: 16
Rep Power: 10
cfdblender is on a distinguished road
Thank you, triple_r, for an excellent step-by-step and comprehensive answer.

I will start by getting a good plot of wall shear stress. Found this article about it, should be useful: https://wiki.anl.gov/tracc/STAR-CCM%2B_Technical_Notes
cfdblender is offline   Reply With Quote

Old   December 29, 2015, 16:33
Default
  #4
Senior Member
 
Reza
Join Date: Mar 2009
Location: Appleton, WI
Posts: 116
Rep Power: 17
triple_r is on a distinguished road
Not a problem :-) Yes, that should help, though for estimating wall shear, you can use the field function that comes with StarCCM+ and the error should be negligible for the first estimate when you are just tuning y+. For your final solution though, you probably want to go with the more accurate definition.

Good luck.
triple_r 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56


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