|
[Sponsors] |
[mesh manipulation] Automatically delete empty patches from boundary file after stitchMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 21, 2012, 03:08 |
Automatically delete empty patches from boundary file after stitchMesh
|
#1 |
New Member
Gabriel
Join Date: Sep 2011
Posts: 1
Rep Power: 0 |
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! |
|
November 21, 2012, 13:59 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
I know createPatch removes empty boundaries; try grouping all the empty patches together and see if createPatch will remove them.
|
|
November 24, 2012, 00:37 |
|
#3 |
Member
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 15 |
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...
|
|
February 27, 2013, 13:00 |
|
#4 |
Senior Member
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17 |
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
|
|
November 23, 2020, 08:37 |
|
#5 |
New Member
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9 |
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 |
|
Tags |
boundary, empty patch, patch, pyfoam, stitchmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |