36 namespace functionObjects
52 bool Foam::functionObjects::writeDictionary::tryDirectory
59 typeIOobject<IOdictionary> dictIO
69 if (dictIO.headerOk())
71 IOdictionary
dict(dictIO);
73 if (
dict.digest() != digests_[dictI])
88 digests_[dictI] =
dict.digest();
135 dictNames_ = uniqueNames.
toc();
141 if (dictNames_.size())
166 bool firstDict =
true;
169 if (obr_.foundObject<
dictionary>(dictNames_[i]))
174 if (
dict.digest() != digests_[i])
186 digests_[i] =
dict.digest();
195 bool processed = tryDirectory(i, time_.name(), firstDict);
199 processed = tryDirectory(i, time_.constant(), firstDict);
204 processed = tryDirectory(i, time_.system(), firstDict);
209 Info<<
indent <<
"Unable to locate dictionary " << dictNames_[i]
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A HashTable with keys but without contents.
List< Key > toc() const
Return the table of contents.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
void setSize(const label)
Reset size of List.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
virtual const word & type() const =0
Runtime type information.
const word & name() const
Return the name of this functionObject.
Writes dictionaries on start-up and on change.
writeDictionary(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the selected dictionaries.
virtual ~writeDictionary()
Destructor.
virtual bool read(const dictionary &)
Read the writeDictionary data.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
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.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Ostream & indent(Ostream &os)
Indent stream.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.