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

Automatically delete empty patches from boundary file after stitchMesh

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

Like Tree1Likes
  • 1 Post By rcastilla

Reply
 
LinkBack Thread Tools Display Modes
Old   November 21, 2012, 03: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, 13:59
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
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 24, 2012, 00:37
Default
  #3
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 30
Rep Power: 5
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, 13:00
Default
  #4
Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 79
Rep Power: 8
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

Reply

Tags
boundary, empty patch, patch, pyfoam, 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
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Radiation interface hinca CFX 15 January 26, 2014 18:11
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26


All times are GMT -4. The time now is 15:49.