33 namespace functionObjects
71 const wordList fields1 = region1Ptr_->fields();
72 const wordList fields2 = region2Ptr_->fields();
80 commonFields.
append(fields1[fieldi]);
93 os <<
tab << commonFields[i];
112 region1Ptr_(nullptr),
140 dict.subDict(
"region1"),
150 dict.subDict(
"region2"),
155 operation_ = operationTypeNames_.read(
dict.lookup(
"operation"));
166 return region1Ptr_->fields();
174 region1Ptr_->write();
175 region2Ptr_->write();
185 processFields<scalar>(
found);
186 processFields<vector>(
found);
187 processFields<sphericalTensor>(
found);
188 processFields<symmTensor>(
found);
189 processFields<tensor>(
found);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void size(const label)
Override size to be inconsistent with allocated storage.
Initialise the NamedEnum HashTable from the static list of names.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool master(const label communicator=0)
Am I the master process.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
static autoPtr< fieldValue > New(const word &name, const objectRegistry &obr, const dictionary &dict, const bool output=true)
Return a reference to the selected fieldValue.
Provides a differencing option between two 'field value' function objects.
virtual wordList fields() const
Return the list of fields required.
static const NamedEnum< operationType, 5 > operationTypeNames_
Operation type names.
fieldValueDelta(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual void writeFileHeader(const label i)
Output file header information.
virtual ~fieldValueDelta()
Destructor.
virtual bool execute()
Do nothing.
virtual bool write()
Calculate and write.
virtual bool read(const dictionary &)
Read from dictionary.
operationType
Operation type enumeration.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
OFstream & file()
Return access to the file (if only 1)
virtual bool write()
Write function.
Specialisation of Foam::functionObject for a region and providing a reference to the region Foam::obj...
virtual bool read(const dictionary &)
Read optional controls.
From the first field subtract the remaining fields in the list.
void writeHeaderValue(Ostream &os, const string &property, const Type &value) const
Write a (commented) header property and value pair.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
A class for handling words, derived from string.
#define Log
Report write to Foam::Info if the local log switch is true.
defineTypeNameAndDebug(fieldValueDelta, 0)
addToRunTimeSelectionTable(functionObject, fieldValueDelta, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.