e.g.
postProcess -func 'patchAverage(name=inlet,p)'
postProcess -func 'patchIntegrate(name=inlet,p)'
24 lines
789 B
C++
24 lines
789 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Web: www.OpenFOAM.org
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates the surface integral of one or more fields on a patch.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
patchIntegrate
|
|
{
|
|
patch <patchName>;
|
|
fields (<field names>);
|
|
|
|
operation areaIntegrate;
|
|
#includeEtc "caseDicts/postProcessing/surfaceRegion/patch.cfg"
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|