Go to the documentation of this file.
61 fileDictionary::dictionary::operator=(caseFile);
74 return particles_.pStruct();
80 active_ = getVal<Logical>(
"active");
84 checkForCollision_ = getVal<Logical>(
"checkForCollision");
91 REPORT(1) <<
"Particle insertion mechanism is "
92 <<
Yellow_Text(
"not active") <<
" in the simulation."
101 if (!dict.
add(
"active", active_))
108 if (!dict.
add(
"checkForCollision", checkForCollision_))
111 "Error in writing checkForCollision to dictionary "<<
122 dictionary newDict(fileDictionary::dictionary::name(),
true);
125 if( !writeInsertionDict(newDict) ||
const pointStructure & pStruct() const
objectFile(const word &name)
const auto & control() const
Const ref to systemControl.
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
iOstream & endl(iOstream &os)
Add newline and flush stream.
const char *const insertionFile__
#define Yellow_Text(text)
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
insertion(particles &prtcl)
Construct from component.
virtual bool writeInsertionDict(dictionary &dict) const
Write to dictionary.
bool write(iOstream &os) const override
write to stream
bool thisProcWriteData() const
Interface class for any output stream.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
bool write(iOstream &os, const IOPattern &iop) const override
write to iOstream
bool readInsertionDict()
Read from dictionary.