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

stitchMesh perfect vs partial

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

Like Tree2Likes
  • 2 Post By Eloise

Reply
 
LinkBack Thread Tools Display Modes
Old   February 22, 2013, 11:14
Default stitchMesh perfect vs partial
  #1
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
Eloise is on a distinguished road
Dear all,

I am trying to join two meshes: a cylinder in a box. Both meshes are generated in blockMesh. The goal is not to have a sliding interface but to have an easy way to rotate a geometry inside the domain.

Here is the procedure I use in order to join them:
  1. Generate the inner cylindrical domain with blockMesh
  2. Generate the outer domain with blockMesh
  3. Merge the domains using mergeMeshes
  4. Stitch the domains using stitchMesh
  5. Remove manually the empty boundaries (0 faces) from constant/boundaries file
  6. Run solver on the final mesh
If I use the same number of faces on the internal patches and the -perfect flag for stitchMesh, this procedure works fine. (see perfect.jpg)

If I use different number of faces on the internal patches and the -partial flag for stitchMesh, some faces remain on one of the internal patch which leads to some "incorrectly oriented faces" (from checkMesh). (see partial.jpg)

I've been looking a lot around the forum and the many threads about stitchMesh but I haven't found a way to stitch internal patches which have different number of faces. Can anyone help me?

Thanks for your help,
Elo´se
Attached Images
File Type: jpg perfect.jpg (100.5 KB, 48 views)
File Type: jpg partial.jpg (102.0 KB, 48 views)
Eloise is offline   Reply With Quote

Old   February 22, 2013, 12:25
Smile
  #2
Senior Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 103
Rep Power: 5
Eloise is on a distinguished road
Hi again,

I actually found the answer right after posting...
I added the -toleranceDict flag to stitchMesh, referring to a tolerance file located in the constant directory (see attachment, remove ".txt").
Code:
 stitchMesh -partial -toleranceDict toleranceDict patch1 patch2
I hope this will help someone!

Have a nice weekend,
Elo´se
Attached Files
File Type: txt toleranceDict.txt (1.2 KB, 121 views)
elvis and nanavati like this.
Eloise 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
more than two regions to join using stitchMesh partial or perfect option Lada OpenFOAM Mesh Utilities 3 May 28, 2015 09:52
Low Reynolds K Epsilon Launder Sharma Model Functions Doubt... RSilva Main CFD Forum 17 February 17, 2014 10:52
stitchMesh -perfect - tolerance error of 2 identical faces Hanno OpenFOAM Mesh Utilities 1 November 21, 2013 06:41
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 21:36
stitchMesh dhruv OpenFOAM Mesh Utilities 13 February 23, 2012 18:14


All times are GMT -4. The time now is 00:46.