diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C index 941a655262..adb7f35590 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2023-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,6 +74,11 @@ void Foam::blockMeshCartesianConfiguration::calcBlockMeshDict Info<< "Bounding box is now " << bb_ << endl; + if (minDimCells_ > 0) + { + nCells_ = setMinDimCells(nCells_, minDimCells_); + } + // Scale nCells_ by refine factor nCells_ *= refineFactor_; @@ -266,6 +271,7 @@ Foam::blockMeshCartesianConfiguration::blockMeshCartesianConfiguration const meshingSurfaceList& surfaces, const bool& boundsOpt, const Vector