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

how to set y value(distance nearest to the wall) in blockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2011, 08:20
Default how to set y value(distance nearest to the wall) in blockMesh
  #1
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
Hi All,

I've been playing around with the simpleGrading, unfortunately the y I'm after is still far compared to what I want.

Another thing is I have different y values throughout my domain (inlet, outlet, bottom, etc), so do I need to average them out or just consider the highest y value in a particular domain?

Thanks very much for your time and attention.

Regards,
Robert
rob3rt 0ng is offline   Reply With Quote

Old   April 27, 2011, 09:47
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
romant is on a distinguished road
what do you mean with y value, do you mean your yPlus value? what kind of mesh are you working with? just simple blocks?
__________________
~roman
romant is offline   Reply With Quote

Old   April 27, 2011, 10:04
Default
  #3
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
Hi Roman,

I meant the y value (not yPlus) used in this formula yPlus=uStar*y/nu. Alternatively, you can also use this http://geolab.larc.nasa.gov/APPS/YPlus/

Yes, I am just dealing with the simple hexagonal blocks with a hemipshere object in the middle which I meshed using cellSet and setSet command after having exported it from the STL file.

Thanks and regards,
Robert
rob3rt 0ng is offline   Reply With Quote

Old   April 28, 2011, 04:24
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
romant is on a distinguished road
you can calculate your dimension of the cell in wall direction with this

yDim = r / [nCells *{ (l/s)+1} ]

where r is the block length in direction of stretching, nCells, the number cells you want in this direction (l/s) is the ratio between largest an smallest cell, meaning your expansion ratio.

the center will the be the y that you need for the yStar or yPlus calculation your are looking. Therefore, just divide by 2.

if you think you get too many cells you can use the tool
Code:
refineWallLayer
to split only the cells at the wall.
__________________
~roman
romant 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
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 05:31
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
Distance to the nearest wall... Michal FLUENT 6 February 13, 2001 15:49
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 02:16


All times are GMT -4. The time now is 17:41.