CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

two sided mesh refinement(in both direction)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By colinB
  • 1 Post By Yosmcer

Reply
 
LinkBack Thread Tools Display Modes
Old   May 23, 2013, 06:43
Default two sided mesh refinement(in both direction)
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Hi
I wondering if is there a way to have a mesh grow/decrease ratio in both sides of a block without the need to break it to two blocks.
in the customary way it has ratio only in one direction
Code:
hex (1 2 5 4 10 11 14 13) (100 10 1) simpleGrading (.5 8 1)
is there a feature to refine mesh with a ratio in both directions like FLUENT and maybe other softwares?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   May 23, 2013, 10:40
Default
  #2
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
the keyword is doubleGrading see below:



http://www.cfd-online.com/Forums/ope...e-grading.html

be prepared it is a do-it-yourself feature of OF

regards
immortality likes this.

Last edited by colinB; May 24, 2013 at 02:10.
colinB is offline   Reply With Quote

Old   May 24, 2013, 03:54
Default
  #3
Member
 
Yosmcer Mocktai
Join Date: Apr 2013
Location: Behind a computer
Posts: 41
Rep Power: 8
Yosmcer will become famous soon enough
The other grading method in the tutorial is edgeGrading but it only allow to decompose according to the edges instead of only direction. This do not allow to have different direction of grading on the same edge.

So the solution seams to be to use this king of script. However, I's possible that you need to update it to be compatible with your openFOAM version.

Instructions seams to be there: http://openfoamwiki.net/index.php/Contrib_blockMeshDG
immortality likes this.
Yosmcer is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of cells in mesh don't match with size of cellLevel colinB OpenFOAM Native Meshers: snappyHexMesh and Others 11 January 13, 2015 12:47
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Native Meshers: snappyHexMesh and Others 8 September 13, 2012 09:28
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 07:02.