functionObjects::subtract: From the first field subtract the remaining fields in the list

The operation can be applied to any volume or surface fields generating a
    volume or surface scalar field.

    Example of function object specification:
    \verbatim
    Tdiff
    {
        type            subtract;
        libs            ("libfieldFunctionObjects.so");
        fields          (T Tmean);
        result          Tdiff;
        executeControl  writeTime;
        writeControl    writeTime;
    }
    \endverbatim
This commit is contained in:
Henry Weller
2016-11-18 22:20:22 +00:00
parent 2001653352
commit 028956e79c
9 changed files with 595 additions and 8 deletions

View File

@ -39,13 +39,6 @@ namespace functionObjects
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
bool Foam::functionObjects::fieldExpression::calc()
{
NotImplemented;
return false;
}
void Foam::functionObjects::fieldExpression::setResultName
(
const word& typeName,

View File

@ -71,7 +71,7 @@ protected:
// Protected member functions
virtual bool calc();
virtual bool calc() = 0;
void setResultName(const word& typeName, const word& defaultArg);