58 <<
"At least two field names are required, but only "
67 bool processed =
false;
77 initialiseResult<scalar>(fieldNames_[i]);
78 initialiseResult<vector>(fieldNames_[i]);
79 initialiseResult<sphericalTensor>(fieldNames_[i]);
80 initialiseResult<symmTensor>(fieldNames_[i]);
81 initialiseResult<tensor>(fieldNames_[i]);
85 multiplyResult<scalar>(fieldNames_[i], processed);
86 multiplyResult<vector>(fieldNames_[i], processed);
87 multiplyResult<sphericalTensor>(fieldNames_[i], processed);
88 multiplyResult<symmTensor>(fieldNames_[i], processed);
89 multiplyResult<tensor>(fieldNames_[i], processed);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
wordList fieldNames_
Names of fields to process.
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
Set the result name.
virtual bool calc()=0
Calculate expression.
Multiplies a given list of (at least two or more) fields and outputs the result into a new field.
friend class fieldsExpression
Grant fieldsExpression access to private and protected members.
multiply(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.