From 80ef6e2392a4d4479dbb9dc6535d33b8293c52c8 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 20 Dec 2013 16:01:18 +0000 Subject: [PATCH] ENH: hexRef8: test more --- applications/test/hexRef8/Test-hexRef8.C | 160 ++++++++++-------- .../test/hexRef8/block/system/controlDict | 9 +- 2 files changed, 98 insertions(+), 71 deletions(-) diff --git a/applications/test/hexRef8/Test-hexRef8.C b/applications/test/hexRef8/Test-hexRef8.C index ed10807809..0e913ff011 100644 --- a/applications/test/hexRef8/Test-hexRef8.C +++ b/applications/test/hexRef8/Test-hexRef8.C @@ -41,6 +41,7 @@ Description #include "Random.H" #include "zeroGradientFvPatchFields.H" #include "calculatedPointPatchFields.H" +#include "pointConstraints.H" #include "fvcDiv.H" using namespace Foam; @@ -63,6 +64,8 @@ int main(int argc, char *argv[]) # include "createMesh.H" + const pointConstraints& pc = pointConstraints::New(pointMesh::New(mesh)); + const Switch inflate(args.args()[1]); if (inflate) @@ -188,89 +191,107 @@ int main(int argc, char *argv[]) } + mesh.moving(false); + mesh.topoChanging(false); - // Mesh changing engine. - polyTopoChange meshMod(mesh); - if (rndGen.bit()) + label action = rndGen.integer(0, 5); + + + if (action == 0) { - // Refine - label nRefine = mesh.nCells()/20; - DynamicList