diff --git a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.C b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.C index 4efa4dff68..c2294f98a4 100644 --- a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.C +++ b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.C @@ -209,7 +209,7 @@ Foam::searchableSurfaceControl::searchableSurfaceControl label nRegions = regionsDict.size(); - regionCellSizeFunctions.setSize(nRegions + 1); + regionCellSizeFunctions.setSize(nRegions); defaultCellSizeRegions.setCapacity(nRegions); forAll(regionNames, regionI) @@ -263,6 +263,8 @@ Foam::searchableSurfaceControl::searchableSurfaceControl } else if (nRegionCellSizeFunctions > 0) { + regionCellSizeFunctions.setSize(nRegionCellSizeFunctions + 1); + regionCellSizeFunctions.set ( nRegionCellSizeFunctions, @@ -275,7 +277,7 @@ Foam::searchableSurfaceControl::searchableSurfaceControl ) ); - const wordList& regionNames = geometryToConformTo_.patchNames(); + const wordList& regionNames = searchableSurface_.regions(); forAll(regionNames, regionI) { @@ -289,7 +291,7 @@ Foam::searchableSurfaceControl::searchableSurfaceControl } else { - const wordList& regionNames = geometryToConformTo_.patchNames(); + const wordList& regionNames = searchableSurface_.regions(); forAll(regionNames, regionI) { diff --git a/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict b/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict index cf6a3cafdf..00b03b6a69 100644 --- a/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict +++ b/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict @@ -22,34 +22,7 @@ FoamFile geometry { - flange.stl - { - name flange; - type triSurfaceMesh; - - regions - { - patch1 - { - name wall; - } - - patch2 - { - name plate; - } - - patch3 - { - name rings; - } - - patch4 - { - name outlet; - } - } - } + #include "meshDict.geometry" } @@ -80,7 +53,7 @@ surfaceConformation regions { - wall + patch1 { patchInfo { @@ -88,7 +61,7 @@ surfaceConformation } } - plate + patch2 { patchInfo { @@ -96,7 +69,7 @@ surfaceConformation } } - rings + patch3 { patchInfo { @@ -104,7 +77,7 @@ surfaceConformation } } - outlet + patch4 { patchInfo { @@ -150,7 +123,7 @@ motionControl regions { - rings + patch3 { type searchableSurfaceControl; priority 2; @@ -158,7 +131,7 @@ motionControl surfaceCellSizeFunction uniformValue; uniformValueCoeffs { - surfaceCellSizeCoeff 0.5; + surfaceCellSizeCoeff 0.25; } cellSizeFunction surfaceOffsetLinearDistance; surfaceOffsetLinearDistanceCoeffs diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict b/tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict index a000ba4ad3..9ec0594223 100644 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict @@ -59,9 +59,9 @@ surfaceConformation extendedFeatureEdgeMesh "vessel.extendedFeatureEdgeMesh"; regions { - vessel_wall {} - vessel_outletPipe {} - vessel_outlet {} + patch1 {} + patch2 {} + patch3 {} } } @@ -142,7 +142,7 @@ motionControl regions { - vessel_wall + patch1 { surfaceCellSizeFunction uniformValue; uniformValueCoeffs @@ -154,7 +154,7 @@ motionControl uniformCoeffs{} } - vessel_outletPipe + patch2 { priority 2; surfaceCellSizeFunction uniformValue; @@ -170,7 +170,7 @@ motionControl } } - vessel_outlet + patch3 { priority 2; surfaceCellSizeFunction uniformValue;