This function generates plots of fields averaged over the layers in the
mesh. It is a generalised replacement for the postChannel utility, which
has been removed. An example of this function's usage is as follows:
layerAverage1
{
type layerAverage;
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
setFormat raw;
// Patches and/or zones from which layers extrude
patches (bottom);
zones (quarterPlane threeQuartersPlane);
// Spatial component against which to plot
component y;
// Is the geometry symmetric around the centre layer?
symmetric true;
// Fields to average and plot
fields (pMean pPrime2Mean UMean UPrime2Mean k);
}
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Generates plots of fields averaged over the layers in the mesh
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
patches (<patchNames>); // Patches from which layers extrude
|
|
|
|
zones (); // Zones from which layers extrude
|
|
|
|
axis <axisName>; // The independent variable of the graph. Can
|
|
// be "x", "y" or "z".
|
|
|
|
symmetric false; // Are the layers symmetric about the centre?
|
|
|
|
fields (<fieldsNames>); // Fields to plot
|
|
|
|
#includeEtc "caseDicts/postProcessing/graphs/graphLayerAverage.cfg"
|
|
|
|
// ************************************************************************* //
|