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

mergePatchPairs master with few slaves

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

Like Tree2Likes
  • 2 Post By piprus

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2010, 18:18
Question mergePatchPairs master with few slaves
  #1
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 53
Rep Power: 7
piprus is on a distinguished road
Hey people,

I encountered some small problem with the mergePatchPairs and I'm eager to know how to solve it. There is a following simple situation.

Let say we have 4 hexahedrals, one of them is a base and three others are connected on top of the first one, but they don't touch each other. So in other words, there is one face of the base (mainFace) and 3 faces of those 3 blocks (face1, face2, face3) which are standing on the base. So how should I define mergePatchPairs in order to get rid of interfaces between hexes/blocks?

According to the Manual, where it's written:
There are some additional recommendations to ensure successful merge procedures:
> where a patch to be merged shares a common edge with another patch to be merged, both should be declared as a master patch.
I supposed to do it in a following manner:
Code:
mergePatchPairs
(
    ( mainFace face1 )
    ( mainFace face2 )
    ( mainFace face3 )
);
Am I right?

So what's the problem? Why I'm getting again and again the same error:
Code:
--> FOAM FATAL ERROR: 
face 277 already marked for removal

    From function polyTopoChange::removeFace(const label, const label)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2807.
Sounds like my master patch disappers every time;(

Or maybe I'm wrong and it means that I suppose to cut my base at least into 3 pieces in order to connect 3 blocks? But, is it the only way?!

Maybe I should mention that I'm using OF 1.6.x.

Last edited by piprus; March 3, 2010 at 06:06.
piprus is offline   Reply With Quote

Old   March 3, 2010, 06:24
Default
  #2
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 53
Rep Power: 7
piprus is on a distinguished road
Ok, since I'm focused on removing interfaces from the common edge, I should care more about the "cutting tools". I mean the mergePatchPairs suppose to look like below:

Code:
mergePatchPairs
(
    ( face1 mainFace )
    ( face2 mainFace )
    ( face3 mainFace )
);
Now everything looks better from the mainFace point of view, since I want to keep it.

But there is still something wrong, because I got again the same error ;(
piprus is offline   Reply With Quote

Old   March 3, 2010, 10:08
Thumbs up Solved
  #3
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 53
Rep Power: 7
piprus is on a distinguished road
Ok, since nobody helps me, I came up with a simple solution. Just follow my steps:
1) The easiest way to get rid of few interfaces from one face is to put all of the faces that suppose to be removed later on in one patch - doesn't really matter whether you have one or six or even more faces to remove - I will call this patch cuttingFaces.
2) Then you have to define a patch, let say mainFace, which should stay after all.
3) Since you've done it you have to now define mergePatchPairs like below
Code:
mergePatchPairs
(
    ( cuttingFaces mainFace )
);
And that's all

If you find some problems with it, it means likely that your grid is not enough dense.
unnikrsn and fs.chemech like this.
piprus is offline   Reply With Quote

Old   November 8, 2012, 10:32
Default
  #4
New Member
 
Unnikrishnan Mohankumar
Join Date: Apr 2011
Posts: 29
Rep Power: 6
unnikrsn is on a distinguished road
Thanks for your tip..

It is very helpful..
unnikrsn is offline   Reply With Quote

Reply

Tags
face, master, mergepatchpairs, slave

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
BlockMeshDict with multiple hex blocks mergePatchPairs prousa OpenFOAM Native Meshers: blockMesh 1 May 14, 2009 23:42
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
BlockMesh documentation User Guide clearance of mergePatchPairs proposals benru OpenFOAM Native Meshers: blockMesh 0 June 9, 2008 02:22
Full Fluent license required for the master node? Paul FLUENT 1 September 1, 2006 04:26
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 20:11.