From 1a2a5b062227b2bbafca8498f734ec6ab1272187 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Fri, 15 Sep 2017 15:05:23 +0100 Subject: [PATCH] foamyHexMesh: Made default region volume type that of it's parent Foamy surface conformation entries have a "meshableSide" entry which controls which side of the surface is to be meshed. Typically this is set "inside" for boundaries and "both" for baffles. A sub-region's default entry is now taken from it's parent, rather than a specific value (it was "inside"). This is consistent with how other entries are handled. surfaceConformation { locationInMesh (0 0 0); geometryToConformTo { baffle { featureMethod extractFeatures; includedAngle 120; meshableSide both; // <-- per-surface setting regions { disk { meshableSide both; // <-- per-region setting* // *in this example, this entry is not needed, as it // is taken from the per-surface setting above } } } // ... } } --- .../conformationSurfaces/conformationSurfaces.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.C index d453a0f4ed..be5f1cadf1 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -443,7 +443,11 @@ Foam::conformationSurfaces::conformationSurfaces regionDict.lookupOrDefault ( "meshableSide", - "inside" + extendedFeatureEdgeMesh:: + sideVolumeTypeNames_ + [ + globalVolumeTypes[surfI] + ] ) ] );