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

[blockMesh] BlockMesh Grading Ambiguity: How to Get Desired y1

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By linuxpirates

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 9, 2012, 23:09
Default BlockMesh Grading Ambiguity: How to Get Desired y1
  #1
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 16
dancfd is on a distinguished road
Hello all,

I am having trouble getting blockMesh to produce the right y1 for my mesh. If I follow the equations in the User Guide 2.0.0 section 2.1.6.2:

Desired y1: 0.0006996
Desired cell size of last cell: 0.15
l = 1.499364 % Length of block
n = 100 % Number of cells

Therefore:
R = 0.15 / 0.0006996 = 214.408 % ratio of last to first cell size
r = R^(1/(n-1)) = 1.0557179202 % ratio of each cell to its neighbour
Alpha = R (R > 1)
Delta_x_s = 0.000370711 % Size of smallest cell

Here is the issue: Delta_x_s is supposed to equal my desired y1. The problem is blockMesh grading uses a ratio, R, to define the grading. Therefore if the same factor is applied to both first and last cell, blockMesh will not know the difference: R is the same. The only way to adjust the y1 is then to change the number of cells, I suppose - but that leaves me no control over the number of cells. Is there any way to control both the number of cells and y1?

Thanks,
Dan
dancfd is offline   Reply With Quote

 


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
[blockMesh] blockMesh - more control of grading crossley90 OpenFOAM Meshing & Mesh Conversion 2 December 19, 2022 15:44
[blockMesh] About Simple Grading in blockMesh ce73stargazer OpenFOAM Meshing & Mesh Conversion 4 May 9, 2020 05:37
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[blockMesh] blockMesh grading qepasol OpenFOAM Meshing & Mesh Conversion 0 June 25, 2014 06:24
[blockMesh] grading in the BlockMesh Astarta OpenFOAM Meshing & Mesh Conversion 1 May 23, 2011 15:39


All times are GMT -4. The time now is 23:25.