functionObjectList::readFunctionObject: Added support for region specification

Now the postProcess utility '-region' option works correctly, e.g. for
the chtMultiRegionSimpleFoam/heatExchanger case

postProcess -region air -func "mag(U)"

calculates 'mag(U)' for all the time steps in region 'air'.
This commit is contained in:
Henry Weller
2016-09-09 11:01:37 +01:00
parent 360ab50ed6
commit 8e0981d9ed
2 changed files with 32 additions and 4 deletions

View File

@ -218,7 +218,8 @@ public:
(
const string& funcNameArgs0,
dictionary& functionsDict,
HashSet<word>& requiredFields
HashSet<word>& requiredFields,
const word& region = word::null
);
//- Read and set the function objects if their data have changed