From 531f6d9ea234721a4ed42fe15fa34dd0cfbc7754 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Fri, 7 Feb 2020 17:00:20 +0100
Subject: [PATCH] TUT: add inner-region cellZone to simpleFoam/motorBike

- useful for post-processing and data conversion tests
---
 .../simpleFoam/motorBike/Allrun               |  2 ++
 .../simpleFoam/motorBike/system/topoSetDict   | 31 +++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 tutorials/incompressible/simpleFoam/motorBike/system/topoSetDict

diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allrun b/tutorials/incompressible/simpleFoam/motorBike/Allrun
index 1dcc3f559be..c097541572a 100755
--- a/tutorials/incompressible/simpleFoam/motorBike/Allrun
+++ b/tutorials/incompressible/simpleFoam/motorBike/Allrun
@@ -26,6 +26,8 @@ fi
 
 runParallel $decompDict snappyHexMesh -overwrite
 
+runParallel $decompDict topoSet
+
 #- For non-parallel running: - set the initial fields
 # restore0Dir
 
diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/topoSetDict b/tutorials/incompressible/simpleFoam/motorBike/system/topoSetDict
new file mode 100644
index 00000000000..48fbfcdbfc8
--- /dev/null
+++ b/tutorials/incompressible/simpleFoam/motorBike/system/topoSetDict
@@ -0,0 +1,31 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| =========                 |                                                 |
+| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
+|  \\    /   O peration     | Version:  v2006                                 |
+|   \\  /    A nd           | Website:  www.openfoam.com                      |
+|    \\/     M anipulation  |                                                 |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+    version     2.0;
+    format      ascii;
+    class       dictionary;
+    location    "system";
+    object      topoSetDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+actions
+(
+    // For easier post-processing, and data-conversion tests
+    {
+        name    inner;
+        type    cellZoneSet;
+        action  new;
+        source  boxToCell;
+        min     (-1 -0.5 0);
+        max     ( 6  0.5 2);
+    }
+);
+
+// ************************************************************************* //
-- 
GitLab