postProcessing: packaged interfaceHeight function object

This commit is contained in:
Chris Greenshields
2017-06-29 23:14:46 +01:00
parent b18b6e5568
commit d13285cf90
2 changed files with 39 additions and 0 deletions

View File

@ -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)
);
// ************************************************************************* //

View File

@ -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;
// ************************************************************************* //