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

mesh refine at the boundary layer

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By norkistar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2013, 10:38
Post mesh refine at the boundary layer
  #1
Member
 
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13
Jackie Chen is on a distinguished road
Hi Foamers

I wanna investigate the flow near the wall. If i have a domain in rectangular shape. How can I do the local mesh refinement at the wall? and How can the inlet have log velocity profile?
Thanks
Jackie Chen is offline   Reply With Quote

Old   October 16, 2013, 22:45
Default
  #2
New Member
 
Bin Xu
Join Date: Apr 2012
Location: Singapore
Posts: 23
Rep Power: 14
norkistar is on a distinguished road
You can use refineWallLayer to refine the mesh near the wall. See http://openfoamwiki.net/index.php/RefineWallLayer
bigphil likes this.
norkistar is offline   Reply With Quote

Old   October 17, 2013, 01:24
Default
  #3
Member
 
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13
Jackie Chen is on a distinguished road
Quote:
Originally Posted by norkistar View Post
You can use refineWallLayer to refine the mesh near the wall. See http://openfoamwiki.net/index.php/RefineWallLayer
Hi Norkistar

Thanks for your sharing. Can you explain in depth hwo to excecute the refineWallLayer utilities?
Jackie Chen is offline   Reply With Quote

Old   October 17, 2013, 02:15
Default
  #4
New Member
 
Bin Xu
Join Date: Apr 2012
Location: Singapore
Posts: 23
Rep Power: 14
norkistar is on a distinguished road
refineWallLayer patchname edgeweight for example you want refine layer at the wall patch then you can type refineWallLayer -overwrite wall 0.1
norkistar is offline   Reply With Quote

Old   October 17, 2013, 03:38
Default
  #5
Member
 
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13
Jackie Chen is on a distinguished road
Bin Xu

Thanks for your kind help. Normally this is done after meshing?
Jackie Chen is offline   Reply With Quote

Old   October 17, 2013, 04:07
Default
  #6
New Member
 
Bin Xu
Join Date: Apr 2012
Location: Singapore
Posts: 23
Rep Power: 14
norkistar is on a distinguished road
After using blockMesh, then refine it at the patch that you want
norkistar is offline   Reply With Quote

Old   October 17, 2013, 05:09
Default
  #7
Member
 
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13
Jackie Chen is on a distinguished road
Hi

Thanks. Have you ever tried "applyBoundaryLayer"?
Jackie Chen is offline   Reply With Quote

Old   October 17, 2013, 06:28
Default
  #8
Member
 
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13
Jackie Chen is on a distinguished road
Quote:
Originally Posted by norkistar View Post
refineWallLayer patchname edgeweight for example you want refine layer at the wall patch then you can type refineWallLayer -overwrite wall 0.1
When i type refineWallLayer -overwrite wall 0.1 it doesnt work. only i type refineWallLayer wall 0.1 it works. is the "overwrite' compusory?
Jackie Chen is offline   Reply With Quote

Old   October 18, 2013, 00:20
Default
  #9
New Member
 
Bin Xu
Join Date: Apr 2012
Location: Singapore
Posts: 23
Rep Power: 14
norkistar is on a distinguished road
-overwrite is to overwrite the original mesh in the constant/polyMesh file. Please read the http://openfoamwiki.net/index.php/RefineWallLayer it specifies clearly
norkistar is offline   Reply With Quote

Old   October 24, 2013, 04:04
Default
  #10
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by Jackie Chen View Post
Hi Foamers

I wanna investigate the flow near the wall. If i have a domain in rectangular shape. How can I do the local mesh refinement at the wall? and How can the inlet have log velocity profile?
Thanks

you can also divide your mesh into two meshes one near of wall with fine meshing and one away from wall with coarser mesh.

also, you can change cells length near wall and away from it by adjusting fraction of cell length in blockMeshDict

Hex (0 1 2 3 4 5 6 7) (20 20 20) simpleGrading (1 1 1)

changing values in red colour.
Ahmed Khattab 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Grid Independence of Boundary layer Luigi_ Main CFD Forum 0 December 14, 2011 13:42


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