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;
Subtract values from first entry.
virtual OFstream & file()
Return access to the file (if only 1)
static constexpr const zero Zero
Global zero (0)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word resultType(const word &entryName) const
Retrieve the result type.
static const Enum< operationType > operationTypeNames_
Operation type names.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
List< word > wordList
A List of words.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
OBJstream os(runTime.globalPath()/outputName)
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void setResult(const word &entryName, const Type &value)
Add result.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)