34 namespace functionObjects
49 <<
" functionObjects::" <<
type() <<
" " <<
name()
50 <<
" cannot find required object " << fieldName <<
endl;
63 Log <<
" functionObjects::" <<
type() <<
" " <<
name()
64 <<
" writing field: " << field.
name() <<
endl;
82 if (foundObject<regIOobject>(fieldName))
84 regIOobject& resultObject = lookupObjectRef<regIOobject>(fieldName);
const word & name() const
Return name.
bool writeObject(const word &fieldName)
Write field if present in objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base-class for Time/database functionObjects.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
bool ownedByRegistry() const
Is this object owned by the registry?
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void cannotFindObject(const word &fieldName)
Prints a warning message that fieldName cannot be found.
virtual bool read(const dictionary &)
Read optional controls.
A class for handling words, derived from string.
virtual ~regionFunctionObject()
Destructor.
bool checkOut()
Remove object from registry.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
const Time & time() const
Return time.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
regionFunctionObject(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define Log
Report write to Foam::Info if the local log switch is true.
virtual bool write(const bool write=true) const
Write using setting from DB.
Registry of regIOobjects.