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

[mesh manipulation] stitchMesh perfect vs partial

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By Eloise

Reply
 
LinkBack Thread Tools Search this Thread 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: 113
Rep Power: 14
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, 226 views)
File Type: jpg partial.jpg (102.0 KB, 217 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: 113
Rep Power: 14
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, 435 views)
elvis, nanavati, aow and 1 others like this.
Eloise is offline   Reply With Quote

Old   October 25, 2017, 11:47
Default
  #3
New Member
 
Adri
Join Date: Sep 2017
Posts: 24
Rep Power: 9
Adri_12 is on a distinguished road
Thanks a lot it has solved my problem !
Adri_12 is offline   Reply With Quote

Reply


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] more than two regions to join using stitchMesh partial or perfect option Lada OpenFOAM Meshing & Mesh Conversion 5 June 17, 2018 17:29
Some confusions about SST-DES (code and formulas) Alisa_W OpenFOAM 2 April 24, 2018 10:30
Low Reynolds K Epsilon Launder Sharma Model Functions Doubt... Ruonin Main CFD Forum 17 February 17, 2014 10:52
[mesh manipulation] stitchMesh -perfect - tolerance error of 2 identical faces Hanno OpenFOAM Meshing & Mesh Conversion 1 November 21, 2013 06:41
stitchMesh -partial AMI1 AMI2 reza1980 OpenFOAM 1 July 14, 2013 09:32


All times are GMT -4. The time now is 14:50.