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);
145 subRegistryName_(
dict.getOrDefault<
word>(
"subRegion",
word::null)),
165 subRegistryName_(
dict.getOrDefault<
word>(
"subRegion",
word::null)),
defineTypeNameAndDebug(ObukhovLength, 0)
objectRegistry & storedObjects()
Write access to the output objects ("functionObjectObjects") registered on Time.
bool writeObject(const word &fieldName)
Write field if present in the (sub) objectRegistry.
regionFunctionObject(const regionFunctionObject &)=delete
No copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & name() const noexcept
Return the object name.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word subRegistryName_
Name for alternative object registry.
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
void clearObjects(const wordList &objNames)
Clear fields from the (sub) objectRegistry if present.
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
static const word null
An empty word.
bool checkOut()
Remove object from registry, and remove all file watches.
const objectRegistry * obrPtr_
Pointer to alternative (eg, sub-region) objectRegistry.
bool clearObject(const word &fieldName)
Clear field from the (sub) objectRegistry if present.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
bool ownedByRegistry() const noexcept
Is this object owned by the registry?
const objectRegistry & obr_
Reference to the region objectRegistry.
Base class for function objects, adding functionality to read/write state information (data required ...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual bool read(const dictionary &dict)
Read optional controls.
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.