From b8ec4e12e134f15d2b3960e92040d8580749bdc7 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Wed, 28 Feb 2018 11:23:59 +0100 Subject: [PATCH] TUT: added tutorial test with faceOnlySet sampling (issue #745) --- .../damBreak/damBreak/system/controlDict | 1 + .../laminar/damBreak/damBreak/system/sampling | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/sampling diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/controlDict b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/controlDict index e306a5ca5c9..06168ee7c29 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/controlDict +++ b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/controlDict @@ -52,5 +52,6 @@ maxAlphaCo 1; maxDeltaT 1; +#includeIfPresent "sampling" // ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/sampling b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/sampling new file mode 100644 index 00000000000..7ea90283925 --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/system/sampling @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object sampling; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +functions +{ + sampleSets + { + type sets; + libs ("libsampling.so"); + + writeControl timeStep; + writeInterval 1; + + setFormat vtk; + interpolationScheme cellPointFace; + fields ( alpha.water ); + + sets + ( + gauge_1 + { + type face; + axis y; + start (0.02 0.20 0.005); + end (0.02 0.25 0.005); + nPoints 100; + } + + gauge_2 + { + type face; + axis y; + start (0.2 0.03 0.005); + end (0.2 0.55 0.005); + nPoints 100; + } + ); + } +} + +// ************************************************************************* // -- GitLab