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

[mesh manipulation] stitchMesh and mergeMeshes removal of interfaces

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By herbert

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2010, 10:07
Default stitchMesh and mergeMeshes removal of interfaces
  #1
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Hello,


I am trying to combine two meshes (made with blockMesh) to one single mesh, using stitchMesh and mergeMeshes. The interfaces of both partial meshes are equal in dimensions and positions and are named interface1 and interface2.

When I run

mergeMeshes . rootCase . addCase

the patches interface1 and interface2 are in the new polyMesh/boundary file. They also remain when I run

stitchMesh interface1 interface 2


How can I remove them?
flowris is offline   Reply With Quote

Old   July 13, 2010, 10:26
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18
herbert is on a distinguished road
Do these patches still have face in them? Or is the entry in polyMesh/boundary showing nFaces 0? In that case you can simply delete these entries. (Don't forget to change the number of patches at the top of the file, too)

Otherwise you can try stitchMesh -perfect

Regards,
Stefan
potentialFoam likes this.
herbert is offline   Reply With Quote

Old   July 13, 2010, 10:40
Default
  #3
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Stefan,

Thank you for your quick reply. For the moment I cannot even run stitchMesh anymore. This is the error I receive:

Create time

Create mesh for time = 0

Coupling patches interface1 and interface2
Resulting (internal) faces will be in faceZone interface1interface2CutFaceZone

Note: the overall area covered by both patches should be identical ("integral" interface).
If this is not the case use the -partial option



Not all zones and patches needed in the definition have been found. Please check your mesh definition.
Error code: 000011

From function void slidingInterface::checkDefinition()
in file polyMeshModifiers/slidingInterface/slidingInterface.C at line 96.

FOAM aborting

Aborted
flowris is offline   Reply With Quote

Old   July 13, 2010, 12:46
Default
  #4
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18
herbert is on a distinguished road
Dear Flowris,

seems like at least one of the patches you want to stitch is not defined in polyMesh/boundary.

Regards,
Stefan
herbert is offline   Reply With Quote

Old   July 15, 2010, 08:16
Default
  #5
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Thanks Herbert,

I was now able to mergeMeshes and stitchMesh to meshes. The interface patches remain in the new mesh. How should I remove them?
flowris is offline   Reply With Quote

Old   July 15, 2010, 08:38
Default
  #6
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18
herbert is on a distinguished road
Hi Flowris,

either the patches are empty (nFaces=0) and the entries can just be removed in constant/boundary-file or they still have faces and can not be removed, because they are still not interior.

Regards,
Stefan
herbert is offline   Reply With Quote

Old   July 16, 2010, 13:06
Default similar problem
  #7
New Member
 
Chris Wolfgang
Join Date: Jul 2010
Location: PA, USA
Posts: 1
Rep Power: 0
cww5059 is on a distinguished road
I have a very similar problem. I built two grids to define the region above and below a free surface and named the top patch of the bottom grid and bottom patch of the top grid as freeSurf (also, when I constructed both grids I used the same domain to define freeSurf). When I run mergeMeshes it does connect the two grids together, but instead of removing both of the freeSurf patches, as it should have become an interior face, it leaves the one from the main case.
cww5059 is offline   Reply With Quote

Reply

Tags
interface, mergemeshes, stitchmesh


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
[mesh manipulation] StitchMesh sigFpe / bad point liquidspoon OpenFOAM Meshing & Mesh Conversion 2 November 29, 2015 15:19
[mesh manipulation] mergeMeshes and stitchMesh in parallel? samiam1000 OpenFOAM Meshing & Mesh Conversion 1 June 6, 2014 11:21
[mesh manipulation] Problem with stitchMesh: it does not work in meshes with several common patches arnau1985 OpenFOAM Meshing & Mesh Conversion 2 June 25, 2013 09:49
[mesh manipulation] using mergeMeshes and stitchMesh Lada OpenFOAM Meshing & Mesh Conversion 2 October 13, 2011 16:04
[mesh manipulation] MergeMeshes and stitchMesh problem flo OpenFOAM Meshing & Mesh Conversion 6 May 10, 2010 11:40


All times are GMT -4. The time now is 03:53.