Files
OpenFOAM-12/tutorials/modules/multiphaseEuler/hydrofoil/system/controlDict
Will Bainbridge 8208ca6cc7 functionObjects: Added patchCutLayerAverage
This function object writes graphs of patch face values, area-averaged in
planes perpendicular to a given direction. It adaptively grades the
distribution of graph points to match the resolution of the mesh.

Example of function object specification:

    patchCutLayerAverage1
    {
        type            patchCutLayerAverage;
        libs            ("libpatchCutLayerAverageFunctionObject.so");

        writeControl    writeTime;
        writeInterval   1;

        patch           lowerWall;
        direction       (1 0 0);
        nPoints         100;
        interpolate     no;

        fields          (p U);

        axis            x;
        setFormat       raw;
    }

A packaged function object is also included, which permits the following
syntax to be used, either with #includeFunc in the system/controlDict,
or with the -func option to foamPostProcess:

    graphPatchCutLayerAverage
    (
        funcName=aerofoilLowerPressure,
        patch=aerofoilLower,
        direction=(0.15 -0.016 0),
        nPoints=100,
        p
    )
2022-12-06 13:00:56 +00:00

105 lines
1.9 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application foamRun;
solver multiphaseEuler;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 0.2;
deltaT 2e-6;
writeControl adjustableRunTime;
writeInterval 0.01;
purgeWrite 0;
writeFormat binary;
writePrecision 9;
writeCompression uncompressed;
timePrecision 14;
timeFormat general;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.8;
maxDeltaT 1e-4;
functions
{
#includeFunc yPlus(phase=liquid)
#includeFunc cellMin
(
funcName=min,
alpha.liquid,
alpha.gas,
p,
p_rgh,
U.liquid,
U.gas,
T.gas,
T.liquid
)
#includeFunc cellMax
(
funcName=max,
alpha.liquid,
alpha.gas,
p,
p_rgh,
U.liquid,
U.gas,
T.gas,
T.liquid
)
#includeFunc graphPatchCutLayerAverage
(
funcName=hydrofoilLowerPressure,
patch=hydrofoilLower,
direction=(0.15 -0.016 0),
nPoints=100,
p
)
#includeFunc graphPatchCutLayerAverage
(
funcName=hydrofoilUpperPressure,
patch=hydrofoilUpper,
direction=(0.15 -0.016 0),
nPoints=100,
p
)
}
// ************************************************************************* //