83#ifndef Foam_functionObjects_multiply_H
84#define Foam_functionObjects_multiply_H
104 template<
class Type1,
class Type2>
107 static constexpr bool value =
108 (pTraits<Type1>::rank == 0 || pTraits<Type2>::rank == 0)
109 || (pTraits<Type1>::rank == 1 && pTraits<Type2>::rank == 1);
117 bool initialiseResult(
const word& fieldName);
121 bool multiplyResult(
const word& fieldName,
bool& processed);
124 template<
class Type1,
class Type2>
125 bool multiplyFieldType
127 GeometricField<Type1, fvPatchField, volMesh>& result,
128 const word& fieldName,
Generic GeometricField class.
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,...
Intermediate class for handling field expression function objects (e.g. add, subtract etc....
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.
void operator=(const multiply &)=delete
No copy assignment.
friend class fieldsExpression
Grant fieldsExpression access to private and protected members.
TypeName("multiply")
Runtime type information.
multiply(const multiply &)=delete
No copy construct.
virtual ~multiply()=default
Destructor.
multiply(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
A traits class, which is primarily used for primitives and vector-space.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.