diff --git a/etc/caseDicts/postProcessing/surfaceFieldValue/triSurfaceAverage b/etc/caseDicts/postProcessing/surfaceFieldValue/triSurfaceAverage new file mode 100644 index 0000000000..3dc71b0274 --- /dev/null +++ b/etc/caseDicts/postProcessing/surfaceFieldValue/triSurfaceAverage @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Calculates the average on a specified triangulated surface by interpolating + onto the triangles and integrating over the surface area. Triangles need to + be small (<= cell size) for an accurate result. + +\*---------------------------------------------------------------------------*/ + +name ; + +fields (); + +operation areaAverage; + +#includeEtc "caseDicts/postProcessing/surfaceFieldValue/triSurfaceValue.cfg" + +// ************************************************************************* // diff --git a/test/postProcessing/channel/system/controlDict b/test/postProcessing/channel/system/controlDict index 1ceaa402c9..d0459236e6 100644 --- a/test/postProcessing/channel/system/controlDict +++ b/test/postProcessing/channel/system/controlDict @@ -398,6 +398,8 @@ surfaceFieldValueFunctions #includeFunc faceZoneFlowRate(name=f0) + #includeFunc triSurfaceAverage(name=mid.obj, p) + #includeFunc triSurfaceVolumetricFlowRate(name=mid.obj) #includeFunc triSurfaceDifference