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

[mesh manipulation] Having difficulties using refineMesh and mesh refinement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2016, 09:36
Default Having difficulties using refineMesh and mesh refinement
  #1
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Hi I have the current blockMesh file, and I want to refine this mesh along the `x` and `y` axis, I have no problem with the z axis.
If I increment the blocks resolution of the mesh along the z axis the checkMesh utility say that the mesh its OK. for finer mesh and coarse mesh along this axis.
If I increment the mesh resolution along the `x` or `y` axis the checkMesh throws errors. so I think that increase the blocks resolution its not the solution, and I want to try using the refineMesh utility, to see what's happen. But I don’t have any idea how to use it, I search for the web and see that a refineMeshDict is needed, but the first parameter of the dict is a set of cells to be refined and I don’t know haw to create it.

So I really do not know what is the best choice for refine my mesh and how to do it, please any help?

thanks for all
Attached Files
File Type: zip blockMeshDict_(z_axis_coarse).zip (102.0 KB, 94 views)
File Type: zip blockMeshDict_(z_axis_finer).zip (102.0 KB, 60 views)
efirvida is offline   Reply With Quote

Old   April 26, 2016, 05:41
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

nice blockMesh work. Crazy never saw such stuff in blockMesh before. Why are you doing that? You want to parameterize you blockMeshDict? If not the work was not worth (in my opinion). Simple and easy meshing would be, STL + snappyHexMesh. Done in a few minutes.

Anyway. I will not check your blockMeshDict further because it is really "blockMesh beyond the scope".

To your problem. If you want to refine in x,y direction you really have to figure out which block you have to modify that in each block the amount of points are equal.


My suggestion (although you investigated a lot of time into your blockMeshDict), throw it away and use snappyHexMesh + Layer. It is easier, and you have a lot of freedom in refining regions etc.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 26, 2016, 08:20
Default
  #3
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

nice blockMesh work. Crazy never saw such stuff in blockMesh before. Why are you doing that? You want to parameterize you blockMeshDict? If not the work was not worth (in my opinion). Simple and easy meshing would be, STL + snappyHexMesh. Done in a few minutes.

Anyway. I will not check your blockMeshDict further because it is really "blockMesh beyond the scope".

To your problem. If you want to refine in x,y direction you really have to figure out which block you have to modify that in each block the amount of points are equal.


My suggestion (although you investigated a lot of time into your blockMeshDict), throw it away and use snappyHexMesh + Layer. It is easier, and you have a lot of freedom in refining regions etc.
Hi Thanks for your reply, I have tried with the snappyHexMesh before try the blockMesh, and yes, I need to use the blockmesh because I need a parametric and structured mesh because the previous test simulations give me best results with structured meshes than the mesh generated with snappyHexMesh
efirvida is offline   Reply With Quote

Old   April 26, 2016, 08:52
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
SnappyHexMesh makes hybrid meshes. I think you forgot the layers or you are not familiar with snappyHexMesh and meshing using that tool? If you do not change your geometry, then snappyHexMesh would be my favorite in any case. Anyway I think you know what you do (:

So good luck in proceeding with your blockMeshDict.


PS: It is clear why structured meshes will give better results (numerics) but handling your blockMeshDict is in my opinion crazy (:
I think that if you have a good mesh with snappyHexMesh, you could also achieve the results you get using a structured grid.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 26, 2016, 11:12
Default
  #5
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Quote:
Originally Posted by Tobi View Post
SnappyHexMesh makes hybrid meshes. I think you forgot the layers or you are not familiar with snappyHexMesh and meshing using that tool? If you do not change your geometry, then snappyHexMesh would be my favorite in any case. Anyway I think you know what you do (:

So good luck in proceeding with your blockMeshDict.


PS: It is clear why structured meshes will give better results (numerics) but handling your blockMeshDict is in my opinion crazy (:
I think that if you have a good mesh with snappyHexMesh, you could also achieve the results you get using a structured grid.
That is the problem I'm generating my geometry dynamically, of course I didn’t do this manually, I'm making a tool to generate OpenFoam cases, and I need that the tool to be as generic as possible. something like https://sourceforge.net/projects/bladedesigner/ but not so complicated.

Thanks again I will continue breaking my head
efirvida is offline   Reply With Quote

Old   April 26, 2016, 11:26
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I know a answer I will make a thread for that
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 26, 2016, 13:08
Default
  #7
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Quote:
Originally Posted by Tobi View Post
I know a answer I will make a thread for that




I'll wait for that thread
efirvida is offline   Reply With Quote

Old   April 26, 2016, 13:29
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Here we go:

http://www.cfd-online.com/Forums/ope...tml#post596817
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 26, 2016, 14:58
Default
  #9
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Many Thanks!
efirvida is offline   Reply With Quote

Reply

Tags
blockmesh, mesh 3d, refine mesh, refinement


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] Mesh around ship with appropriate free surface refinement Hannes_Kiel OpenFOAM Meshing & Mesh Conversion 46 October 4, 2019 07:28
[mesh manipulation] Unstructured tetrahedral mesh Refinement using REFINEMESH DICT UTILITY.???? POSSIBLE? saddy OpenFOAM Meshing & Mesh Conversion 4 February 1, 2019 05:58
[mesh manipulation] Using refineMesh for a unstructured mesh where direction is hard to define Giantsda OpenFOAM Meshing & Mesh Conversion 5 January 28, 2019 02:44
No convergence after mesh refinement Andreas: OpenFOAM Running, Solving & CFD 14 September 24, 2014 06:11
RefineMesh does not perform 2x2 refinement through the middle of edges nicasch OpenFOAM Running, Solving & CFD 3 March 14, 2008 04:12


All times are GMT -4. The time now is 12:01.