functionObjects: Added fields() function to provide list of required fields to postProcess
With this change each functionObject provides the list of fields required so that the postProcess utility can pre-load them before executing the list of functionObjects. This provides a more convenient interface than using the -field or -fields command-line options to postProcess which are now redundant.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -61,7 +61,7 @@ class streamFunction
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
tmp<pointScalarField> calc(const surfaceScalarField& phi) const;
|
||||
tmp<pointScalarField> calc(const surfaceScalarField& phi) const;
|
||||
|
||||
//- Calculate the stream-function and return true if successful
|
||||
virtual bool calc();
|
||||
|
||||
Reference in New Issue
Block a user