Go to the documentation of this file.
35 namespace functionObjects
57 bool 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);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Abstract base-class for Time/database function objects.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Intermediate class for handling field expression function objects (e.g. add, subtract etc....
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
fileName::Type type(const fileName &name, const bool followLink=true)
defineTypeNameAndDebug(ObukhovLength, 0)
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
word name(const expressions::valueTypeCode typeCode)
multiply(const word &name, const Time &runTime, const dictionary &dict)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
Multiplies a given list of (at least two or more) fields and outputs the result into a new field.