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

[blockMesh] mergePatchPairs master with few slaves

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

Like Tree7Likes
  • 1 Post By piprus
  • 6 Post By piprus

Reply
 
LinkBack Thread Tools Search this Thread 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: 67
Rep Power: 16
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.
Artur.Ant likes this.

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: 67
Rep Power: 16
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: 67
Rep Power: 16
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.
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: 14
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 04:05
foam-extend-3.2 Pstream: "MPI_ABORT was invoked" craven.brent OpenFOAM Running, Solving & CFD 5 November 18, 2015 08:55
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 07:58
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 03:26
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


All times are GMT -4. The time now is 22:56.