From dd438ffd3fa8e2d2c517a1b258153374621a4505 Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Tue, 21 Jun 2022 09:35:28 +0200
Subject: [PATCH] TUT: add cloudInfo example to reactingParcelFoam/filter
 (#2390)

---
 .../filter/system/cloudInfo                   | 60 +++++++++++++++++++
 .../filter/system/controlDict                 |  3 +-
 2 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 tutorials/lagrangian/reactingParcelFoam/filter/system/cloudInfo

diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/system/cloudInfo b/tutorials/lagrangian/reactingParcelFoam/filter/system/cloudInfo
new file mode 100644
index 00000000000..8ee68ad034f
--- /dev/null
+++ b/tutorials/lagrangian/reactingParcelFoam/filter/system/cloudInfo
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+
+cloudInfo
+{
+    type    cloudInfo;
+    libs    (lagrangianFunctionObjects);
+    log     true;
+
+    // Nothing happens before this anyhow
+    timeStart 0.5;
+
+    writeControl    writeTime;
+
+    // Require cloud name(s) - not regex!
+    clouds  ( reactingCloud1 );
+
+    // Optional selection mechanism
+    selection
+    {
+        all
+        {
+            action  all;
+        }
+
+        T
+        {
+            action  subset;
+            source  field;
+            field   T;
+            accept  (greater 280) and (less 300);
+        }
+
+        YH2O
+        {
+            action  subset;
+            source  field;
+            field   YH2O(l);
+            accept  (greater 0.5);
+        }
+
+        diameter
+        {
+            action  subset;
+            source  field;
+            field   d;
+            accept  (greater 1e-10);
+        }
+
+        Umin
+        {
+            action  subtract;
+            source  field;
+            field   U;
+            accept  (less 0.1);
+        }
+    }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/system/controlDict b/tutorials/lagrangian/reactingParcelFoam/filter/system/controlDict
index aace3d5302d..3047a36282c 100644
--- a/tutorials/lagrangian/reactingParcelFoam/filter/system/controlDict
+++ b/tutorials/lagrangian/reactingParcelFoam/filter/system/controlDict
@@ -1,7 +1,7 @@
 /*--------------------------------*- C++ -*----------------------------------*\
 | =========                 |                                                 |
 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  v2112                                 |
+|  \\    /   O peration     | Version:  v2206                                 |
 |   \\  /    A nd           | Website:  www.openfoam.com                      |
 |    \\/     M anipulation  |                                                 |
 \*---------------------------------------------------------------------------*/
@@ -53,6 +53,7 @@ maxDeltaT       1;
 functions
 {
     #include "sample"
+    #include "cloudInfo"
     #include "dataCloud"
     #include "vtkCloud"
     #include "vtkWrite"
-- 
GitLab