snappyHexMesh: Changed confusing 'refinementSurfaces' option 'cellZoneInside' to 'mode'

for example

    cellZoneInside  inside;

becomes

    mode            inside;

in snappyHexMeshDict

Support for the previous name 'cellZoneInside' is maintained for backward
compatibility.
This commit is contained in:
Henry Weller
2021-06-21 13:26:00 +01:00
parent c8307122c6
commit 887f67ea84

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -88,7 +88,10 @@ Foam::surfaceZonesInfo::surfaceZonesInfo
// Read optional entry to determine inside of faceZone
word method;
bool hasSide = surfacesDict.readIfPresent("cellZoneInside", method);
bool hasSide =
surfacesDict.readIfPresent("mode", method)
|| surfacesDict.readIfPresent("cellZoneInside", method);
if (hasSide)
{
zoneInside_ = areaSelectionAlgoNames[method];
@ -96,17 +99,6 @@ Foam::surfaceZonesInfo::surfaceZonesInfo
{
surfacesDict.lookup("insidePoint") >> zoneInsidePoint_;
}
}
else
{
// Check old syntax
bool inside;
if (surfacesDict.readIfPresent("zoneInside", inside))
{
hasSide = true;
zoneInside_ = (inside ? INSIDE : OUTSIDE);
}
}
// Read optional cellZone name