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

[blockMesh] Block Mesh Simplegrading Question

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2014, 09:47
Lightbulb Block Mesh Simplegrading Question
  #1
New Member
 
Euan Foster
Join Date: Jan 2014
Posts: 12
Rep Power: 12
EFoster2 is on a distinguished road
Dear all,

Currently, I have a complicated blockMesh in that I have specified all elements to be the same length. However this seems very inefficient computationally and I was wondering if anyone could help me out with the simplegrading algorithm.

There are sudden expansions and contractions in my mesh and I want the elements to decrease in size where these two sections meet.

Is there any equations out there online or any theory based on the length in an axis so I could input a simplegrading number and achieve a specified element length at the end?

I appreciate any help I get.

Kind regards,

Euan Foster.
Student
EFoster2 is offline   Reply With Quote

Old   February 14, 2014, 10:27
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
The number you enter for grading is the expansion ratio e - the ratio of the length of the last cell and the length of the first cell.

e = d_n / d_1 -- > d_1 = e * d_n

Now we define x, the expansion ratio of neighbouring cells-

d_1 = x * d_2
d_2 = x * d_3

...

d_1 = x^(n-1) * d_n


Now, the length of a block is the sum of the lengths of the cells.

L = sum[i=1..n] { d_i } = sum[i=1..n] { d_n * e / (x^(i-1)) }

Maybe, my equations are not entirely correct, but this way, you can derive relations between block length L, element number n and cell length at one end of the cell d_n.
EFoster2 and S.M.H like this.
GerhardHolzinger is offline   Reply With Quote

Old   February 14, 2014, 12:05
Default
  #3
New Member
 
Euan Foster
Join Date: Jan 2014
Posts: 12
Rep Power: 12
EFoster2 is on a distinguished road
Ah yeah I thought it was a geometric series or something like. Been a while since I have done them.

I found this post that allows for all that to be done automatically - http://www.cfd-online.com/Forums/ope...alculator.html

In some of my sections though I need it to be fine at the start then become more coarse and end fine again. Can this be done without splitting the block up into two separate blocks??

Regards,

Euan.
Student
EFoster2 is offline   Reply With Quote

Old   February 14, 2014, 12:23
Default
  #4
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
You could define a cellSet and use refineMesh to refine the cells of the cellSet.
GerhardHolzinger 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[blockMesh] External flow around cube with blockMesh Woody8 OpenFOAM Meshing & Mesh Conversion 0 March 31, 2015 14:54
[blockMesh] BlockMesh number internal faces and boundary ynos OpenFOAM Meshing & Mesh Conversion 6 December 13, 2011 05:36
ICEM 10 mesh question DAK565656 CFX 6 May 8, 2007 12:16


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