34 namespace functionObjects
52 Log <<
" functionObjects::" <<
type() <<
" " <<
name()
53 <<
" writing field: " << field.
name() <<
endl;
71 if (foundObject<regIOobject>(fieldName))
73 const regIOobject& resultObject = lookupObject<regIOobject>(fieldName);
77 return const_cast<regIOobject&
>(resultObject).checkOut();
93 Foam::functionObjects::regionFunctionObject::regionFunctionObject
112 Foam::functionObjects::regionFunctionObject::regionFunctionObject
const Time & time() const
Return time.
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 function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool ownedByRegistry() const
Is this object owned by the registry?
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual bool read(const dictionary &)
Read optional controls.
A class for handling words, derived from string.
virtual ~regionFunctionObject()
Destructor.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
word name(const complex &)
Return a string representation of a complex.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual bool write() const
Write using setting from DB.
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.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
Registry of regIOobjects.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const word & name() const
Return name.