From e3a80e909d655f3fda37cca825923c40b8db08fd Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Mon, 18 Jan 2016 18:22:42 +0000
Subject: [PATCH] sampledSetsFunctionObject/sampledSetsDict: Added an example
 of sampling on a line

---
 .../sampledSetsFunctionObject/sampledSetsDict | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 src/sampling/sampledSet/sampledSetsFunctionObject/sampledSetsDict

diff --git a/src/sampling/sampledSet/sampledSetsFunctionObject/sampledSetsDict b/src/sampling/sampledSet/sampledSetsFunctionObject/sampledSetsDict
new file mode 100644
index 00000000000..7e92059c213
--- /dev/null
+++ b/src/sampling/sampledSet/sampledSetsFunctionObject/sampledSetsDict
@@ -0,0 +1,34 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| =========                 |                                                 |
+| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
+|  \\    /   O peration     | Version:  dev                                   |
+|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
+|    \\/     M anipulation  |                                                 |
+\*---------------------------------------------------------------------------*/
+
+functions
+{
+    // Example of sampling on a line
+    lines
+    {
+        type sets;
+
+        functionObjectLibs ("libsampling.so");
+
+        outputControl   outputTime;
+        setFormat       gnuplot;
+        fields          (p U);
+        interpolationScheme cellPoint;
+        sets
+        (
+            diagonal
+            {
+                type midPoint;
+
+                axis x;
+                start (-0.0206 -0.0254 -0.0005);
+                end (0.29 0.0254 0.0005);
+            }
+        );
+    }
+}
-- 
GitLab