39 #ifndef functionObjects_regionFunctionObject_H
40 #define functionObjects_regionFunctionObject_H
52 namespace functionObjects
75 template<
class ObjectType>
79 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
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
const word & name() const
Return the name of this functionObject.
Specialisation of Foam::functionObject for a region and providing a reference to the region Foam::obj...
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
bool foundObject(const word &fieldName) const
Find field in the objectRegistry.
const objectRegistry & obr_
Reference to the region objectRegistry.
void cannotFindObjects(const wordList &fieldNames)
Prints a warning message that fieldNames cannot be found.
ObjectType & lookupObjectRef(const word &fieldName)
Lookup non-const object reference from the objectRegistry.
void operator=(const regionFunctionObject &)=delete
Disallow default bitwise assignment.
bool writeObject(const word &fieldName)
Write field if present in 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.
virtual ~regionFunctionObject()
Destructor.
TypeName("regionFunctionObject")
Runtime type information.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
void cannotFindObject(const word &fieldName)
Prints a warning message that fieldName cannot be found.
virtual bool read(const dictionary &)
Read optional controls.
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from string.
static List< word > fieldNames