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

[mesh manipulation] Automatically delete empty patches from boundary file after stitchMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By rcastilla
  • 1 Post By Gerhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2012, 02:08
Default Automatically delete empty patches from boundary file after stitchMesh
  #1
g_b
New Member
 
Gabriel
Join Date: Sep 2011
Posts: 1
Rep Power: 0
g_b is on a distinguished road
Hello foamers,

I was wondering if there is a straightforward/out-of-the-box way to automatically delete empty patches from the boundary file after a successful stitchMesh? Although pyFoam has a utility to add empty patches to the boundary file, I haven't found any to remove them.

Thanks!
g_b is offline   Reply With Quote

Old   November 21, 2012, 12:59
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
I know createPatch removes empty boundaries; try grouping all the empty patches together and see if createPatch will remove them.
mturcios777 is offline   Reply With Quote

Old   November 23, 2012, 23:37
Default
  #3
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 14
vishalsacharya is on a distinguished road
renumberMesh also sometimes does that... but i may be mistaken... its a good idea to renumber after stitching to get the most optimal mesh for decomposition...
vishalsacharya is offline   Reply With Quote

Old   February 27, 2013, 12:00
Default
  #4
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 109
Rep Power: 17
rcastilla is on a distinguished road
I think that the problem is that the boundary is in the 0/polyMesh directory instead of in the constant/polyMesh one. Move the 0/polyMesh directory into constant (overwrite the old one) and run pyFoamClearEmptyBoundary again. It worked for me
yanxiang likes this.
rcastilla is offline   Reply With Quote

Old   November 23, 2020, 07:37
Default
  #5
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
createPatch with no entries under patches in the createPatchDict file will always remove zero-sized patches.
You do not even have to group them together.


Regards
salehi144 likes this.
Gerhard is offline   Reply With Quote

Reply

Tags
boundary, empty patch, patch, pyfoam, 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
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


All times are GMT -4. The time now is 01:40.