39 #ifndef functionObjects_regionFunctionObject_H 40 #define functionObjects_regionFunctionObject_H 52 namespace functionObjects
78 template<
class ObjectType>
82 template<
class ObjectType>
89 template<
class ObjectType>
93 template<
class ObjectType>
97 template<
class ObjectType>
101 template<
class ObjectType>
104 const word& fieldName,
106 bool cacheable =
false Specialisation of Foam::functionObject for a region and providing a reference to the region Foam::obj...
bool writeObject(const word &fieldName)
Write field if present in objectRegistry.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Abstract base-class for Time/database functionObjects.
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
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.
TypeName("regionFunctionObject")
Runtime type information.
virtual ~regionFunctionObject()
Destructor.
bool foundObject(const word &fieldName) const
Find field in the objectRegistry.
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.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
const Time & time_
Reference to the Time.
ObjectType & lookupObjectRef(const word &fieldName)
Lookup non-const object reference from the objectRegistry.
void operator=(const regionFunctionObject &)=delete
Disallow default bitwise assignment.
const objectRegistry & obr_
Reference to the region objectRegistry.
A class for managing temporary objects.
Registry of regIOobjects.