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

stitchMesh and mergeMeshes removal of interfaces

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 13, 2010, 09:07
Default stitchMesh and mergeMeshes removal of interfaces
  #1
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
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, 09:26
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
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
herbert is offline   Reply With Quote

Old   July 13, 2010, 09:40
Default
  #3
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
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, 11:46
Default
  #4
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
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, 07:16
Default
  #5
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
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, 07:38
Default
  #6
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
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, 12: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

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
MergeMeshes hsieh OpenFOAM Meshing Format & General Technical 3 September 10, 2014 09:15
MergeMeshes and stitchMesh problem flo OpenFOAM Mesh Utilities 6 May 10, 2010 10:40
stitchMesh marine OpenFOAM Mesh Utilities 1 April 27, 2010 10:59
MergeMeshes and mesh format from 14x 15 pitmanm OpenFOAM Bugs 14 July 4, 2009 00:55
StitchMesh on OF15 error any fix flo OpenFOAM Bugs 0 August 20, 2008 10:27


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