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

blockMesh-grading &cell expansion ratios

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 16, 2013, 08:59
Default blockMesh-grading &cell expansion ratios
  #1
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 4
Luis Batista is on a distinguished road
Dear openFoam Users,

please help me with this simple problem.

I would like to mesh a rectangular area using blockMesh with a grading function to manipulate the cell expansion ratio. This function would tighten the mesh dimensions near the domain boundary.The cell expansion ratio would need to be governed by a sinusoidal function.

In the example below we can read "simpleGrading" and I would like to have other solutions available.

Please explain me how this can be done or point me to similar threads in the forum.

PS:
I am a begginer, please mind that if you loose the time to help me.

Regards,
Luis

"
blocks
(
hex (0 1 2 3 4 5 6 7) // vertex numbers
(10 10 10) // numbers of cells in each direction
simpleGrading (1 2 3) // cell expansion ratios
);
"
Luis Batista is offline   Reply With Quote

Old   April 16, 2013, 16:50
Default
  #2
Member
 
Yosmcer Mocktai
Join Date: Apr 2013
Location: Behind a computer
Posts: 41
Rep Power: 8
Yosmcer will become famous soon enough
I am also a beginner, but I saw here that there is an other function for grading:
edgeGrading

It deliver the possibility to grade toward each edge instead of only the directions, but I think you want something more. Hope however it helps.
Yosmcer is offline   Reply With Quote

Old   April 17, 2013, 03:31
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
blockMesh is a very simple tool, I doubt you can use it for this. Either you use a more sophisticated mesher like Pointwise or ICEM or such, or you need to write some code for blockMesh.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   April 17, 2013, 04:57
Default
  #4
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 4
Luis Batista is on a distinguished road
Quote:
Originally Posted by Yosmcer View Post
I am also a beginner, but I saw here that there is an other function for grading:
edgeGrading

It deliver the possibility to grade toward each edge instead of only the directions, but I think you want something more. Hope however it helps.
Thanks for taking the time to help me.

Your intuition is correct. The option edgeGrading is not what exactly what I need.

Regards,
Luis
Luis Batista is offline   Reply With Quote

Old   April 17, 2013, 04:59
Default
  #5
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 4
Luis Batista is on a distinguished road
Quote:
Originally Posted by akidess View Post
blockMesh is a very simple tool, I doubt you can use it for this. Either you use a more sophisticated mesher like Pointwise or ICEM or such, or you need to write some code for blockMesh.
Thanks for taking the time to help me.

I also feel that I have to write some code for blockMesh. Can you help me with this and/or point me in the right direction?

Regards,
Luis
Luis Batista is offline   Reply With Quote

Old   April 17, 2013, 05:05
Default
  #6
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hey Luis Batista,

those guys were also not satisfied with the grading OF provides:

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

I'm not sure if it is exactly what you are looking for
however it eventually gives you a starting point
for own adjustments to the grading tools.

I hope I could contribute
regards
colinB is offline   Reply With Quote

Old   April 17, 2013, 05:19
Default
  #7
New Member
 
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 4
Luis Batista is on a distinguished road
Quote:
Originally Posted by colinB View Post
Hey Luis Batista,

those guys were also not satisfied with the grading OF provides:

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

I'm not sure if it is exactly what you are looking for
however it eventually gives you a starting point
for own adjustments to the grading tools.

I hope I could contribute
regards
Hello,

It seems that you hit the spot!

I am going to investigate this thread further and come back with an answer and hopefully share my findings.

Thanks for your support,
Luis
Luis Batista is offline   Reply With Quote

Reply

Tags
blockmesh, cell expansion ratio

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
blockMesh with double grading. spwater OpenFOAM Native Meshers: blockMesh 78 March 12, 2015 15:54
BlockMesh grading calculator hartinger OpenFOAM Native Meshers: blockMesh 24 August 14, 2014 06:45
BlockMesh Grading Ambiguity: How to Get Desired y1 dancfd OpenFOAM Native Meshers: blockMesh 6 June 4, 2014 01:04
blockMesh - more control of grading crossley90 OpenFOAM Native Meshers: blockMesh 1 November 23, 2012 09:25
grading in the BlockMesh Astarta OpenFOAM Native Meshers: blockMesh 1 May 23, 2011 15:39


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