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

 February 14, 2014, 10:47 Block Mesh Simplegrading Question #1 New Member   Euan Foster Join Date: Jan 2014 Posts: 12 Rep Power: 5 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

 February 14, 2014, 11:27 #2 Senior Member   Gerhard Holzinger Join Date: Feb 2012 Location: Austria Posts: 204 Rep Power: 19 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.

 February 14, 2014, 13:05 #3 New Member   Euan Foster Join Date: Jan 2014 Posts: 12 Rep Power: 5 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

 February 14, 2014, 13:23 #4 Senior Member   Gerhard Holzinger Join Date: Feb 2012 Location: Austria Posts: 204 Rep Power: 19 You could define a cellSet and use refineMesh to refine the cells of the cellSet.