A volumetric flow rate through a tri-surface can now be obtained using
the volumetricFlowRateTriSurface preconfigured function object, using
the following entry in system/controlDict:
fuctions
{
#includeFunc "volumetricFlowRateTriSurface(name=surface.stl)"
}
Where "surface.stl" is a tri-surface file in the constant/triSurface
directory. An example of this has been added to the
incompressible/pimpleFoam/RAS/impeller tutorial case.
Note that when possible, it is preferable to use the flowRatePatch or
flowRateFaceZone functions, as these make direct use of the flux and
therefore report a value that is exactly that computed by the solver.
volumetricFlowRateTriSurface, by contrast, does interpolation of the
velocity field which introduces error.
In addition, a minor fix has been made to the underlying
surfaceFieldValue function object so that it does not need a zone/set
name when values on a searchable surface are requested.
21 lines
920 B
C++
21 lines
920 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates volumetric flow rate through a specified triangulated surface
|
|
by interpolating velocity onto the triangles and integrating over the
|
|
surface area. Triangles need to be small (<= cell size) for an accurate
|
|
result.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
name <triSurfaceFileName>;
|
|
|
|
#includeEtc "caseDicts/postProcessing/flowRate/volumetricFlowRateTriSurface.cfg"
|
|
|
|
// ************************************************************************* //
|