Utilities patchAverage and patchIntegrate replaced by postProcess

e.g.
    postProcess -func 'patchAverage(name=inlet,p)'
    postProcess -func 'patchIntegrate(name=inlet,p)'
This commit is contained in:
Henry Weller
2016-06-12 22:32:15 +01:00
parent f49025ac86
commit 41c2e4bc11
16 changed files with 106 additions and 441 deletions

View File

@ -36,12 +36,15 @@ namespace Foam
defineRunTimeSelectionTable(functionObject, dictionary);
}
bool Foam::functionObject::postProcess(false);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::functionObject::functionObject(const word& name)
:
name_(name)
name_(name),
log(postProcess)
{}
@ -120,6 +123,17 @@ const Foam::word& Foam::functionObject::name() const
}
bool Foam::functionObject::read(const dictionary& dict)
{
if (!postProcess)
{
log = dict.lookupOrDefault<Switch>("log", true);
}
return true;
}
bool Foam::functionObject::end()
{
return execute() && write();