91 #ifndef functionObjects_multiply_H 92 #define functionObjects_multiply_H 100 namespace functionObjects
109 public fieldsExpression
112 template<
class Type1,
class Type2>
115 static constexpr
bool value =
124 bool initialiseResult(
const word& fieldName);
127 bool multiplyResult(
const word& fieldName,
bool& processed);
129 template<
class Type1,
class Type2>
130 typename std::enable_if
132 is_valid_op<Type1, Type2>::value,
bool 136 GeometricField<Type1, fvPatchField, volMesh>& result,
137 const word& fieldName,
141 template<
class Type1,
class Type2>
142 typename std::enable_if
144 !is_valid_op<Type1, Type2>::value,
bool 149 const word& fieldName,
multiply(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Intermediate class for handling field expression function objects (e.g. add, subtract etc...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Multiplies a given list of (at least two or more) fields and outputs the result into a new field...
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
A class for handling words, derived from Foam::string.
virtual const word & type() const =0
Runtime type information.
void operator=(const multiply &)=delete
No copy assignment.
virtual ~multiply()=default
Destructor.
::Foam::direction rank(const expressions::valueTypeCode) noexcept
The vector-space rank associated with given valueTypeCode.
void multiply(DimensionedField< Type, GeoMesh > &result, const DimensionedField< Type, GeoMesh > &f1, const DimensionedField< scalar, GeoMesh > &f2)
TypeName("multiply")
Runtime type information.