ENH: binField: new function object for data binning
Summary
Function object: forces/forceCoeffs
- Refactors the
forcesandforceCoeffsfunction objects. - Removes the binning - it is now handled by the new
binFieldfunction object. - Enables runtime selection of operand coefficients by the
coefficientsentry. -
force/moment/forceCoeff/momentCoefffields per FO are always registered to the database. - The data components were renamed from 'normal,tangential,porous' to 'pressure,viscous,internal'
- Redundant parentheses were removed from the data files in order to ease data manipulation.
Function object: binField
- The new 'binField' function object calculates binned data, where specified patches are divided into segments according to various input bin characteristics, so that spatially-localised information can be output for each segment.
- Two
binModelis available:-
singleDirectionUniformBin: calculates binned data in a specified direction. -
uniformBin: calculates binned data in multiple segments according to a specified Cartesian or cylindrical coordinate system.
-
- Unlike the
forces/forceCoeffs's binning, thebinFieldoutputsnormalandtangentialcomponents of specified patch data rather thanpressureandviscouscomponents. - Output variables:
-
total: the sum ofpatchandinternal -
patch: patch data -
internal: porous data from specified cell zones -
normalandtangential: orthogonal components of thepatchdata
-
Tests
-
linux64ClangDPInt32Opt -
linux64GccDPInt32Opt -
linux64GccSPDPInt64Debug -
Alltest
Edited by Andrew Heather