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

[blockMesh] Merging duplicate vertices with mergePatchPairs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2022, 11:41
Default Merging duplicate vertices with mergePatchPairs
  #1
New Member
 
Join Date: Dec 2021
Location: Argentina, BB
Posts: 5
Rep Power: 5
ariedinger is on a distinguished road
Hello.

I need to merge all the internal faces of my geometry, but I am unable to do so with certain faces. I have learned (mainly in this thread) that mergePatchPairs doesn't allow duplicate vertices when trying to merge a face.

My geometry is not complex, but I do have 26 blocks defined (an image is atacched with the placing of each block). I managed to merge all the faces that don't have duplicate vertices with some other, and I have identified the problematic faces that I can't merge (commented inside mergePatchPairs).

The code as it is runs fine, blockMesh doesn't give any error and checkMesh looks good as well. But, as soon as I uncomment one of the problematic faces in mergePatchPair, I have the same error as in the mentioned thread:

Quote:
Face xyz reduced to less than 3 point
Which is due to the fact that those commented faces share a vertice with an already merged face.

I have tested the following:
  • Deleting the problematic faces inside the boundary section. This doesn't work because blockMesh still creates a "defaultFace" as the the internal face.
  • Changing the slave and master face of the problematic faces inside mergePatchPairs. This has no effect whatsoever.
  • Creating 6 boundaries (in total) with the vertices of multiple blocks; i.e., for the front boundary I've used the vertices (0 97 66 35), corresponding to blocks B1, B13 B9 and B5 respectively. The mergePatchPairs section was commented. With this, blockMesh gives the following error: face X in patch X does not have neighbour cell face.
  • Creating a second mergePatchPairs function to deal with the faces with duplicate vertices. Although blockMesh compiles just fine, it ignores the first mergePatchPairs function and only implements the second.
So, I don't know if somebody has any idea how I can work around this problem, as I need all the internal faces of the geometry merged.

Thanks in advance.
Attached Images
File Type: jpg mesh.jpg (82.9 KB, 13 views)
Attached Files
File Type: zip system.zip (19.4 KB, 2 views)

Last edited by ariedinger; March 15, 2022 at 12:26.
ariedinger 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
[blockMesh] mergePatchPairs problem when using two master and slave combination Ali_Sh OpenFOAM Meshing & Mesh Conversion 0 September 22, 2021 10:35
Question about cel function arg-X,Y,Z. Duplicate vertices. hcs129 CFX 3 September 29, 2020 14:38
Partitioning Error on HPC: ***Cannot bisect a graph with 0 vertices! MJM FLUENT 0 November 28, 2019 06:21
[blockMesh] mergePatchPairs: merging more than 1 block K.C. OpenFOAM Meshing & Mesh Conversion 2 May 14, 2016 06:44
[blockMesh] Trouble with MergePatchPairs: Duplicate Point Found in Cut Face dancfd OpenFOAM Meshing & Mesh Conversion 4 March 13, 2014 04:01


All times are GMT -4. The time now is 02:21.