|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: Oct 2010
Location: Germany
Posts: 38
Rep Power: 4 ![]() |
Dear Foamers,
I have done a mesh with blockMesh consisting of 6 blocks. Now I want to merge all the blocks and I am using for it mergePatchPairs. It works for some patches but not for all of them. I have attached my blockMeshDict so that you can check it. Any idea or suggestion will be highly appreciated. Thanks a lot in advance Ivan Last edited by Ivanet; July 8, 2011 at 02:00. |
|
|
|
|
|
|
|
|
#2 |
|
Member
Join Date: Oct 2010
Location: Germany
Posts: 38
Rep Power: 4 ![]() |
I have just solved the problem using face matching instead of face merging!
I guess it must work also with face merging, but I am happy so far with the mentioned solution. Many greetings Ivan |
|
|
|
|
|
|
|
|
#3 |
|
Member
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 3 ![]() |
can you tell me how to edit mergepatchpairs?My case is cut the windfarm into two blocks.Thaks a lots.
|
|
|
|
|
|
|
|
|
#4 |
|
Member
Join Date: Oct 2010
Location: Germany
Posts: 38
Rep Power: 4 ![]() |
Hi hei@ge
at the end of your blockMeshDict there is a mergePatchPairs entry. You only have to write there which patch pairs you want to merge. If you have 2 different meshes that you want to merge, you can use the utility mergeMeshes for that. I hope this helps... Ivan |
|
|
|
|
|
|
|
|
#5 |
|
Member
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 3 ![]() |
Hi,thread,thank you for your reply.but i can not solve my problem.please see my blockmeshdict for me.
vertices ( ( 581321 4.78537e+06 930) ( 582290 4.78537e+06 930) ( 582290 4.78624e+06 930) ( 581321 4.78624e+06 930) ( 581321 4.78537e+06 1030) ( 582290 4.78537e+06 1030) ( 582290 4.78624e+06 1030) ( 581321 4.78624e+06 1030) ( 581321 4.78537e+06 2000) ( 582290 4.78537e+06 2000) ( 582290 4.78624e+06 2000) ( 581321 4.78624e+06 2000) ); blocks ( hex (0 1 2 3 4 5 6 7) (30 30 25) simpleGrading (1 1 1) hex (4 5 6 7 8 9 10 11) (30 30 30) simpleGrading (1 1 1) ); edges ( ); patches ( patch outlet ( (2 6 5 1) (6 10 9 5) ) patch sides ( (1 5 4 0) (5 9 8 4) (3 7 6 2) (7 11 10 6) ) patch inlet ( (0 4 7 3) (4 8 11 7) ) wall ground ( (0 3 2 1) ) patch top ( (8 9 10 11) ) patch interface1 ( (4 5 6 7) ) patch interface2 ( (4 7 6 5) ) ); mergePatchPairs ( (<interface1> <interface2>) ); my model is a Hex,i turn it into 2 blocks in the near bottom. |
|
|
|
|
|
|
|
|
#6 |
|
New Member
Jacob Crabill
Join Date: Nov 2011
Posts: 1
Rep Power: 0 ![]() |
Hi hei@ge,
You've probably figured it out by now, but just in case (and because unanswered threads bug me), here's your answer: Internal faces between blocks (which won't be receiving boundary conditions) don't get assigned as patches - they are simply ignored, and OpenFoam will recognize them as simply being an interface between two blocks. The exception is when the two blocks use separate vertices to define overlapping faces - say, if you were to copy vertices 4, 5, 6, & 7 to vertices 12, 13, 14, & 15. THEN you would use mergePatchPairs to merge the faces (4 5 6 7) and (15 14 13 12) Hope this helps someone! Regards, Jacob |
|
|
|
|
|
|
|
|
#7 |
|
New Member
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 18
Rep Power: 5 ![]() |
@ Hei@ge,
I don't if it is just a mistake in copy and paste but you should in matchPatchPairs write (interface1 interface2) instead of (<interface1> <interface2>) Cheers, Elia |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mergePatchPairs vs stitchMesh | pg22 | OpenFOAM Native Meshers: blockMesh | 1 | March 10, 2010 05:50 |
| BlockMeshDict with multiple hex blocks mergePatchPairs | prousa | OpenFOAM Native Meshers: blockMesh | 1 | May 14, 2009 23:42 |
| BlockMesh documentation User Guide clearance of mergePatchPairs proposals | benru | OpenFOAM Native Meshers: blockMesh | 0 | June 9, 2008 02:22 |
| Blockmesh cavity error message | tonitoney | OpenFOAM Installation | 2 | March 17, 2008 12:59 |
| Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 8 | March 12, 2008 05:58 |