24 lines
917 B
C++
24 lines
917 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: 12
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates the flow rate through a specified patch by summing the flux on
|
|
patch faces. For solvers where the flux is volumetric, the flow rate is
|
|
volumetric; where flux is mass flux, the flow rate is mass flow rate.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
patch <patchName>;
|
|
|
|
fields (phi);
|
|
|
|
operation sum;
|
|
|
|
#includeEtc "caseDicts/functions/surfaceFieldValue/patchValue.cfg"
|
|
|
|
// ************************************************************************* //
|