CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

mergePatchPairs with blockMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By aeroGeek

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2011, 13:23
Default mergePatchPairs with blockMesh
  #1
Member
 
Join Date: Oct 2010
Location: Germany
Posts: 39
Rep Power: 6
Ivanet is on a distinguished road
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
Attached Files
File Type: txt blockMeshDict.txt (4.5 KB, 376 views)

Last edited by Ivanet; July 8, 2011 at 02:00.
Ivanet is offline   Reply With Quote

Old   July 8, 2011, 11:35
Default Problem solved
  #2
Member
 
Join Date: Oct 2010
Location: Germany
Posts: 39
Rep Power: 6
Ivanet is on a distinguished road
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
Ivanet is offline   Reply With Quote

Old   November 25, 2011, 00:51
Smile mergePatchPairs with blockMesh
  #3
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 5
hei@ge is on a distinguished road
can you tell me how to edit mergepatchpairs?My case is cut the windfarm into two blocks.Thaks a lots.
hei@ge is offline   Reply With Quote

Old   November 25, 2011, 04:05
Default
  #4
Member
 
Join Date: Oct 2010
Location: Germany
Posts: 39
Rep Power: 6
Ivanet is on a distinguished road
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
Ivanet is offline   Reply With Quote

Old   November 26, 2011, 22:34
Smile
  #5
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 5
hei@ge is on a distinguished road
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.
hei@ge is offline   Reply With Quote

Old   December 20, 2011, 01:22
Default
  #6
New Member
 
Jacob Crabill
Join Date: Nov 2011
Posts: 1
Rep Power: 0
aeroGeek is on a distinguished road
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
curiosity likes this.
aeroGeek is offline   Reply With Quote

Old   January 16, 2012, 10:57
Default
  #7
New Member
 
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 7
fakekarma is on a distinguished road
@ 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
fakekarma is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mergePatchPairs vs stitchMesh pg22 OpenFOAM Native Meshers: blockMesh 1 March 10, 2010 06: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


All times are GMT -4. The time now is 04:15.