Go to the documentation of this file.
37 namespace functionObjects
64 <<
"Could not locate subRegion \""
78 const regIOobject* ptr = this->cfindObject<regIOobject>(fieldName);
82 Log <<
" functionObjects::" <<
type() <<
" " <<
name()
83 <<
" writing field: " << ptr->
name() <<
endl;
100 regIOobject* ptr = this->findObject<regIOobject>(fieldName);
123 for (
const word& objName : objNames)
125 regIOobject* ptr = this->findObject<regIOobject>(objName);
const objectRegistry & obr_
Reference to the region objectRegistry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const
Return name.
A class for handling words, derived from Foam::string.
word subRegistryName_
Name for alternative object registry.
static word defaultRegion
Return the default region name.
objectRegistry & storedObjects()
const Time & time() const
Return time.
Base class for function objects, adding functionality to read/write state information (data required ...
Ostream & endl(Ostream &os)
Add newline and flush stream.
void clearObjects(const wordList &objNames)
Clear fields from the (sub) objectRegistry if present.
regionFunctionObject(const regionFunctionObject &)=delete
No copy construct.
Registry of regIOobjects.
bool clearObject(const word &fieldName)
Clear field from the (sub) objectRegistry if present.
virtual bool write(const bool valid=true) const
Write using setting from DB.
const objectRegistry * obrPtr_
Pointer to alternative (eg, sub-region) objectRegistry.
word name(const complex &c)
Return string representation of complex.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
bool ownedByRegistry() const
Is this object owned by the registry?
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
bool checkOut()
Remove all file watches and remove object from registry.
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
defineTypeNameAndDebug(ObukhovLength, 0)
static const word null
An empty word.
bool writeObject(const word &fieldName)
Write field if present in the (sub) objectRegistry.
#define WarningInFunction
Report a warning using Foam::Warning.