Go to the documentation of this file.
34 bool Foam::functionObjects::fieldValues::multiFieldValue::applyOperation
36 const word& resultType,
51 values[i] = this->getObjectResult<Type>(
names[i], entryNames[i]);
67 for (label i = 1; i <
values.size(); ++i)
91 <<
"Unable to process operation "
98 os << opName <<
flatOutput(entryNames, FlatOutput::ParenComma{});
99 const word resultName(
os.str());
100 Log <<
" " << resultName <<
" = " << result <<
endl;
@ opSubtract
Subtract values from first entry.
virtual OFstream & file()
static constexpr const zero Zero
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
Ostream & endl(Ostream &os)
word resultType(const word &entryName) const
static const Enum< operationType > operationTypeNames_
label min(const labelHashSet &set, label minValue=labelMax)
List< word > wordList
A List of words.
@ opAdd
Add values (same as sum)
label max(const labelHashSet &set, label maxValue=labelMin)
OBJstream os(runTime.globalPath()/outputName)
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
errorManip< error > abort(error &err)
#define FatalErrorInFunction
@ opAverage
Average value.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void setResult(const word &entryName, const Type &value)
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)