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

[blockMesh] How is the blockMesh grading in the online script calculated ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2024, 13:11
Default How is the blockMesh grading in the online script calculated ?
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
I am automating some of my meshing needs using Python and I am trying to understand how the online blockMesh grading calculator works: https://openfoamwiki.net/index.php/S...ng_calculation.

I have the following known quantities:
  1. The first cell height \Delta y_{1}
  1. The last cell height \Delta y_{end}
  1. The height of the boundary layer \delta_{99}

I want to find the following unknown quantities:
  1. The cell-to-cell growth ratio r
  1. The number of cells N

Using the standard formulas for geometric progression, I derived the following formulas for r and N:
  1. r = \frac{\Delta y_1 - \delta_{99} }{\Delta y_{end} - \delta_{99}}
  1. N = \frac{log(\Delta y_{end}/\Delta y_1)}{log(r)} + 1

Using these formulas, my calculations don't match with the blockMesh grading script. What I have found is that the value of r from the online tool is much more accurate than my calculations. Is it because the script may be using bisection method for root finding ?

I am wondering where I am going wrong because these formulas are a result of simple re-arrangement of standard formulas.
ishan_ae is offline   Reply With Quote

Reply

Tags
blockmesh simplegrading


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] Problem with running blockMesh yoshiyagi OpenFOAM Meshing & Mesh Conversion 3 November 3, 2022 00:49
dsmcFoam setup hherbol OpenFOAM Pre-Processing 1 November 19, 2021 02:52
[blockMesh] BlockMesh grading calculator hartinger OpenFOAM Meshing & Mesh Conversion 29 November 28, 2020 12:15
OpenFOAM advanced training - Online. July-August, 2020 (https://bit.ly/2CcYQ11) joegi.geo OpenFOAM Announcements from Other Sources 0 June 16, 2020 05:25
CFD Online Celebrates 20 Years Online jola Site News & Announcements 22 January 31, 2015 01:30


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