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

[mesh manipulation] Is it possible to coarsen the mesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cheng1988sjtu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2017, 19:01
Default Is it possible to coarsen the mesh?
  #1
Member
 
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 15
cheng1988sjtu is on a distinguished road
Hi foamers,

I know it's a bit silly to ask this, but it's interesting that we are all discussing how to refine the mesh in the whole domain or regions of interest, however, I wonder if it's possible to coarsen the mesh in certain regions.

This question is especially relevant when we have irregular shape (for example, cylinder, stars, etc) in the domain or along the boundary. We could certainly initialize the region to be coarse and then use refineMesh or snappyHexMesh to obtain a finer mesh. However, the initial shape or BC will be distorted because of the coarse mesh at the first step. So my idea is to use fine mesh initially, and then coarsen the mesh in regions far away from the irregular shape or BC, is this possible? Could you let me know which tool is useful for this purpose?

Another idea is to create blocks of different mesh resolutions, but this will be problematic, as blockMesh doesn't know how to connect faces with different number of meshes, I tried to use mergePatchPairs, but this will create two internal patches, which doesn't make sense, because these internal patches act like a boundary patch, and the numerical results are affected by them.

Any suggestions?

Best

Charlie
louisgag likes this.
cheng1988sjtu is offline   Reply With Quote

Old   July 30, 2017, 05:44
Default
  #2
New Member
 
NISHANT
Join Date: Nov 2016
Posts: 22
Rep Power: 9
nizhantiw is on a distinguished road
Bravo to Charlie, yeah it's silly but some people have an habbit to take flying arrow in their ass people like Me, You, Issac Newton.. Let's come to the point well you can set the Mesh coarse, Fine apple, orange anything in ICEM CFD and export it as openfoam format.

Sent from my Tab2A7-20F using CFD Online Forum mobile app
nizhantiw is offline   Reply With Quote

Old   August 2, 2017, 22:02
Default
  #3
Member
 
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 15
cheng1988sjtu is on a distinguished road
Thank you, Nishant, I guess there are a lot of meshing tools out there, like ICEM CFD, gmesh, salome, cfmesh, etc. I've tried a few, and they all have their own pros and cons. I guess, I will invest more time on them when I have a very complicated geometry.
cheng1988sjtu is offline   Reply With Quote

Old   August 2, 2017, 22:24
Default
  #4
New Member
 
NISHANT
Join Date: Nov 2016
Posts: 22
Rep Power: 9
nizhantiw is on a distinguished road
Roger that Charlie, please send me the image of complicated geometry. May be I will provide some reinforcement to you.

Sent from my Tab2A7-20F using CFD Online Forum mobile app
nizhantiw is offline   Reply With Quote

Old   August 2, 2017, 22:59
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi Charlie,

Quote:
Another idea is to create blocks of different mesh resolutions, but this will be problematic, as blockMesh doesn't know how to connect faces with different number of meshes, I tried to use mergePatchPairs, but this will create two internal patches, which doesn't make sense, because these internal patches act like a boundary patch, and the numerical results are affected by them.
Yes, this can be done. Mesh them individually, put them all together using mergeMeshes & connect the faces/patches that have different mesh resolution using cyclicAMI. I would not suggest using blockMesh's mergePatchPairs or stitchMesh as they usually are unable to do multiple ones.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Reply


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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Coarsen and refine mesh in Pointwise raye_xie Pointwise & Gridgen 3 June 26, 2017 17:35
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 06:41
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 13:26.