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

[blockMesh] How to merge blocks? Match, merge or stitch?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2015, 21:59
Default How to merge blocks? Match, merge or stitch?
  #1
Member
 
Anonymous
Join Date: Jul 2009
Posts: 44
Rep Power: 17
gerritgroot is on a distinguished road
Dear Foamers,

I'm stuck with a doubt about the difference between patch matching and patch merging, a feature that I need as I'd like to create blockMeshDict files with a multiblock philosophy (because of the origins of each block, I prefer to create multiblock meshes).
So far, none of both seems to work well. I only know that patch merging deletes coinciding nodes and patch matching doesn't. The resulting grid is shown in the picture: "mergedandmatchedpatches.png".

I did a try out, connecting 2 blocks of one hex each, one by patch matching and one by patch merging.
The blockMeshDict files are attached to this question and are named: "blockMeshDict_mergedpatches.txt" and "blockMeshDict_matchedpatches.txt".

The merge variant yields 12 nodes, while the match variant yields 16 nodes, so far everything is as expected.

However, checkMesh-ing the merge variant gives an error on face connectivity, see "checkMesh_mergedpatches.txt", while the matched variant yields an errorless mesh after running checkMesh, see "checkMesh_matchedpatches.txt", but gives the comment:

Code:
  *Number of regions: 2
    The mesh has multiple regions which are not connected by any face.
From which I tend to conclude that the mesh is not being treated as a whole unique domain, but two separated domains instead.

In my examples, merging does not yield a unique domain, while matching (apart fromt he strange pyramid border between the blocks) yields a wrong mesh according to checkMesh.

My questions to ye foamers are:
  • -- Most important of all: What would be the correct philosophy to connect different grid blocks to form one domain without a boundary between the diferent (in general more than two) blocks? (either or not generating each block in the same blockMeshDict file)
  • -- Why do the specified boundaries: wall, inlet and outlet disappear as soon as I specify the adjacent patches, patch0 and patch1?
  • -- In a post I can't find back anymore, it is said that patches are reshaped to a pyramid to prevent for hanging nodes, why does this happen for matched patches and not for merged patches? (In my opinion this shouldn't happen at all for two adjacent cubes).
  • -- Would it be better to use "stitchMesh" instead? Do you need complete directory structures with "./0", "./system" and "./constant/polyMesh" for each separate mesh before stitching? I couldn't find any example of stitchMesh, is there any?

Well, these are a lot of questions, maybe too many for just one post. I hope to get some clue at least.

Thank you in advance,

Gerrit
Attached Images
File Type: png mergedandmatchedpatches.png (30.1 KB, 178 views)
Attached Files
File Type: txt blockMeshDict_matchedpatches.txt (2.1 KB, 47 views)
File Type: txt blockMeshDict_mergedpatches.txt (2.1 KB, 31 views)
File Type: txt checkMesh_matchedpatches.txt (3.1 KB, 11 views)
File Type: txt checkMesh_mergedpatches.txt (3.3 KB, 14 views)
gerritgroot 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
[Commercial meshers] COnvert FLuent MEsh to openfoam with interface manuc OpenFOAM Meshing & Mesh Conversion 1 July 25, 2017 04:13
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 06:59
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 94 July 15, 2016 17:14
[blockMesh] Struggling to stitch or merge these blocks Jabo OpenFOAM Meshing & Mesh Conversion 1 November 7, 2014 05:39
[ICEM] Two boxes connected by a cylinder, blocks merge where I don't want them to merge. Polarbear ANSYS Meshing & Geometry 4 April 30, 2014 16:21


All times are GMT -4. The time now is 14:03.