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