Go to the documentation of this file.
39 namespace functionObjects
55 void Foam::functionObjects::writeDictionary::writeHeader()
68 void Foam::functionObjects::writeDictionary::checkDictionary
70 const dictionary&
dict,
74 if (
dict.digest() != digests_[dicti])
78 digests_[dicti] =
dict.digest();
88 bool Foam::functionObjects::writeDictionary::tryDirectory
104 if (
dictIO.typeHeaderOk<IOdictionary>(
true))
106 checkDictionary(IOdictionary(
dictIO), dicti);
117 Foam::functionObjects::writeDictionary::writeDictionary
142 dictNames_ = uniqueNames.toc();
144 digests_.setSize(dictNames_.size(),
SHA1Digest());
146 Info<<
type() <<
" " <<
name() <<
": monitoring dictionaries:" <<
nl;
147 if (dictNames_.size())
181 checkDictionary(*dictptr, dicti);
185 bool processed = tryDirectory(obr_.time().timeName(), dicti);
189 processed = tryDirectory(obr_.time().constant(), dicti);
194 processed = tryDirectory(obr_.time().system(), dicti);
201 Info<<
" Unable to locate dictionary " << dictNames_[dicti]
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the selected dictionaries.
bool read(const char *buf, int32_t &val)
Same as readInt32.
const word dictName("faMeshDefinition")
virtual bool read(const dictionary &)
Read the writeDictionary data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(Ostream &os, const word &fieldName)
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Return the name of this functionObject.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
static Ostream & writeDivider(Ostream &os)
Write the standard file section divider.
virtual const word & type() const =0
Runtime type information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...