Multiplies a given list of (at least two or more) fields and outputs the result into a new field.
More...
|
| TypeName ("multiply") |
|
| multiply (const word &name, const Time &runTime, const dictionary &dict) |
|
| multiply (const multiply &)=delete |
|
void | operator= (const multiply &)=delete |
|
virtual | ~multiply ()=default |
|
| TypeName ("fieldsExpression") |
|
| fieldsExpression (const word &name, const Time &runTime, const dictionary &dict, const wordList &fieldNames=wordList::null(), const word &resultName=word::null) |
|
| fieldsExpression (const fieldsExpression &)=delete |
|
void | operator= (const fieldsExpression &)=delete |
|
virtual | ~fieldsExpression ()=default |
|
virtual bool | read (const dictionary &dict) |
|
virtual bool | execute () |
|
virtual bool | write () |
|
virtual bool | clear () |
|
| TypeName ("fvMeshFunctionObject") |
|
| fvMeshFunctionObject (const word &name, const Time &runTime, const dictionary &dict) |
|
| fvMeshFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) |
|
virtual | ~fvMeshFunctionObject ()=default |
|
| TypeName ("regionFunctionObject") |
|
| regionFunctionObject (const word &name, const Time &runTime, const dictionary &dict) |
|
| regionFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) |
|
virtual | ~regionFunctionObject ()=default |
|
template<class ObjectType > |
const ObjectType * | lookupObjectPtr (const word &fieldName) const |
|
template<class ObjectType > |
ObjectType * | lookupObjectRefPtr (const word &fieldName) const |
|
| stateFunctionObject (const word &name, const Time &runTime) |
|
virtual | ~stateFunctionObject ()=default |
|
dictionary & | propertyDict () |
|
bool | foundProperty (const word &entryName) const |
|
void | clearTrigger () |
|
label | getTrigger () const |
|
bool | setTrigger (const label triggeri, bool increaseOnly=true) |
|
bool | getDict (const word &entryName, dictionary &dict) const |
|
bool | getObjectDict (const word &objectName, const word &entryName, dictionary &dict) const |
|
template<class Type > |
Type | getProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getProperty (const word &entryName, Type &value) const |
|
template<class Type > |
void | setProperty (const word &entryName, const Type &value) |
|
template<class Type > |
Type | getObjectProperty (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getObjectProperty (const word &objectName, const word &entryName, Type &value) const |
|
template<class Type > |
void | setObjectProperty (const word &objectName, const word &entryName, const Type &value) |
|
template<class Type > |
void | setResult (const word &entryName, const Type &value) |
|
template<class Type > |
void | setObjectResult (const word &objectName, const word &entryName, const Type &value) |
|
template<class Type > |
Type | getResult (const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
Type | getObjectResult (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getObjectResult (const word &objectName, const word &entryName, Type &value) const |
|
word | resultType (const word &entryName) const |
|
word | objectResultType (const word &objectName, const word &entryName) const |
|
wordList | objectResultEntries () const |
|
wordList | objectResultEntries (const word &objectName) const |
|
void | writeResultEntries (Ostream &os) const |
|
void | writeResultEntries (const word &objectName, Ostream &os) const |
|
void | writeAllResultEntries (Ostream &os) const |
|
| timeFunctionObject (const word &name, const Time &runTime) |
|
virtual | ~timeFunctionObject ()=default |
|
const Time & | time () const |
|
objectRegistry & | storedObjects () |
|
const objectRegistry & | storedObjects () const |
|
| declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) |
|
| functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) |
|
autoPtr< functionObject > | clone () const |
|
virtual | ~functionObject ()=default |
|
virtual const word & | type () const =0 |
|
const word & | name () const noexcept |
|
bool | useNamePrefix () const noexcept |
|
bool | useNamePrefix (bool on) noexcept |
|
virtual bool | execute (const label subIndex) |
|
virtual bool | end () |
|
virtual bool | adjustTimeStep () |
|
virtual bool | filesModified () const |
|
virtual void | updateMesh (const mapPolyMesh &mpm) |
|
virtual void | movePoints (const polyMesh &mesh) |
|
Multiplies a given list of (at least two or more) fields and outputs the result into a new field.
fieldResult = field1 * field2 * ... * fieldN
Operands:
Operand | Type | Location |
input | vol<Type>Field(s) | $FOAM_CASE/<time>/<inpField>s |
output field | vol<Type>Field | $FOAM_CASE/<time>/<outField> |
where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor
.
- Usage
- Minimal example by using
system/controlDict.functions
: multiply1
{
// Mandatory entries (unmodifiable)
type multiply;
libs (fieldFunctionObjects);
// Mandatory (inherited) entry (runtime modifiable)
fields (<field1> <field2> ... <fieldN>);
// Optional (inherited) entries
...
}
where the entries mean:
Property | Description | Type | Reqd | Dflt |
type | Type name: multiply | word | yes | - |
libs | Library name: fieldFunctionObjects | word | yes | - |
fields | Names of the operand fields | wordList | yes | - |
The inherited entries are elaborated in:
- See also
-
- Source files
-
Definition at line 142 of file multiply.H.