From 3eb7bb677e0987e63851bc9cd8d5590759822f1f Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 4 Sep 2024 09:29:19 +0100 Subject: [PATCH] BUG: blockMesh: incorrect sqrt. Fixes #3217 --- tutorials/mesh/blockMesh/sphere/system/blockMeshDict | 2 +- tutorials/mesh/blockMesh/sphere7/system/blockMeshDict | 2 +- .../mesh/blockMesh/sphere7ProjectedEdges/system/blockMeshDict | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/mesh/blockMesh/sphere/system/blockMeshDict b/tutorials/mesh/blockMesh/sphere/system/blockMeshDict index 7ef711d3bde..a6338486f1c 100644 --- a/tutorials/mesh/blockMesh/sphere/system/blockMeshDict +++ b/tutorials/mesh/blockMesh/sphere/system/blockMeshDict @@ -35,7 +35,7 @@ geometry } // Box size -vo #eval{ sqrt($outerRadius/3) }; +vo #eval{ $outerRadius/sqrt(3) }; vertices ( diff --git a/tutorials/mesh/blockMesh/sphere7/system/blockMeshDict b/tutorials/mesh/blockMesh/sphere7/system/blockMeshDict index 6253f9524d3..66b82df1e91 100644 --- a/tutorials/mesh/blockMesh/sphere7/system/blockMeshDict +++ b/tutorials/mesh/blockMesh/sphere7/system/blockMeshDict @@ -38,7 +38,7 @@ geometry } // Outer box size -vo #eval{ sqrt($outerRadius/3) }; +vo #eval{ $outerRadius/sqrt(3) }; // Inner box size - % of overall dimension vi #eval{ $vo * $innerRatio }; diff --git a/tutorials/mesh/blockMesh/sphere7ProjectedEdges/system/blockMeshDict b/tutorials/mesh/blockMesh/sphere7ProjectedEdges/system/blockMeshDict index 134c5097129..8e67d39471b 100644 --- a/tutorials/mesh/blockMesh/sphere7ProjectedEdges/system/blockMeshDict +++ b/tutorials/mesh/blockMesh/sphere7ProjectedEdges/system/blockMeshDict @@ -45,7 +45,7 @@ geometry // Outer box size (approximate) -vo #eval{ sqrt($outerRadius/3) }; +vo #eval{ $outerRadius/sqrt(3) }; // Inner box size - % of overall dimension vi #eval{ $vo * $innerRatio }; -- GitLab