35namespace functionObjects
57bool Foam::functionObjects::multiply::calc()
59 bool processed =
false;
69 initialiseResult<scalar>(fieldNames_[i]);
70 initialiseResult<vector>(fieldNames_[i]);
71 initialiseResult<sphericalTensor>(fieldNames_[i]);
72 initialiseResult<symmTensor>(fieldNames_[i]);
73 initialiseResult<tensor>(fieldNames_[i]);
77 multiplyResult<scalar>(fieldNames_[i], processed);
78 multiplyResult<vector>(fieldNames_[i], processed);
79 multiplyResult<sphericalTensor>(fieldNames_[i], processed);
80 multiplyResult<symmTensor>(fieldNames_[i], processed);
81 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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Intermediate class for handling field expression function objects (e.g. add, subtract etc....
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
Multiplies a given list of (at least two or more) fields and outputs the result into a new field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.