CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] How to remove whole mesh region? (https://www.cfd-online.com/Forums/openfoam-meshing/132316-how-remove-whole-mesh-region.html)

klamorski March 29, 2014 03:14

How to remove whole mesh region?
 
Hello Dear Foamers,

I have few big meshes generated by snappyHexMesh utility. Some of quality checks of this meshes failed - mostly skew faces problem. So I removed problematic cells using setSet and subsetMesh utilities.

But in some cases removing problematic cells caused detaching small cell groups from original mesh. This divided the original mesh into regions. Region 0 groups almost whole mesh's cells, other regions could be safely removed.

The question is, how to remove whole mesh region?

All the best,

Krzysztof

klamorski April 2, 2014 10:35

Solution found
 
It seems that: splitMeshRegions -cellZones -largestOnly -overwrite will do the trick.


All times are GMT -4. The time now is 22:04.