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);
multiply(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
defineTypeNameAndDebug(ObukhovLength, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
Multiplies a given list of (at least two or more) fields and outputs the result into a new field...
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
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 expressions::valueTypeCode::INVALID.
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
A class for handling words, derived from Foam::string.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
void multiply(DimensionedField< Type, GeoMesh > &result, const DimensionedField< Type, GeoMesh > &f1, const DimensionedField< scalar, GeoMesh > &f2)