CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Mesh Utilities (
-   -   How to remove whole mesh region? (

klamorski March 29, 2014 04: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,


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 10:56.