diff --git a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C index e2a2fee10ab21940e605ccab3358bb0d415a9f32..9798046ca3c9c5ab91b6c59ea7294fb458fb97c1 100644 --- a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C @@ -2327,9 +2327,11 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::zonify // Set using walking // ~~~~~~~~~~~~~~~~~ - if (!allowFreeStandingZoneFaces) + //if (!allowFreeStandingZoneFaces) { - Info<< "Walking to assign cellZones." << nl << endl; + Info<< "Walking from location-in-mesh " << keepPoint + << " to assign cellZones " + << "- crossing a faceZone face changes cellZone" << nl << endl; // Topological walk findCellZoneTopo diff --git a/src/mesh/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C b/src/mesh/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C index c6aae8ccaedb716d6f7ce611bcf64ee7eccbbe75..ac01e052cdb6b4a8062505b32f9a7c8ac7dfa16d 100644 --- a/src/mesh/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C +++ b/src/mesh/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C @@ -77,11 +77,22 @@ Foam::refinementSurfaces::refinementSurfaces if (dict.found("faceZone")) { dict.lookup("faceZone") >> faceZoneNames_[surfI]; + bool hasSide = dict.readIfPresent("zoneInside", zoneInside_[surfI]); if (dict.readIfPresent("cellZone", cellZoneNames_[surfI])) { - dict.lookup("zoneInside") >> zoneInside_[surfI]; + if (hasSide && !allGeometry_[surfaces_[surfI]].hasVolumeType()) + { + IOWarningIn + ( + "refinementSurfaces::refinementSurfaces(..)", + dict + ) << "Unused entry zoneInside for faceZone " + << faceZoneNames_[surfI] + << " since surface " << names_[surfI] + << " is not closed." << endl; + } } - else if (dict.found("zoneInside")) + else if (hasSide) { IOWarningIn("refinementSurfaces::refinementSurfaces(..)", dict) << "Unused entry zoneInside for faceZone " @@ -324,11 +335,30 @@ Foam::refinementSurfaces::refinementSurfaces if (dict.found("faceZone")) { dict.lookup("faceZone") >> faceZoneNames_[surfI]; + bool hasSide = dict.readIfPresent + ( + "zoneInside", + zoneInside_[surfI] + ); if (dict.readIfPresent("cellZone", cellZoneNames_[surfI])) { - dict.lookup("zoneInside") >> zoneInside_[surfI]; + if + ( + hasSide + && !allGeometry_[surfaces_[surfI]].hasVolumeType() + ) + { + IOWarningIn + ( + "refinementSurfaces::refinementSurfaces(..)", + dict + ) << "Unused entry zoneInside for faceZone " + << faceZoneNames_[surfI] + << " since surface " << names_[surfI] + << " is not closed." << endl; + } } - else if (dict.found("zoneInside")) + else if (hasSide) { IOWarningIn (