33 Type Foam::functionObjects::fieldValues::fieldValueDelta::applyOperation
45 result = value1 + value2;
50 result = value1 - value2;
55 result =
min(value1, value2);
60 result =
max(value1, value2);
65 result = 0.5*(value1 + value2);
71 <<
"Unable to process operation " 82 void Foam::functionObjects::fieldValues::fieldValueDelta::processFields
87 typedef GeometricField<Type, fvPatchField, volMesh> vf;
88 typedef GeometricField<Type, fvsPatchField, surfaceMesh>
sf;
90 const wordList& fields1 = region1Ptr_->fields();
92 const dictionary& results1 = region1Ptr_->resultDict();
93 const dictionary& results2 = region2Ptr_->resultDict();
100 const word& fieldName = fields1[i];
105 && results2.found(fieldName)
108 results1.lookup(fieldName) >> r1;
109 results2.lookup(fieldName) >> r2;
111 Type result = applyOperation(r1, r2);
114 <<
"(" << fieldName <<
") = " << result
#define forAll(list, i)
Loop across all elements in list.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
bool foundObject(const word &name) const
Is the named Type found?
static const NamedEnum< operationType, 5 > operationTypeNames_
Operation type names.
errorManip< error > abort(error &err)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
volScalarField sf(fieldObject, mesh)
List< word > wordList
A List of words.
const objectRegistry & obr_
Reference to the region objectRegistry.
#define Log
Report write to Foam::Info if the local log switch is true.
OFstream & file()
Return access to the file (if only 1)