From d13285cf9031dd181c1946c2664970f8751dc4f7 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Thu, 29 Jun 2017 23:14:46 +0100 Subject: [PATCH] postProcessing: packaged interfaceHeight function object --- .../postProcessing/probes/interfaceHeight | 24 +++++++++++++++++++ .../postProcessing/probes/interfaceHeight.cfg | 15 ++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 etc/caseDicts/postProcessing/probes/interfaceHeight create mode 100644 etc/caseDicts/postProcessing/probes/interfaceHeight.cfg diff --git a/etc/caseDicts/postProcessing/probes/interfaceHeight b/etc/caseDicts/postProcessing/probes/interfaceHeight new file mode 100644 index 000000000..e003baf3e --- /dev/null +++ b/etc/caseDicts/postProcessing/probes/interfaceHeight @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Reports the height of the interface above a set of locations. For each + location, it writes the distance from the boundary to the interface, + intersecting the location. It uses an integral approach, which computes an + average where for multiple interfaces above or below a location. + +\*---------------------------------------------------------------------------*/ + +#includeEtc "caseDicts/postProcessing/probes/interfaceHeight.cfg" + +alpha alpha.water; +locations +( + (0 0 0) +); + +// ************************************************************************* // diff --git a/etc/caseDicts/postProcessing/probes/interfaceHeight.cfg b/etc/caseDicts/postProcessing/probes/interfaceHeight.cfg new file mode 100644 index 000000000..6acc80def --- /dev/null +++ b/etc/caseDicts/postProcessing/probes/interfaceHeight.cfg @@ -0,0 +1,15 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +type interfaceHeight; +libs ("libfieldFunctionObjects.so"); + +writeControl timeStep; +writeInterval 1; + +// ************************************************************************* //