From 50017eeb802bf336fbbd64e5fccc50458d7a0e78 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Thu, 13 Jul 2023 16:20:24 +0100 Subject: [PATCH] snappyHexMeshConfig: removed resizing of bounds specified with '-bounds' option --- .../blockMeshCartesianConfiguration.C | 17 ++++++++++++----- .../blockMeshCartesianConfiguration.H | 3 ++- .../blockMeshCylindricalConfiguration.C | 13 +++++++++++++ .../blockMeshCylindricalConfiguration.H | 3 +++ 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C index cc72e277da..941a655262 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C @@ -37,20 +37,26 @@ const Foam::List Foam::blockMeshCartesianConfiguration::patches = // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void Foam::blockMeshCartesianConfiguration::calcBlockMeshDict() +void Foam::blockMeshCartesianConfiguration::calcBlockMeshDict +( + const bool& boundsOpt +) { Info<< "Surface bounding box is " << bb_ << endl; - // Round the bounding box + // Round the bounding box if it is not specified with '-bounds' option const scalar roundFactor = roundingScale(bb_.minDim()); - roundBoundingBox(bb_, roundFactor); + if (!boundsOpt) + { + roundBoundingBox(bb_, roundFactor); + } // Set nCells with the lowest number of cells within the range 10-20 if (nCells_ == Vector